Merge "Built-in mic is not used when USB mic is disconnected"
am: ebbdabdb82
* commit 'ebbdabdb826c083769e7d7bc102a59a04c9e0329':
Built-in mic is not used when USB mic is disconnected
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user