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

Commit f97cace8 authored by Carter Hsu's avatar Carter Hsu Committed by android-build-merger
Browse files

Merge "audio: fix index of input vector" into qt-dev

am: a6d436ca

Change-Id: Ibc07431c457278d47f5b47aaeb96622ac2acf756
parents 1834f72a a6d436ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2136,6 +2136,7 @@ audio_io_handle_t AudioPolicyManager::getInputForDevice(const sp<DeviceDescripto
        for (size_t i = 0; i < mInputs.size(); ) {
            sp <AudioInputDescriptor> desc = mInputs.valueAt(i);
            if (desc->mProfile != profile) {
                i++;
                continue;
            }
            // if sound trigger, reuse input if used by other sound trigger on same session