diff options
Diffstat (limited to 'sound/pci/oxygen/oxygen_pcm.c')
-rw-r--r-- | sound/pci/oxygen/oxygen_pcm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/pci/oxygen/oxygen_pcm.c b/sound/pci/oxygen/oxygen_pcm.c index 5f15d355a431..5515c757ec4b 100644 --- a/sound/pci/oxygen/oxygen_pcm.c +++ b/sound/pci/oxygen/oxygen_pcm.c | |||
@@ -33,11 +33,15 @@ static struct snd_pcm_hardware oxygen_hardware[PCM_COUNT] = { | |||
33 | SNDRV_PCM_INFO_SYNC_START, | 33 | SNDRV_PCM_INFO_SYNC_START, |
34 | .formats = SNDRV_PCM_FMTBIT_S16_LE | | 34 | .formats = SNDRV_PCM_FMTBIT_S16_LE | |
35 | SNDRV_PCM_FMTBIT_S32_LE, | 35 | SNDRV_PCM_FMTBIT_S32_LE, |
36 | .rates = SNDRV_PCM_RATE_44100 | | 36 | .rates = SNDRV_PCM_RATE_32000 | |
37 | SNDRV_PCM_RATE_44100 | | ||
37 | SNDRV_PCM_RATE_48000 | | 38 | SNDRV_PCM_RATE_48000 | |
39 | SNDRV_PCM_RATE_64000 | | ||
40 | SNDRV_PCM_RATE_88200 | | ||
38 | SNDRV_PCM_RATE_96000 | | 41 | SNDRV_PCM_RATE_96000 | |
42 | SNDRV_PCM_RATE_176400 | | ||
39 | SNDRV_PCM_RATE_192000, | 43 | SNDRV_PCM_RATE_192000, |
40 | .rate_min = 44100, | 44 | .rate_min = 32000, |
41 | .rate_max = 192000, | 45 | .rate_max = 192000, |
42 | .channels_min = 2, | 46 | .channels_min = 2, |
43 | .channels_max = 2, | 47 | .channels_max = 2, |
@@ -182,6 +186,8 @@ static int oxygen_open(struct snd_pcm_substream *substream, | |||
182 | 186 | ||
183 | runtime->private_data = (void *)(uintptr_t)channel; | 187 | runtime->private_data = (void *)(uintptr_t)channel; |
184 | runtime->hw = oxygen_hardware[channel]; | 188 | runtime->hw = oxygen_hardware[channel]; |
189 | if (chip->model->pcm_hardware_filter) | ||
190 | chip->model->pcm_hardware_filter(channel, &runtime->hw); | ||
185 | err = snd_pcm_hw_constraint_step(runtime, 0, | 191 | err = snd_pcm_hw_constraint_step(runtime, 0, |
186 | SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); | 192 | SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); |
187 | if (err < 0) | 193 | if (err < 0) |