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

Commit 3ce9a160 authored by François Gaffie's avatar François Gaffie
Browse files

AudioPolicy: fix 64bit criterion type computation



Bug: 377726809
Test: dumpsys media.audio_policy
      Ensure speaker is not also interpreted as bt broadcast ble.

Change-Id: I3fb3b78fab1b025f1891d62f25fb53372e4b69b4
Signed-off-by: default avatarFrançois Gaffie <francois.gaffie@ampere.cars>
parent 01cae3b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@ ConversionResult<CapCriterion> aidl2legacy_AudioHalCapCriterionV2_Criterion(
            }
            std::string deviceLiteral = VALUE_OR_RETURN_STATUS(truncatePrefix(legacyTypeLiteral,
                    isOut ? gLegacyOutputDevicePrefix : gLegacyInputDevicePrefix));
            uint64_t pfwCriterionValue = 1 << shift++;
            uint64_t pfwCriterionValue = 1ULL << (shift++);
            criterionType.valuePairs.push_back(
                    {pfwCriterionValue, static_cast<int32_t>(legacyDeviceType), deviceLiteral});
            ALOGV("%s: adding %" PRIu64 " %d %s %s", __func__, pfwCriterionValue, legacyDeviceType,