All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Line In for Acer Inspire 6530G model
@ 2009-06-26  8:27 Tony Vroon
  2009-06-29  7:19 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Tony Vroon @ 2009-06-26  8:27 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Emilio López

The Line In connector is set up as PIN_IN by default, using 
VREF_HIZ. It is connected to both ADCs, so add it to both 
input selectors.
Also add the ability to use the input mix (on a SoundBlaster 
one would call this "What You Hear").

Signed-off-by: Tony Vroon <tony@linx.net>

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 3345331..67dd883 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1560,18 +1560,22 @@ static struct hda_input_mux alc888_2_capture_sources[2] = {
 static struct hda_input_mux alc888_acer_aspire_6530_sources[2] = {
 	/* Interal mic only available on one ADC */
 	{
-		.num_items = 3,
+		.num_items = 5,
 		.items = {
 			{ "Ext Mic", 0x0 },
+			{ "Line In", 0x2 },
 			{ "CD", 0x4 },
+			{ "Input Mix", 0xa },
 			{ "Int Mic", 0xb },
 		},
 	},
 	{
-		.num_items = 2,
+		.num_items = 4,
 		.items = {
 			{ "Ext Mic", 0x0 },
+			{ "Line In", 0x2 },
 			{ "CD", 0x4 },
+			{ "Input Mix", 0xa },
 		},
 	}
 };
@@ -8189,6 +8193,8 @@ static struct snd_kcontrol_new alc888_acer_aspire_6530_mixer[] = {
 	HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),
 	HDA_CODEC_VOLUME("LFE Playback Volume", 0x0f, 0x0, HDA_OUTPUT),
 	HDA_BIND_MUTE("LFE Playback Switch", 0x0f, 2, HDA_INPUT),
+	HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x02, HDA_INPUT),
+	HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT),
 	HDA_CODEC_VOLUME("CD Playback Volume", 0x0b, 0x04, HDA_INPUT),
 	HDA_CODEC_MUTE("CD Playback Switch", 0x0b, 0x04, HDA_INPUT),
 	HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT),

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-01 14:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-26  8:27 [PATCH] Line In for Acer Inspire 6530G model Tony Vroon
2009-06-29  7:19 ` Takashi Iwai
2009-06-30  3:54   ` Emilio López
2009-06-30  6:07     ` Juan Jesús García de Soria Lucena
2009-06-30  6:35       ` Takashi Iwai
2009-06-30 19:56         ` Juan Jesús García de Soria Lucena
     [not found]           ` <1246392149.11792.8.camel@localhost>
2009-07-01 14:33             ` can't find snd_card_next! Guilherme
2009-07-01 14:53               ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.