diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-04-11 08:03:41 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-11 08:10:57 -0400 |
commit | 912093bc7c08f59e97faed2c0269e1e5429dcd58 (patch) | |
tree | 974a19fb63e404d6ca12b70d6b52682679fe42a6 | |
parent | fae3d88a5c56c3f836e95c4516da883a48612437 (diff) |
ALSA: hda/realtek - Add a few ALC882 model strings back
Since there are still many Acer models that might not be covered by
the current fixup table, let's add back a few typical model names so
that user can test the fixup without recompiling.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | Documentation/sound/alsa/HD-Audio-Models.txt | 4 | ||||
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt index d97d992ced14..03f7897c6414 100644 --- a/Documentation/sound/alsa/HD-Audio-Models.txt +++ b/Documentation/sound/alsa/HD-Audio-Models.txt | |||
@@ -43,7 +43,9 @@ ALC680 | |||
43 | 43 | ||
44 | ALC882/883/885/888/889 | 44 | ALC882/883/885/888/889 |
45 | ====================== | 45 | ====================== |
46 | N/A | 46 | acer-aspire-4930g Acer Aspire 4930G/5930G/6530G/6930G/7730G |
47 | acer-aspire-8930g Acer Aspire 8330G/6935G | ||
48 | acer-aspire Acer Aspire others | ||
47 | 49 | ||
48 | ALC861/660 | 50 | ALC861/660 |
49 | ========== | 51 | ========== |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 9917e55d6f11..e7b2b839a539 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -5399,6 +5399,13 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = { | |||
5399 | {} | 5399 | {} |
5400 | }; | 5400 | }; |
5401 | 5401 | ||
5402 | static const struct alc_model_fixup alc882_fixup_models[] = { | ||
5403 | {.id = ALC882_FIXUP_ACER_ASPIRE_4930G, .name = "acer-aspire-4930g"}, | ||
5404 | {.id = ALC882_FIXUP_ACER_ASPIRE_8930G, .name = "acer-aspire-8930g"}, | ||
5405 | {.id = ALC883_FIXUP_ACER_EAPD, .name = "acer-aspire"}, | ||
5406 | {} | ||
5407 | }; | ||
5408 | |||
5402 | /* | 5409 | /* |
5403 | * BIOS auto configuration | 5410 | * BIOS auto configuration |
5404 | */ | 5411 | */ |
@@ -5439,7 +5446,8 @@ static int patch_alc882(struct hda_codec *codec) | |||
5439 | if (err < 0) | 5446 | if (err < 0) |
5440 | goto error; | 5447 | goto error; |
5441 | 5448 | ||
5442 | alc_pick_fixup(codec, NULL, alc882_fixup_tbl, alc882_fixups); | 5449 | alc_pick_fixup(codec, alc882_fixup_models, alc882_fixup_tbl, |
5450 | alc882_fixups); | ||
5443 | alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); | 5451 | alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); |
5444 | 5452 | ||
5445 | alc_auto_parse_customize_define(codec); | 5453 | alc_auto_parse_customize_define(codec); |