OSDN Git Service

Built-in mic is not used when USB mic is disconnected
authorAlejandro Ochoa <alejandro.ochoa@intel.com>
Sat, 31 Oct 2015 02:05:00 +0000 (20:05 -0600)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 20 Jul 2016 09:53:18 +0000 (17:53 +0800)
commit1aa05a3a5a37c02e27fe0268f713871718003fc7
treebbd521137ee15a169d2b33b8892ef7af8303012a
parent8c0d7bc3ce296dee330b251cb88122e42e9fa5d1
Built-in mic is not used when USB mic is disconnected

In some cases when the USB microphone is disconnected,
audio stack does not switch to the built-in microphone.
It gets stuck in a state where it still recognizes the
USB mic is still connected. Current device removal
implementation only considers USB output devices such
as headset. The same process should be used for input
USB devices (microphone).

Bug: 24932354
Change-Id: Ic2089ef5a9a318cb47336ade405f79eccd7129f8
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-6651
Signed-off-by: Alejandro Ochoa <alejandro.ochoa@intel.com>
Reviewed-on: https://android.intel.com:443/432909
services/usb/java/com/android/server/usb/UsbAlsaManager.java