diff options
Diffstat (limited to 'sound/soc/samsung/h1940_uda1380.c')
-rw-r--r-- | sound/soc/samsung/h1940_uda1380.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c index fbced589d077..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); |
@@ -94,7 +90,7 @@ static int h1940_hw_params(struct snd_pcm_substream *substream, | |||
94 | div++; | 90 | div++; |
95 | break; | 91 | break; |
96 | default: | 92 | default: |
97 | dev_err(&rtd->dev, "%s: rate %d is not supported\n", | 93 | dev_err(rtd->dev, "%s: rate %d is not supported\n", |
98 | __func__, rate); | 94 | __func__, rate); |
99 | return -EINVAL; | 95 | return -EINVAL; |
100 | } | 96 | } |
@@ -181,7 +177,6 @@ static int h1940_uda1380_init(struct snd_soc_pcm_runtime *rtd) | |||
181 | { | 177 | { |
182 | struct snd_soc_codec *codec = rtd->codec; | 178 | struct snd_soc_codec *codec = rtd->codec; |
183 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 179 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
184 | int err; | ||
185 | 180 | ||
186 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); | 181 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); |
187 | snd_soc_dapm_enable_pin(dapm, "Speaker"); | 182 | snd_soc_dapm_enable_pin(dapm, "Speaker"); |