07a97da51fc7d43db9903d793d614340b1cf3b67 |
|
06-Feb-2018 |
Andrew Chant <achant@google.com> |
ALSA jack detection support Adds support for ALSA jack detection for USB. Spawns a new thread for ALSA jack detection on device insert. If the device doesn't support ALSA jack detection, the thread terminates. Test: UAC2 audio accessory and a kernel which supports USB ALSA Jack detection, switching between speaker and USB works perfectly with plug/unplug at jack. Bug: 68337205 Bug: 70632415 Change-Id: I1800660ad4d2341f19ce7be6d6b01f81a7f2d1a6
/frameworks/base/services/usb/java/com/android/server/usb/UsbAlsaJackDetector.java
|