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

Commit 11041803 authored by Glenn Kasten's avatar Glenn Kasten Committed by android-build-merger
Browse files

Merge "Built-in mic is not used when USB mic is disconnected"

am: ebbdabdb

* commit 'ebbdabdb':
  Built-in mic is not used when USB mic is disconnected
parents 2e8c3c11 ebbdabdb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -439,7 +439,7 @@ public final class UsbAlsaManager {


        UsbAudioDevice audioDevice = mAudioDevices.remove(usbDevice);
        UsbAudioDevice audioDevice = mAudioDevices.remove(usbDevice);
        if (audioDevice != null) {
        if (audioDevice != null) {
            if (audioDevice.mHasPlayback || audioDevice.mHasPlayback) {
            if (audioDevice.mHasPlayback || audioDevice.mHasCapture) {
                notifyDeviceState(audioDevice, false);
                notifyDeviceState(audioDevice, false);


                // if there any external devices left, select one of them
                // if there any external devices left, select one of them