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

Commit c32383c0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audiopolicy: Avoid spurious routing in APM::stopSource" into av-aosp.lnx.2.0-dev

parents ec809369 9c419852
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1295,9 +1295,11 @@ status_t AudioPolicyManager::stopSource(sp<AudioOutputDescriptor> outputDesc,
                        desc->isActive() &&
                        outputDesc->sharesHwModuleWith(desc) &&
                        (newDevice != desc->device())) {
                    audio_devices_t newDevice2 = getNewOutputDevice(desc, false /*fromCache*/);
                    bool force = desc->device() != newDevice2;
                    setOutputDevice(desc,
                                    getNewOutputDevice(desc, false /*fromCache*/),
                                    true,
                                    newDevice2,
                                    force,
                                    outputDesc->latency()*2);
                }
            }