aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-18 04:57:07 -0500
committerTakashi Iwai <tiwai@suse.de>2008-11-18 04:57:07 -0500
commita581780aa17f9027c422cb2d10f0bd88135c36f5 (patch)
tree87b04f1c45dac7ecf9224eb4be38a98fa1e5cca5 /sound
parentaf9f341a94482594ac28cb5b07c655b458bfe84e (diff)
parentc5d08bb567874e410210cf7d21a25f28fcceb0a7 (diff)
Merge branch 'topic/fix/hda' into topic/hda
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_sigmatel.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 3029f5b1419a..139efe37f3b3 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -1739,6 +1739,10 @@ static struct snd_pci_quirk stac92hd71bxx_cfg_tbl[] = {
1739 /* SigmaTel reference board */ 1739 /* SigmaTel reference board */
1740 SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x2668, 1740 SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x2668,
1741 "DFI LanParty", STAC_92HD71BXX_REF), 1741 "DFI LanParty", STAC_92HD71BXX_REF),
1742 SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x30f2,
1743 "HP dv5", STAC_HP_M4),
1744 SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x30f4,
1745 "HP dv7", STAC_HP_M4),
1742 SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x361a, 1746 SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x361a,
1743 "unknown HP", STAC_HP_M4), 1747 "unknown HP", STAC_HP_M4),
1744 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0233, 1748 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0233,
@@ -4661,6 +4665,13 @@ again:
4661 return err; 4665 return err;
4662 } 4666 }
4663 4667
4668 if (spec->board_config > STAC_92HD71BXX_REF) {
4669 /* GPIO0 = EAPD */
4670 spec->gpio_mask = 0x01;
4671 spec->gpio_dir = 0x01;
4672 spec->gpio_data = 0x01;
4673 }
4674
4664 switch (codec->vendor_id) { 4675 switch (codec->vendor_id) {
4665 case 0x111d76b6: /* 4 Port without Analog Mixer */ 4676 case 0x111d76b6: /* 4 Port without Analog Mixer */
4666 case 0x111d76b7: 4677 case 0x111d76b7:
@@ -4671,10 +4682,10 @@ again:
4671 codec->slave_dig_outs = stac92hd71bxx_slave_dig_outs; 4682 codec->slave_dig_outs = stac92hd71bxx_slave_dig_outs;
4672 break; 4683 break;
4673 case 0x111d7608: /* 5 Port with Analog Mixer */ 4684 case 0x111d7608: /* 5 Port with Analog Mixer */
4674 switch (codec->subsystem_id) { 4685 switch (spec->board_config) {
4675 case 0x103c361a: 4686 case STAC_HP_M4:
4676 /* Enable VREF power saving on GPIO1 detect */ 4687 /* Enable VREF power saving on GPIO1 detect */
4677 snd_hda_codec_write(codec, codec->afg, 0, 4688 snd_hda_codec_write_cache(codec, codec->afg, 0,
4678 AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x02); 4689 AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x02);
4679 snd_hda_codec_write_cache(codec, codec->afg, 0, 4690 snd_hda_codec_write_cache(codec, codec->afg, 0,
4680 AC_VERB_SET_UNSOLICITED_ENABLE, 4691 AC_VERB_SET_UNSOLICITED_ENABLE,
@@ -4723,13 +4734,6 @@ again:
4723 spec->aloopback_mask = 0x50; 4734 spec->aloopback_mask = 0x50;
4724 spec->aloopback_shift = 0; 4735 spec->aloopback_shift = 0;
4725 4736
4726 if (spec->board_config > STAC_92HD71BXX_REF) {
4727 /* GPIO0 = EAPD */
4728 spec->gpio_mask = 0x01;
4729 spec->gpio_dir = 0x01;
4730 spec->gpio_data = 0x01;
4731 }
4732
4733 spec->powerdown_adcs = 1; 4737 spec->powerdown_adcs = 1;
4734 spec->digbeep_nid = 0x26; 4738 spec->digbeep_nid = 0x26;
4735 spec->mux_nids = stac92hd71bxx_mux_nids; 4739 spec->mux_nids = stac92hd71bxx_mux_nids;
@@ -5073,7 +5077,7 @@ static int patch_stac9205(struct hda_codec *codec)
5073 stac_change_pin_config(codec, 0x20, 0x1c410030); 5077 stac_change_pin_config(codec, 0x20, 0x1c410030);
5074 5078
5075 /* Enable unsol response for GPIO4/Dock HP connection */ 5079 /* Enable unsol response for GPIO4/Dock HP connection */
5076 snd_hda_codec_write(codec, codec->afg, 0, 5080 snd_hda_codec_write_cache(codec, codec->afg, 0,
5077 AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x10); 5081 AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x10);
5078 snd_hda_codec_write_cache(codec, codec->afg, 0, 5082 snd_hda_codec_write_cache(codec, codec->afg, 0,
5079 AC_VERB_SET_UNSOLICITED_ENABLE, 5083 AC_VERB_SET_UNSOLICITED_ENABLE,