diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-02-03 11:24:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 13:42:02 -0500 |
commit | 4f6136fa0d6200f1c6eebfb1f12572ca6b770927 (patch) | |
tree | 375a9091955d2bf1374370f4969c15d1fd3bf9e2 | |
parent | 1659b84312617fe846def362f6ccdc73ec452d44 (diff) |
ASoC: rx1950_uda1380: Don't modify runtime->hw
Individual components are not supposed to modify the runtime->hw struct itself
as it is manged by the ASoC core. If a component wants to limit the list of
supported rates it should set a rate constraint. The rx1950_uda1380 already does
this, so it is safe to just remove the code that modifies runtime->hw.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/samsung/rx1950_uda1380.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/samsung/rx1950_uda1380.c b/sound/soc/samsung/rx1950_uda1380.c index afbfe4aa2cbf..2982d9e7f268 100644 --- a/sound/soc/samsung/rx1950_uda1380.c +++ b/sound/soc/samsung/rx1950_uda1380.c | |||
@@ -131,10 +131,6 @@ static int rx1950_startup(struct snd_pcm_substream *substream) | |||
131 | { | 131 | { |
132 | struct snd_pcm_runtime *runtime = substream->runtime; | 132 | struct snd_pcm_runtime *runtime = substream->runtime; |
133 | 133 | ||
134 | runtime->hw.rate_min = hw_rates.list[0]; | ||
135 | runtime->hw.rate_max = hw_rates.list[hw_rates.count - 1]; | ||
136 | runtime->hw.rates = SNDRV_PCM_RATE_KNOT; | ||
137 | |||
138 | return snd_pcm_hw_constraint_list(runtime, 0, | 134 | return snd_pcm_hw_constraint_list(runtime, 0, |
139 | SNDRV_PCM_HW_PARAM_RATE, | 135 | SNDRV_PCM_HW_PARAM_RATE, |
140 | &hw_rates); | 136 | &hw_rates); |