Merge "ALSA: jack: Add support to report second microphone"

This commit is contained in:
Linux Build Service Account
2014-02-07 20:11:28 -08:00
committed by Gerrit - the friendly Code Review server
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -850,6 +850,7 @@ struct input_keymap_entry {
#define SW_HPHL_OVERCURRENT 0x0e /* set = over current on left hph */
#define SW_HPHR_OVERCURRENT 0x0f /* set = over current on right hph */
#define SW_UNSUPPORT_INSERT 0x10 /* set = unsupported device inserted */
#define SW_MICROPHONE2_INSERT 0x11 /* set = inserted */
#define SW_MAX 0x20
#define SW_CNT (SW_MAX+1)
+3
View File
@@ -47,6 +47,9 @@ enum snd_jack_types {
SND_JACK_OC_HPHL = 0x0000040,
SND_JACK_OC_HPHR = 0x0000080,
SND_JACK_UNSUPPORTED = 0x0000100,
SND_JACK_MICROPHONE2 = 0x0000200,
SND_JACK_ANC_HEADPHONE = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE |
SND_JACK_MICROPHONE2,
/* Kept separate from switches to facilitate implementation */
SND_JACK_BTN_0 = 0x4000000,
SND_JACK_BTN_1 = 0x2000000,
+1
View File
@@ -35,6 +35,7 @@ static int jack_switch_types[] = {
SW_HPHL_OVERCURRENT,
SW_HPHR_OVERCURRENT,
SW_UNSUPPORT_INSERT,
SW_MICROPHONE2_INSERT,
};
static int snd_jack_dev_free(struct snd_device *device)