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

Commit 52f0c239 authored by Bubble Fang's avatar Bubble Fang Committed by android-build-merger
Browse files

Merge "audioflinger: clean previously opened input selectedDeviceId if retrying" into pi-dev

am: 88af67ed

Change-Id: I9a0856ea31e610d6b045602ced743a91d8572f53
parents 77fa0e64 88af67ed
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1690,6 +1690,7 @@ sp<media::IAudioRecord> AudioFlinger::createRecord(const CreateRecordInput& inpu
        recordTrack.clear();
        AudioSystem::releaseInput(portId);
        output.inputId = AUDIO_IO_HANDLE_NONE;
        output.selectedDeviceId = input.selectedDeviceId;
        portId = AUDIO_PORT_HANDLE_NONE;
    }
    lStatus = AudioSystem::getInputForAttr(&input.attr, &output.inputId,