Skip to contentSkip to conversation

ALSA: Add support for video out to the jack reporting API

PATCH Applied Jani Nikula 3 participants 5 messages Jan 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ALSA: Add support for video out to the jack reporting API

The following patch is generated against topic/jack-core branch of
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git

Jani.

#1 lore raw

PATCH 1/1 ALSA: Add support for video out to the jack reporting API

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.

---
 include/linux/input.h |    1 +
 include/sound/jack.h  |    2 ++
 sound/core/jack.c     |    1 +
 3 files changed, 4 insertions(+), 0 deletions(-)
include/linux/input.h +1 -0
index 9a6355f..adc1332 100644
@@ -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)
 
include/sound/jack.h +2 -0
index 85266a2..6b013c6 100644
@@ -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 {
sound/core/jack.c +1 -0
index b2da10c..43b10d6 100644
@@ -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)
Signature · 1 line
1.6.0.4
Applied
#2 lore raw
Quoted 8 lines · Jani Nikula

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.

I've applied this to my jack branch - I'd been intending to push once the merge window closes.

#3 lore raw

At Wed, 7 Jan 2009 11:07:20 +0000,

Quoted 6 lines · Mark Brown
Quoted 3 lines · Jani Nikula

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.

Quoted 7 lines
Quoted 4 lines

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

I've applied this to my jack branch - I'd been intending to push once the merge window closes.

You don't have to wait the close of merge-window. I'll put the stuff to next/* branches and merge to only master (yeah I'm back from vacation so I can handle better now :)

thanks,

Takashi

#4 lore raw
Quoted 3 lines · Takashi Iwai

You don't have to wait the close of merge-window. I'll put the stuff to next/* branches and merge to only master (yeah I'm back from vacation so I can handle better now :)

OK, I'll send something later today hopefully. I'm just working on ASoC integration for the API.