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

Commit ed95748f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents e0092766 4e5f4022
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());