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

Commit 15c1225d authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

audiopolicy: Avoid spurious routing in APM::stopSource am: 11c499a5 am: 5c261a21

am: 61f87168

Change-Id: I0f97c34e0d8abb1ec130f6db781fbcfe2a455324
parents c7239f10 61f87168
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1335,9 +1335,11 @@ status_t AudioPolicyManager::stopSource(const sp<AudioOutputDescriptor>& outputD
                        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);
                }
            }