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

Commit 8be8f7c2 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 am: f97cace8

am: 7d2b305d

Change-Id: Ibc3d7a12b088e05f02c356c6f14f83b4ac7ed95d
parents 5479d815 7d2b305d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2135,6 +2135,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