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

Commit 7a1874b9 authored by Bubble Fang's avatar Bubble Fang Committed by android-build-merger
Browse files

Merge "audioflinger: clean previously opened input selectedDeviceId if...

Merge "audioflinger: clean previously opened input selectedDeviceId if retrying" into pi-dev am: 88af67ed
am: 52f0c239

Change-Id: I26d76fdb4269802f8a9bd5e585183596ff9cba61
parents 1f2bfd3a 52f0c239
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1689,6 +1689,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,