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

This commit is contained in:
Glenn Kasten
2015-11-04 16:03:41 +00:00
committed by Gerrit Code Review

View File

@@ -439,7 +439,7 @@ public final class UsbAlsaManager {
UsbAudioDevice audioDevice = mAudioDevices.remove(usbDevice);
if (audioDevice != null) {
if (audioDevice.mHasPlayback || audioDevice.mHasPlayback) {
if (audioDevice.mHasPlayback || audioDevice.mHasCapture) {
notifyDeviceState(audioDevice, false);
// if there any external devices left, select one of them