Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e592f1c2 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

libaudiohal@aidl: Fix comparison parentheses

The comparison in DeviceHalAidl::findPortConfig was incorrect
due to missing parentheses.

Bug: 266124463
Test: atest VtsHalAudioCoreTargetTest
Test: atest audiosystem_tests audiorouting_tests
Test: atest CtsMediaAudioTestCases
Change-Id: I58c17b986a60ac48662f757b5f390b8c5afb66e5
parent 4fd5bbcf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1689,8 +1689,8 @@ DeviceHalAidl::PortConfigs::iterator DeviceHalAidl::findPortConfig(
            [&](const auto& pair) {
                const auto& p = pair.second;
                LOG_ALWAYS_FATAL_IF(p.ext.getTag() == Tag::mix &&
                        !p.sampleRate.has_value() || !p.channelMask.has_value() ||
                        !p.format.has_value() || !p.flags.has_value(),
                        (!p.sampleRate.has_value() || !p.channelMask.has_value() ||
                                !p.format.has_value() || !p.flags.has_value()),
                        "%s: stored mix port config is not fully specified: %s",
                        __func__, p.toString().c_str());
                return p.ext.getTag() == Tag::mix &&