diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-04-11 09:08:32 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 04:00:27 -0400 |
commit | 01ef355f0c34d6fbb451512e70e4cf336776b7fd (patch) | |
tree | b377ef2df2ff47454111e628faa5d56f373cdf58 | |
parent | 2d7eb7cb2bab1fbe8cfb610277b19ad40a9f7c75 (diff) |
[ALSA] Fix SPDIF rate with dxs_support=4
VIA82xx driver
Fix SPDIF rate setting with dxs_support=4. It should be 48k fixed.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/via82xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 2f1e6ebd56a7..e6e746fa4bb5 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -935,7 +935,8 @@ static int snd_via8233_playback_prepare(snd_pcm_substream_t *substream) | |||
935 | if (rate_changed) { | 935 | if (rate_changed) { |
936 | snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, | 936 | snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, |
937 | chip->no_vra ? 48000 : runtime->rate); | 937 | chip->no_vra ? 48000 : runtime->rate); |
938 | snd_ac97_set_rate(chip->ac97, AC97_SPDIF, ac97_rate); | 938 | snd_ac97_set_rate(chip->ac97, AC97_SPDIF, |
939 | chip->no_vra ? 48000 : runtime->rate); | ||
939 | } | 940 | } |
940 | if (runtime->rate == 48000) | 941 | if (runtime->rate == 48000) |
941 | rbits = 0xfffff; | 942 | rbits = 0xfffff; |