]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: hda - Fix speaker output on HP DV4 1155-SE
authorHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Mon, 16 Feb 2009 09:23:00 +0000 (10:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Feb 2009 09:23:00 +0000 (10:23 +0100)
Force speaker pin config with model=hp-dv5 model for cases when bios
doesn't set it up properly. All reported hp laptops using model=hp-dv5
model have speaker at pin 0x0d with same config, so it's safe to add
this within hp-dv5 model.

Reference: alsa-devel mailing list thread on
    http://mailman.alsa-project.org/pipermail/alsa-devel/2009-February/014390.html

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index aeb5d2126daeb0400d5f1f8050e10859d096d5c7..7320059b71357657722e9ef4be7502e3a54240e6 100644 (file)
@@ -1823,6 +1823,8 @@ static struct snd_pci_quirk stac92hd71bxx_cfg_tbl[] = {
                      "HP dv7", STAC_HP_DV5),
        SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x30f7,
                      "HP dv4", STAC_HP_DV5),
+       SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x30fb,
+                     "HP dv7", STAC_HP_DV5),
        SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x30fc,
                      "HP dv7", STAC_HP_M4),
        SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x3600,
@@ -5170,6 +5172,10 @@ again:
                spec->num_smuxes = 0;
                spec->num_dmuxes = 0;
                break;
+       case STAC_HP_DV5:
+               stac_change_pin_config(codec, 0x0d, 0x90170010);
+               stac92xx_auto_set_pinctl(codec, 0x0d, AC_PINCTL_OUT_EN);
+               break;
        };
 
        spec->multiout.dac_nids = spec->dac_nids;