aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-02-03 11:24:21 -0500
committerMark Brown <broonie@linaro.org>2014-02-03 13:41:59 -0500
commit1659b84312617fe846def362f6ccdc73ec452d44 (patch)
tree5dfb57f4c48e6256ea27bd382351c7430d42ff1e
parentd92bba83c790945ee0954f7a408b6b14418bd976 (diff)
ASoC: h1940_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 h1940_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/h1940_uda1380.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c
index 0003b661ab62..88b09e022503 100644
--- a/sound/soc/samsung/h1940_uda1380.c
+++ b/sound/soc/samsung/h1940_uda1380.c
@@ -66,10 +66,6 @@ static int h1940_startup(struct snd_pcm_substream *substream)
66{ 66{
67 struct snd_pcm_runtime *runtime = substream->runtime; 67 struct snd_pcm_runtime *runtime = substream->runtime;
68 68
69 runtime->hw.rate_min = hw_rates.list[0];
70 runtime->hw.rate_max = hw_rates.list[hw_rates.count - 1];
71 runtime->hw.rates = SNDRV_PCM_RATE_KNOT;
72
73 return snd_pcm_hw_constraint_list(runtime, 0, 69 return snd_pcm_hw_constraint_list(runtime, 0,
74 SNDRV_PCM_HW_PARAM_RATE, 70 SNDRV_PCM_HW_PARAM_RATE,
75 &hw_rates); 71 &hw_rates);