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

Commit 61f87168 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

Change-Id: I31ff3ac4e07d072b1756fa333057f67ecaf4285f
parents 3c96a725 5c261a21
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1332,9 +1332,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);
                }
            }