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

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

Merge "audioflinger: fix reuse of audio HAL patch handle"

parents 815ccb90 9bcfa7c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@ status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *pa
                if (hwDevice != 0) {
                    hwDevice->releaseAudioPatch(removedPatch.mHalHandle);
                }
                halHandle = removedPatch.mHalHandle;
            }
            mPatches.erase(iter);
            removeSoftwarePatchFromInsertedModules(*handle);