summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-07 23:48:47 +0400
committerTakashi Iwai <tiwai@suse.de>2012-02-27 20:34:44 +0400
commit53803aead010a314f76a8a6fa132fdcc5edf55ed (patch)
tree50f1cb6702a27d150e034828ccd1e696b2da79ab /include
parent62aa2b537c6f5957afd98e29f96897419ed5ebab (diff)
downloadlinux-53803aead010a314f76a8a6fa132fdcc5edf55ed.tar.xz
ALSA: Use a define for the number of jack switch types
This is intended to facilitate the merge of the two jack detection mechanisms. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/sound/jack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/jack.h b/include/sound/jack.h
index 63c790742db4..58916573db58 100644
--- a/include/sound/jack.h
+++ b/include/sound/jack.h
@@ -53,6 +53,9 @@ enum snd_jack_types {
SND_JACK_BTN_5 = 0x0200,
};
+/* Keep in sync with definitions above */
+#define SND_JACK_SWITCH_TYPES 6
+
struct snd_jack {
struct input_dev *input_dev;
int registered;