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

Commit cdedbb38 authored by Kevin Rocard's avatar Kevin Rocard Committed by android-build-merger
Browse files

Merge "Fix remote-submix not found for MIX_TYPE_RECORDERS LOOPBACK" into qt-dev

am: ed95748f

Change-Id: Ib217638000eb7c50e3488cbc2eb571eb41afd740
parents 909d9505 ed95748f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -120,8 +120,9 @@ status_t AudioPolicyMixCollection::getAudioPolicyMix(audio_devices_t deviceType,

    ALOGV("getAudioPolicyMix() for dev=0x%x addr=%s", deviceType, address.string());
    for (ssize_t i = 0; i < size(); i++) {
        if (itemAt(i)->mDeviceType == deviceType
                && itemAt(i)->mDeviceAddress.compare(address) == 0) {
        // Workaround: when an in audio policy is registered, it opens an output
        // that tries to find the audio policy, thus the device must be ignored.
        if (itemAt(i)->mDeviceAddress.compare(address) == 0) {
            policyMix = itemAt(i);
            ALOGV("getAudioPolicyMix: found mix %zu match (devType=0x%x addr=%s)",
                    i, deviceType, address.string());