From 6cf06ec6b1b995bbc0bff12ce5b2f96500758f4d Mon Sep 17 00:00:00 2001 From: Ariff Abdullah Date: Sun, 1 Jul 2007 17:28:58 +0000 Subject: [PATCH] Fix no-sound issues with ASUS A9T notebook. Note: The offending quirk should have been made model/codec specific, but since there were no records / log which model requires it, the quirk logic had to be inverted (blacklist instead of whitelist). Tested by: Arkadiy Dudevitch Approved by: re (hrs) MFC after: 3 days --- sys/dev/sound/pcm/ac97_patch.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/pcm/ac97_patch.c b/sys/dev/sound/pcm/ac97_patch.c index ae4c153ab57..6e326ca324c 100644 --- a/sys/dev/sound/pcm/ac97_patch.c +++ b/sys/dev/sound/pcm/ac97_patch.c @@ -44,7 +44,13 @@ void ad1886_patch(struct ac97_info* codec) void ad198x_patch(struct ac97_info* codec) { - ac97_wrcd(codec, 0x76, ac97_rdcd(codec, 0x76) | 0x0420); + switch (ac97_getsubvendor(codec)) { + case 0x11931043: /* Not for ASUS A9T (probably else too). */ + break; + default: + ac97_wrcd(codec, 0x76, ac97_rdcd(codec, 0x76) | 0x0420); + break; + } } void ad1981b_patch(struct ac97_info* codec)