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

Commit 12c7be62 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "audiopolicy: Avoid spurious routing in APM::stopSource" into nyc-mr1-dev

parents f9b77b8a 11c499a5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1321,9 +1321,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);
                }
            }