aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-24 02:43:16 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:30:13 -0500
commit33c646e4ffb1b48d67598fadf3323158f0cfd4b9 (patch)
treecde1997fecbf2f5077f2b92cd65640b304fcfa44 /sound/pci/oxygen
parent9478bc3bed1e15208f8041b44d45505cb93e6cc8 (diff)
[ALSA] oxygen: fix SPDIF input rates
Fix up SPDIF input sample rates again: 32 kHz and 64 kHz are not supported. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen')
-rw-r--r--sound/pci/oxygen/oxygen_pcm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/oxygen/oxygen_pcm.c b/sound/pci/oxygen/oxygen_pcm.c
index 272ef08f0a28..2785660957d0 100644
--- a/sound/pci/oxygen/oxygen_pcm.c
+++ b/sound/pci/oxygen/oxygen_pcm.c
@@ -119,6 +119,11 @@ static int oxygen_open(struct snd_pcm_substream *substream,
119 119
120 runtime->private_data = (void *)(uintptr_t)channel; 120 runtime->private_data = (void *)(uintptr_t)channel;
121 runtime->hw = *oxygen_hardware[channel]; 121 runtime->hw = *oxygen_hardware[channel];
122 if (channel == PCM_C) {
123 runtime->hw.rates &= ~(SNDRV_PCM_RATE_32000 |
124 SNDRV_PCM_RATE_64000);
125 runtime->hw.rate_min = 44100;
126 }
122 if (chip->model->pcm_hardware_filter) 127 if (chip->model->pcm_hardware_filter)
123 chip->model->pcm_hardware_filter(channel, &runtime->hw); 128 chip->model->pcm_hardware_filter(channel, &runtime->hw);
124 err = snd_pcm_hw_constraint_step(runtime, 0, 129 err = snd_pcm_hw_constraint_step(runtime, 0,