diff options
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio_pcm.c')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio_pcm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c index 21df0634af32..cdcda87116c3 100644 --- a/sound/pci/cs5535audio/cs5535audio_pcm.c +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/init.h> | 25 | #include <linux/init.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/pci.h> | 27 | #include <linux/pci.h> |
28 | #include <sound/driver.h> | ||
29 | #include <sound/core.h> | 28 | #include <sound/core.h> |
30 | #include <sound/control.h> | 29 | #include <sound/control.h> |
31 | #include <sound/initval.h> | 30 | #include <sound/initval.h> |
@@ -98,6 +97,8 @@ static int snd_cs5535audio_playback_open(struct snd_pcm_substream *substream) | |||
98 | struct snd_pcm_runtime *runtime = substream->runtime; | 97 | struct snd_pcm_runtime *runtime = substream->runtime; |
99 | 98 | ||
100 | runtime->hw = snd_cs5535audio_playback; | 99 | runtime->hw = snd_cs5535audio_playback; |
100 | runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; | ||
101 | snd_pcm_limit_hw_rates(runtime); | ||
101 | cs5535au->playback_substream = substream; | 102 | cs5535au->playback_substream = substream; |
102 | runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); | 103 | runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); |
103 | if ((err = snd_pcm_hw_constraint_integer(runtime, | 104 | if ((err = snd_pcm_hw_constraint_integer(runtime, |
@@ -343,6 +344,8 @@ static int snd_cs5535audio_capture_open(struct snd_pcm_substream *substream) | |||
343 | struct snd_pcm_runtime *runtime = substream->runtime; | 344 | struct snd_pcm_runtime *runtime = substream->runtime; |
344 | 345 | ||
345 | runtime->hw = snd_cs5535audio_capture; | 346 | runtime->hw = snd_cs5535audio_capture; |
347 | runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_ADC]; | ||
348 | snd_pcm_limit_hw_rates(runtime); | ||
346 | cs5535au->capture_substream = substream; | 349 | cs5535au->capture_substream = substream; |
347 | runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_CAPTURE]); | 350 | runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_CAPTURE]); |
348 | if ((err = snd_pcm_hw_constraint_integer(runtime, | 351 | if ((err = snd_pcm_hw_constraint_integer(runtime, |