ALSA: Define more sound jack types
Define more sound jack types to be able to report additional buttons.
Change-Id: Ib37f854550cc147d90231352bc7d6b03316f60f5
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
diff --git a/include/sound/jack.h b/include/sound/jack.h
index 5fedf19..ccdc341 100644
--- a/include/sound/jack.h
+++ b/include/sound/jack.h
@@ -51,6 +51,8 @@
SND_JACK_BTN_3 = 0x0800,
SND_JACK_BTN_4 = 0x0400,
SND_JACK_BTN_5 = 0x0200,
+ SND_JACK_BTN_6 = 0x0100,
+ SND_JACK_BTN_7 = 0x0080,
};
struct snd_jack {
@@ -59,7 +61,7 @@
int type;
const char *id;
char name[100];
- unsigned int key[6]; /* Keep in sync with definitions above */
+ unsigned int key[8]; /* Keep in sync with definitions above */
void *private_data;
void (*private_free)(struct snd_jack *);
};