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

Commit 88af67ed authored by Bubble Fang's avatar Bubble Fang Committed by Android (Google) Code Review
Browse files

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

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