aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-pcm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 1a617fde46e6..2b8949647e32 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -170,6 +170,9 @@ static void soc_pcm_init_runtime_hw(struct snd_pcm_runtime *runtime,
170 & (SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_CONTINUOUS)) 170 & (SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_CONTINUOUS))
171 hw->rates |= codec_stream->rates; 171 hw->rates |= codec_stream->rates;
172 172
173 hw->rate_min = 0;
174 hw->rate_max = UINT_MAX;
175
173 snd_pcm_limit_hw_rates(runtime); 176 snd_pcm_limit_hw_rates(runtime);
174 177
175 hw->rate_min = max(hw->rate_min, cpu_stream->rate_min); 178 hw->rate_min = max(hw->rate_min, cpu_stream->rate_min);