Skip to content

Commit

Permalink
[ALSA] hda-codec - Add suppoprt for Asus M2N-SLI motherboard
Browse files Browse the repository at this point in the history
This patch adds a cfg_tbl to the ad1988 code with the Asus M2N-SLI as
it's first member.

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>
  • Loading branch information
Tobin Davis authored and Jaroslav Kysela committed Mar 14, 2007
1 parent 19bfafb commit a64c8cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sound/pci/hda/patch_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2607,6 +2607,11 @@ static const char *ad1988_models[AD1988_MODEL_LAST] = {
[AD1988_AUTO] = "auto",
};

static struct snd_pci_quirk ad1988_cfg_tbl[] = {
SND_PCI_QUIRK(0x1043, 0x81f6, "Asus M2N-SLI", AD1988_6STACK_DIG),
{}
};

static int patch_ad1988(struct hda_codec *codec)
{
struct ad198x_spec *spec;
Expand All @@ -2623,7 +2628,7 @@ static int patch_ad1988(struct hda_codec *codec)
snd_printk(KERN_INFO "patch_analog: AD1988A rev.2 is detected, enable workarounds\n");

board_config = snd_hda_check_board_config(codec, AD1988_MODEL_LAST,
ad1988_models, NULL);
ad1988_models, ad1988_cfg_tbl);
if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for AD1988, trying auto-probe from BIOS...\n");
board_config = AD1988_AUTO;
Expand Down

0 comments on commit a64c8cd

Please sign in to comment.