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

Commit 7d2b305d 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

Change-Id: I575ed2b3e46eb4191cd6b584e54152a7c90e6251
parents b02734e3 f97cace8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line 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(); ) {
        for (size_t i = 0; i < mInputs.size(); ) {
            sp <AudioInputDescriptor> desc = mInputs.valueAt(i);
            sp <AudioInputDescriptor> desc = mInputs.valueAt(i);
            if (desc->mProfile != profile) {
            if (desc->mProfile != profile) {
                i++;
                continue;
                continue;
            }
            }
            // if sound trigger, reuse input if used by other sound trigger on same session
            // if sound trigger, reuse input if used by other sound trigger on same session