aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-08-15 09:02:28 -0400
committerJaroslav Kysela <perex@suse.cz>2005-08-30 02:46:09 -0400
commit16d3f140fc265c9b9c0f8975e0b36fe15912508f (patch)
tree4f1a8c3e3ab7626112cf27439ad38a2ad747cca4 /sound/pci
parentb27113102f576092cd8f5d6ce8365aa6e2f58134 (diff)
[ALSA] via82xx - Fix SPDIF sample rates
VIA82xx driver Fixed the sample rates set in the fourth DXS channel with Non-VRA mode. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/via82xx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index 38b96eabea60..819f27b2762b 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -929,12 +929,12 @@ static int snd_via8233_playback_prepare(snd_pcm_substream_t *substream)
929 929
930 if ((rate_changed = via_lock_rate(&chip->rates[0], ac97_rate)) < 0) 930 if ((rate_changed = via_lock_rate(&chip->rates[0], ac97_rate)) < 0)
931 return rate_changed; 931 return rate_changed;
932 if (rate_changed) { 932 if (rate_changed)
933 snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, 933 snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE,
934 chip->no_vra ? 48000 : runtime->rate); 934 chip->no_vra ? 48000 : runtime->rate);
935 snd_ac97_set_rate(chip->ac97, AC97_SPDIF, 935 if (chip->spdif_on && viadev->reg_offset == 0x30)
936 chip->no_vra ? 48000 : runtime->rate); 936 snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
937 } 937
938 if (runtime->rate == 48000) 938 if (runtime->rate == 48000)
939 rbits = 0xfffff; 939 rbits = 0xfffff;
940 else 940 else