aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-11-16 05:33:35 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-16 05:33:35 -0500
commit7d1794e81b5f202c73d7e3e65f0ee7aae4928038 (patch)
tree3c3e9d8abe03a3b7f1702726bbc589bbd68bdfd9 /sound/pci/hda/patch_realtek.c
parent01a1796bc52f625edc23bf995d200e1556eec544 (diff)
parent8ef5837a47f73faee18fa7ce2f9a9eb7675be8de (diff)
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index b592419b2083..5d7b882bd68c 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4688,9 +4688,9 @@ static int alc880_parse_auto_config(struct hda_codec *codec)
4688 spec->multiout.dig_out_nid = dig_nid; 4688 spec->multiout.dig_out_nid = dig_nid;
4689 else { 4689 else {
4690 spec->multiout.slave_dig_outs = spec->slave_dig_outs; 4690 spec->multiout.slave_dig_outs = spec->slave_dig_outs;
4691 spec->slave_dig_outs[i - 1] = dig_nid; 4691 if (i >= ARRAY_SIZE(spec->slave_dig_outs) - 1)
4692 if (i == ARRAY_SIZE(spec->slave_dig_outs) - 1)
4693 break; 4692 break;
4693 spec->slave_dig_outs[i - 1] = dig_nid;
4694 } 4694 }
4695 } 4695 }
4696 if (spec->autocfg.dig_in_pin) 4696 if (spec->autocfg.dig_in_pin)
@@ -6250,7 +6250,7 @@ static struct snd_pci_quirk alc260_cfg_tbl[] = {
6250 SND_PCI_QUIRK(0x1025, 0x008f, "Acer", ALC260_ACER), 6250 SND_PCI_QUIRK(0x1025, 0x008f, "Acer", ALC260_ACER),
6251 SND_PCI_QUIRK(0x1509, 0x4540, "Favorit 100XS", ALC260_FAVORIT100), 6251 SND_PCI_QUIRK(0x1509, 0x4540, "Favorit 100XS", ALC260_FAVORIT100),
6252 SND_PCI_QUIRK(0x103c, 0x2808, "HP d5700", ALC260_HP_3013), 6252 SND_PCI_QUIRK(0x103c, 0x2808, "HP d5700", ALC260_HP_3013),
6253 SND_PCI_QUIRK(0x103c, 0x280a, "HP d5750", ALC260_HP_3013), 6253 SND_PCI_QUIRK(0x103c, 0x280a, "HP d5750", ALC260_AUTO), /* no quirk */
6254 SND_PCI_QUIRK(0x103c, 0x3010, "HP", ALC260_HP_3013), 6254 SND_PCI_QUIRK(0x103c, 0x3010, "HP", ALC260_HP_3013),
6255 SND_PCI_QUIRK(0x103c, 0x3011, "HP", ALC260_HP_3013), 6255 SND_PCI_QUIRK(0x103c, 0x3011, "HP", ALC260_HP_3013),
6256 SND_PCI_QUIRK(0x103c, 0x3012, "HP", ALC260_HP_DC7600), 6256 SND_PCI_QUIRK(0x103c, 0x3012, "HP", ALC260_HP_DC7600),
@@ -8912,10 +8912,11 @@ static struct snd_pci_quirk alc882_ssid_cfg_tbl[] = {
8912 SND_PCI_QUIRK(0x106b, 0x3800, "MacbookPro 4,1", ALC885_MBP3), 8912 SND_PCI_QUIRK(0x106b, 0x3800, "MacbookPro 4,1", ALC885_MBP3),
8913 SND_PCI_QUIRK(0x106b, 0x3e00, "iMac 24 Aluminum", ALC885_IMAC24), 8913 SND_PCI_QUIRK(0x106b, 0x3e00, "iMac 24 Aluminum", ALC885_IMAC24),
8914 SND_PCI_QUIRK(0x106b, 0x3f00, "Macbook 5,1", ALC885_MB5), 8914 SND_PCI_QUIRK(0x106b, 0x3f00, "Macbook 5,1", ALC885_MB5),
8915 /* FIXME: HP jack sense seems not working for MBP 5,1, so apparently 8915 /* FIXME: HP jack sense seems not working for MBP 5,1 or 5,2,
8916 * no perfect solution yet 8916 * so apparently no perfect solution yet
8917 */ 8917 */
8918 SND_PCI_QUIRK(0x106b, 0x4000, "MacbookPro 5,1", ALC885_MB5), 8918 SND_PCI_QUIRK(0x106b, 0x4000, "MacbookPro 5,1", ALC885_MB5),
8919 SND_PCI_QUIRK(0x106b, 0x4600, "MacbookPro 5,2", ALC885_MB5),
8919 {} /* terminator */ 8920 {} /* terminator */
8920}; 8921};
8921 8922
@@ -9814,9 +9815,9 @@ static int alc882_parse_auto_config(struct hda_codec *codec)
9814 spec->multiout.dig_out_nid = dig_nid; 9815 spec->multiout.dig_out_nid = dig_nid;
9815 else { 9816 else {
9816 spec->multiout.slave_dig_outs = spec->slave_dig_outs; 9817 spec->multiout.slave_dig_outs = spec->slave_dig_outs;
9817 spec->slave_dig_outs[i - 1] = dig_nid; 9818 if (i >= ARRAY_SIZE(spec->slave_dig_outs) - 1)
9818 if (i == ARRAY_SIZE(spec->slave_dig_outs) - 1)
9819 break; 9819 break;
9820 spec->slave_dig_outs[i - 1] = dig_nid;
9820 } 9821 }
9821 } 9822 }
9822 if (spec->autocfg.dig_in_pin) 9823 if (spec->autocfg.dig_in_pin)
@@ -11457,6 +11458,7 @@ static struct snd_pci_quirk alc262_cfg_tbl[] = {
11457 SND_PCI_QUIRK(0x104d, 0x820f, "Sony ASSAMD", ALC262_SONY_ASSAMD), 11458 SND_PCI_QUIRK(0x104d, 0x820f, "Sony ASSAMD", ALC262_SONY_ASSAMD),
11458 SND_PCI_QUIRK(0x104d, 0x9016, "Sony VAIO", ALC262_AUTO), /* dig-only */ 11459 SND_PCI_QUIRK(0x104d, 0x9016, "Sony VAIO", ALC262_AUTO), /* dig-only */
11459 SND_PCI_QUIRK(0x104d, 0x9025, "Sony VAIO Z21MN", ALC262_TOSHIBA_S06), 11460 SND_PCI_QUIRK(0x104d, 0x9025, "Sony VAIO Z21MN", ALC262_TOSHIBA_S06),
11461 SND_PCI_QUIRK(0x104d, 0x9035, "Sony VAIO VGN-FW170J", ALC262_AUTO),
11460 SND_PCI_QUIRK_MASK(0x104d, 0xff00, 0x9000, "Sony VAIO", 11462 SND_PCI_QUIRK_MASK(0x104d, 0xff00, 0x9000, "Sony VAIO",
11461 ALC262_SONY_ASSAMD), 11463 ALC262_SONY_ASSAMD),
11462 SND_PCI_QUIRK(0x1179, 0x0001, "Toshiba dynabook SS RX1", 11464 SND_PCI_QUIRK(0x1179, 0x0001, "Toshiba dynabook SS RX1",