aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTobin Davis <tdavis@dsl-only.net>2007-02-15 11:46:18 -0500
committerJaroslav Kysela <perex@suse.cz>2007-03-06 04:40:23 -0500
commit081d17c4726131ba9ed763ea24f7235d8205fdf3 (patch)
tree2bdea6a481ef9b450b1774e5fc1798c82ae9264c /sound/pci/hda/patch_realtek.c
parentf0f9674585c7b0b1abe9efb68667cb16c878cc45 (diff)
[ALSA] hda-codec - Add method for configuring Mac Pro without PCI SSID
This patch adds a switch to configure systems that do not provide PCI SSID's for HD Audio like Mac Pro with ALC885. Signed-off-by: Tobin Davis <tdavis@dsl-only.net> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 145682b78071..7a4b5d36f245 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4942,9 +4942,16 @@ static int patch_alc882(struct hda_codec *codec)
4942 alc882_cfg_tbl); 4942 alc882_cfg_tbl);
4943 4943
4944 if (board_config < 0 || board_config >= ALC882_MODEL_LAST) { 4944 if (board_config < 0 || board_config >= ALC882_MODEL_LAST) {
4945 printk(KERN_INFO "hda_codec: Unknown model for ALC882, " 4945 /* Pick up systems that don't supply PCI SSID */
4946 "trying auto-probe from BIOS...\n"); 4946 switch (codec->subsystem_id) {
4947 board_config = ALC882_AUTO; 4947 case 0x106b0c00: /* Mac Pro */
4948 board_config = ALC885_MACPRO;
4949 break;
4950 default:
4951 printk(KERN_INFO "hda_codec: Unknown model for ALC882, "
4952 "trying auto-probe from BIOS...\n");
4953 board_config = ALC882_AUTO;
4954 }
4948 } 4955 }
4949 4956
4950 if (board_config == ALC882_AUTO) { 4957 if (board_config == ALC882_AUTO) {