commit | 07a97da51fc7d43db9903d793d614340b1cf3b67 | [log] [tgz] |
---|---|---|
author | Andrew Chant <achant@google.com> | Mon Feb 05 15:55:02 2018 -0800 |
committer | Andrew Chant <achant@google.com> | Tue Feb 13 16:42:35 2018 -0800 |
tree | 85cf28bcfc440f0d78ffa6b6d610ac4a13f46634 | |
parent | 54b15e98cdb40969929fa23ce42e6817a4b8392c [diff] |
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