Skip to contentSkip to conversation

ALSA: hda - Fix line-in for mb5 model MacBook (Pro) 5, 1 / 5, 2

PATCH Takashi Iwai 1 participant 2 messages Jun 14, 2010 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

At Mon, 14 Jun 2010 12:08:43 +0930,

Quoted 6 lines · [email protected] wrote:

From: Alex Murray <[email protected]>

The line-in input is 0x7 not 0x2 for MacBook (Pro) 5,1 / 5,2 models

MB5 != MBP5, so I suspect this might be rather the incompatibility between them...

Takashi

Quoted 42 lines
sound/pci/hda/patch_realtek.c +6 -7
index 17d4548..007f96b 100644
@@ -6948,7 +6948,7 @@ static struct hda_input_mux mb5_capture_source = {
 	.num_items = 3,
 	.items = {
 		{ "Mic", 0x1 },
-		{ "Line", 0x2 },
+		{ "Line", 0x7 },
 		{ "CD", 0x4 },
 	},
 };
@@ -7469,8 +7469,8 @@ static struct snd_kcontrol_new alc885_mb5_mixer[] = {
 	HDA_BIND_MUTE   ("LFE Playback Switch", 0x0e, 0x02, HDA_INPUT),
 	HDA_CODEC_VOLUME("Headphone Playback Volume", 0x0f, 0x00, HDA_OUTPUT),
 	HDA_BIND_MUTE   ("Headphone Playback Switch", 0x0f, 0x02, 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("Line Playback Volume", 0x0b, 0x07, HDA_INPUT),
+	HDA_CODEC_MUTE  ("Line Playback Switch", 0x0b, 0x07, HDA_INPUT),
 	HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x01, HDA_INPUT),
 	HDA_CODEC_MUTE  ("Mic Playback Switch", 0x0b, 0x01, HDA_INPUT),
 	HDA_CODEC_VOLUME("Line Boost", 0x15, 0x00, HDA_INPUT),
@@ -7853,10 +7853,9 @@ static struct hda_verb alc885_mb5_init_verbs[] = {
 	{0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
 	{0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE},
 
-	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)},
-	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(3)},
-	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(2)},
-	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(4)},
+	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0x1)},
+	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0x7)},
+	{0x24, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0x4)},
 	{ }
 };
 
Signature · 1 line
1.7.0.4
#3 lore raw
In reply to a message not in the archive

At Mon, 14 Jun 2010 16:31:21 +0930,

Quoted 6 lines · Alex Murray

Takashi - There is no incompatibilty, both are the same - the mb5 model is used for all MacBook (Pro) 5,1 / 5,2 models, the only differnce between the Pro and non-Pro is the Pro has the subwoofer (LFE) which the non-Pro lacks.

Quoted 6 lines

You can see here
http://ubuntuforums.org/showpost.php?p=9444153&postcount=3 for a copy of /proc/asound/card0/codec#0 on a MacBook 5,1 (i.e. not Pro) which confirms the line-out is 0x7 for that model as well - I've tested this directly on my MacBook Pro 5,1 - so I am 100% confident this is correct for both Pro and non-Pro models, unless you have evidence otherwise?

OK, then it's all green. I applied the patch now. Thanks for a quick response!

Takashi