Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 081d17c4 authored by Tobin Davis's avatar Tobin Davis Committed by Jaroslav Kysela
Browse files

[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: default avatarTobin Davis <tdavis@dsl-only.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent f0f96745
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -4942,10 +4942,17 @@ static int patch_alc882(struct hda_codec *codec)
						  alc882_cfg_tbl);

	if (board_config < 0 || board_config >= ALC882_MODEL_LAST) {
		/* Pick up systems that don't supply PCI SSID */
		switch (codec->subsystem_id) {
		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) {
		/* automatic parse from the BIOS config */