From 53803aead010a314f76a8a6fa132fdcc5edf55ed Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 7 Feb 2012 19:48:47 +0000 Subject: 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 Signed-off-by: Takashi Iwai --- include/sound/jack.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sound') 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; -- cgit v1.2.3-55-g7522