From: Andrey Liakhovets Date: Mon, 28 Aug 2006 14:52:41 +0000 (+0200) Subject: [ALSA] ac97 - Fix VIA EPIA sound problem X-Git-Tag: v2.6.19-rc1~1270^2~44 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9f458e7fb5b92385d348fb6039ba7211a6d6ba6e;p=karo-tx-linux.git [ALSA] ac97 - Fix VIA EPIA sound problem Fix the bad sound quality on VIA EPIA system using VIA VT1617A (ALSA bug#2381). Signed-off-by: Andrey Liakhovets Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c index 392f6ccace5d..bdd7f89234f6 100644 --- a/sound/pci/ac97/ac97_patch.c +++ b/sound/pci/ac97/ac97_patch.c @@ -2799,6 +2799,10 @@ int patch_vt1616(struct snd_ac97 * ac97) */ int patch_vt1617a(struct snd_ac97 * ac97) { + /* bring analog power consumption to normal, like WinXP driver + * for EPIA SP + */ + snd_ac97_write_cache(ac97, 0x5c, 0x20); ac97->ext_id |= AC97_EI_SPDIF; /* force the detection of spdif */ ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000; return 0;