diff options
author | Andrey Liakhovets <liakh@dol.ru> | 2006-08-28 10:52:41 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 04:44:53 -0400 |
commit | 9f458e7fb5b92385d348fb6039ba7211a6d6ba6e (patch) | |
tree | 9ac4a4857f3deb6ac8bd4eccf468f353a4a3be9c /sound/pci/ac97 | |
parent | 33925186d843e7004288cd3d87843c5a1dbf55a4 (diff) |
[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 <liakh@dol.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ac97')
-rw-r--r-- | sound/pci/ac97/ac97_patch.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
2799 | */ | 2799 | */ |
2800 | int patch_vt1617a(struct snd_ac97 * ac97) | 2800 | int patch_vt1617a(struct snd_ac97 * ac97) |
2801 | { | 2801 | { |
2802 | /* bring analog power consumption to normal, like WinXP driver | ||
2803 | * for EPIA SP | ||
2804 | */ | ||
2805 | snd_ac97_write_cache(ac97, 0x5c, 0x20); | ||
2802 | ac97->ext_id |= AC97_EI_SPDIF; /* force the detection of spdif */ | 2806 | ac97->ext_id |= AC97_EI_SPDIF; /* force the detection of spdif */ |
2803 | ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000; | 2807 | ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000; |
2804 | return 0; | 2808 | return 0; |