ALSA: Add support for video out to the jack reporting API
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Wed, 7 Jan 2009 09:54:25 +0000 (11:54 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 7 Jan 2009 10:55:18 +0000 (10:55 +0000)
Add support for reporting new jack types SND_JACK_VIDEOOUT and
SND_JACK_AVOUT (a combination of LINEOUT and VIDEOOUT) to the jack
reporting API.

Also add the corresponding SW_VIDEOOUT_INSERT switch to the input system
header.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/input.h
include/sound/jack.h
sound/core/jack.c

index 9a6355f74db25b28233cb3d9d8765d7aec13632e..adc13322d1d2a352b1e7a139f873e2b1e5ca78a1 100644 (file)
@@ -661,6 +661,7 @@ struct input_absinfo {
 #define SW_DOCK                        0x05  /* set = plugged into dock */
 #define SW_LINEOUT_INSERT      0x06  /* set = inserted */
 #define SW_JACK_PHYSICAL_INSERT 0x07  /* set = mechanical switch set */
+#define SW_VIDEOOUT_INSERT     0x08  /* set = inserted */
 #define SW_MAX                 0x0f
 #define SW_CNT                 (SW_MAX+1)
 
index 85266a2f5c6f7998165d6d15cad3ba4304046da1..6b013c6f6a049b980c6b6de1f7ac4f094597ef24 100644 (file)
@@ -40,6 +40,8 @@ enum snd_jack_types {
        SND_JACK_HEADSET        = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE,
        SND_JACK_LINEOUT        = 0x0004,
        SND_JACK_MECHANICAL     = 0x0008, /* If detected separately */
+       SND_JACK_VIDEOOUT       = 0x0010,
+       SND_JACK_AVOUT          = SND_JACK_LINEOUT | SND_JACK_VIDEOOUT,
 };
 
 struct snd_jack {
index b2da10c9916a5d4e666079f1f3d9688637dd5e46..43b10d6e522bc0e7b2c62bee63f0a5d94faa2250 100644 (file)
@@ -28,6 +28,7 @@ static int jack_types[] = {
        SW_MICROPHONE_INSERT,
        SW_LINEOUT_INSERT,
        SW_JACK_PHYSICAL_INSERT,
+       SW_VIDEOOUT_INSERT,
 };
 
 static int snd_jack_dev_free(struct snd_device *device)