diff options
Diffstat (limited to 'sound/soc/sh/rcar/core.c')
-rw-r--r-- | sound/soc/sh/rcar/core.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 849c1ad93df2..44f32c1db05d 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -227,21 +227,17 @@ u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io) | |||
227 | struct rsnd_priv *priv = rsnd_mod_to_priv(mod); | 227 | struct rsnd_priv *priv = rsnd_mod_to_priv(mod); |
228 | struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); | 228 | struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); |
229 | struct device *dev = rsnd_priv_to_dev(priv); | 229 | struct device *dev = rsnd_priv_to_dev(priv); |
230 | u32 adinr = runtime->channels; | ||
231 | 230 | ||
232 | switch (runtime->sample_bits) { | 231 | switch (runtime->sample_bits) { |
233 | case 16: | 232 | case 16: |
234 | adinr |= (8 << 16); | 233 | return 8 << 16; |
235 | break; | ||
236 | case 32: | 234 | case 32: |
237 | adinr |= (0 << 16); | 235 | return 0 << 16; |
238 | break; | ||
239 | default: | ||
240 | dev_warn(dev, "not supported sample bits\n"); | ||
241 | return 0; | ||
242 | } | 236 | } |
243 | 237 | ||
244 | return adinr; | 238 | dev_warn(dev, "not supported sample bits\n"); |
239 | |||
240 | return 0; | ||
245 | } | 241 | } |
246 | 242 | ||
247 | u32 rsnd_get_adinr_chan(struct rsnd_mod *mod, struct rsnd_dai_stream *io) | 243 | u32 rsnd_get_adinr_chan(struct rsnd_mod *mod, struct rsnd_dai_stream *io) |