[alsa-devel] Got headphone out working via hda-verb setting on MacPro1, 1

Takashi Iwai tiwai at suse.de
Mon Feb 3 11:10:05 CET 2014


At Fri, 31 Jan 2014 18:50:11 +0100,
Nicolai Beuermann wrote:
> 
> Am 22.01.2014 11:29, schrieb Takashi Iwai:
> > At Tue, 21 Jan 2014 01:13:03 +0100,
> > Nicolai Beuermann wrote:
> >>
> >> Hello,
> >> hda-analyzer told me to write a note to this list when settings are
> >> successful.
> >>
> >> My setup:
> >> MacPro 1,1
> >> Kernel 3.10.17 (gentoo sources)
> >> ALSA k3.10.17
> >>
> >> Had to set
> >> /usr/bin/hda-verb /dev/snd/hwC0D0 0x18 SET_PIN_WIDGET_CONTROL 0xc1
> >> to get the headphone out at the front working.
> >>
> >> Wrote a bit (in german) about it:
> >> http://www.nico-beuermann.de/blogging/archives/117-Hier-gibt-es-was-auf-die-Ohren.html#extended
> > 
> > Could you check whether 3.13 still has the same problem?
> > If yes, please give alsa-info.sh output.  Better to run it with
> > --no-upload and attach the output.
> 
> 3.13 still has the same problem.
> alsa-infos's output has been attached.

Thanks.  Could you try the patch below with 3.14-rc1?
3.13.1 still doesn't contain the fix for MBA 1,1 (which will be merged
to stable kernel soon later).  Alternatively, you can cherry-pick the
commit e7729a415315fcd9516912050d85d5aaebcededc
    ALSA: hda - Fix silent output on MacBook Air 1,1

from Linus tree, and apply the patch below on its top.


Takashi

-- 8< --
From: Takashi Iwai <tiwai at suse.de>
Subject: [PATCH] ALSA: hda - Fix missing VREF setup for Mac Pro 1,1

Mac Pro 1,1 with ALC889A codec needs the VREF setup on NID 0x18 to
VREF50, in order to make the speaker working.  The same fixup was
already needed for MacBook Air 1,1, so we can reuse it.

Reported-by: Nicolai Beuermann <mail at nico-beuermann.de>
Cc: <stable at vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
 sound/pci/hda/patch_realtek.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index cbeb67d98852..af7a0c372292 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1821,6 +1821,7 @@ enum {
 	ALC889_FIXUP_IMAC91_VREF,
 	ALC889_FIXUP_MBA11_VREF,
 	ALC889_FIXUP_MBA21_VREF,
+	ALC889_FIXUP_MP11_VREF,
 	ALC882_FIXUP_INV_DMIC,
 	ALC882_FIXUP_NO_PRIMARY_HP,
 	ALC887_FIXUP_ASUS_BASS,
@@ -2190,6 +2191,12 @@ static const struct hda_fixup alc882_fixups[] = {
 		.chained = true,
 		.chain_id = ALC889_FIXUP_MBP_VREF,
 	},
+	[ALC889_FIXUP_MP11_VREF] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc889_fixup_mba11_vref,
+		.chained = true,
+		.chain_id = ALC885_FIXUP_MACPRO_GPIO,
+	},
 	[ALC882_FIXUP_INV_DMIC] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc_fixup_inv_dmic_0x12,
@@ -2253,7 +2260,7 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x106b, 0x00a0, "MacBookPro 3,1", ALC889_FIXUP_MBP_VREF),
 	SND_PCI_QUIRK(0x106b, 0x00a1, "Macbook", ALC889_FIXUP_MBP_VREF),
 	SND_PCI_QUIRK(0x106b, 0x00a4, "MacbookPro 4,1", ALC889_FIXUP_MBP_VREF),
-	SND_PCI_QUIRK(0x106b, 0x0c00, "Mac Pro", ALC885_FIXUP_MACPRO_GPIO),
+	SND_PCI_QUIRK(0x106b, 0x0c00, "Mac Pro", ALC889_FIXUP_MP11_VREF),
 	SND_PCI_QUIRK(0x106b, 0x1000, "iMac 24", ALC885_FIXUP_MACPRO_GPIO),
 	SND_PCI_QUIRK(0x106b, 0x2800, "AppleTV", ALC885_FIXUP_MACPRO_GPIO),
 	SND_PCI_QUIRK(0x106b, 0x2c00, "MacbookPro rev3", ALC889_FIXUP_MBP_VREF),
-- 
1.8.5.2



More information about the Alsa-devel mailing list