[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>
This commit is contained in:
Tobin Davis 2007-02-15 17:46:18 +01:00 committed by Jaroslav Kysela
parent f0f9674585
commit 081d17c472
1 changed files with 10 additions and 3 deletions

View File

@ -4942,9 +4942,16 @@ static int patch_alc882(struct hda_codec *codec)
alc882_cfg_tbl); alc882_cfg_tbl);
if (board_config < 0 || board_config >= ALC882_MODEL_LAST) { if (board_config < 0 || board_config >= ALC882_MODEL_LAST) {
printk(KERN_INFO "hda_codec: Unknown model for ALC882, " /* Pick up systems that don't supply PCI SSID */
"trying auto-probe from BIOS...\n"); switch (codec->subsystem_id) {
board_config = ALC882_AUTO; case 0x106b0c00: /* Mac Pro */
board_config = ALC885_MACPRO;
break;
default:
printk(KERN_INFO "hda_codec: Unknown model for ALC882, "
"trying auto-probe from BIOS...\n");
board_config = ALC882_AUTO;
}
} }
if (board_config == ALC882_AUTO) { if (board_config == ALC882_AUTO) {