mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 04:59:05 -04:00
ALSA: jack: Add support to report second microphone
ALSA jack framework currently supports reporting only one single microphone. Add support to report presence of the second microphone to userspace. Change-Id: I72d16892f2fa563c026bf90d847d9365dcf2233a Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org> Signed-off-by: Meng Wang <mwang@codeaurora.org>
This commit is contained in:
parent
567264c6cb
commit
c559fb7c52
3 changed files with 12 additions and 1 deletions
|
|
@ -810,7 +810,12 @@
|
|||
#define SW_PEN_INSERTED 0x0f /* set = pen inserted */
|
||||
#define SW_HPHL_OVERCURRENT 0x10 /* set = over current on left hph */
|
||||
#define SW_HPHR_OVERCURRENT 0x11 /* set = over current on right hph */
|
||||
#define SW_UNSUPPORT_INSERT 0x12 /* set = unsupported device inserted */
|
||||
#ifdef CONFIG_AUDIO_QGKI
|
||||
#define SW_MICROPHONE2_INSERT 0x12 /* set = inserted */
|
||||
#define SW_UNSUPPORT_INSERT 0x13 /* set = unsupported device inserted */
|
||||
#else
|
||||
#define SW_UNSUPPORT_INSERT 0x12 /* set = unsupported device inserted */
|
||||
#endif
|
||||
#define SW_MAX 0x20
|
||||
#define SW_CNT (SW_MAX+1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue