diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:47:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 08:30:12 -0400 |
commit | 560cfb14c6d7f219904ba4b81c0a581ffd7870ea (patch) | |
tree | 32e4b9ead9f2a5871bf6c1a678916f704292d86a | |
parent | 1f9ffcb0be08f83006f2d3c7e841d8ba7cdd1a9b (diff) |
ASoC: ssm2518: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
-rw-r--r-- | sound/soc/codecs/ssm2518.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c index 56adb3e2def9..e8680bea5f86 100644 --- a/sound/soc/codecs/ssm2518.c +++ b/sound/soc/codecs/ssm2518.c | |||
@@ -361,11 +361,11 @@ static int ssm2518_hw_params(struct snd_pcm_substream *substream, | |||
361 | return -EINVAL; | 361 | return -EINVAL; |
362 | 362 | ||
363 | if (ssm2518->right_j) { | 363 | if (ssm2518->right_j) { |
364 | switch (params_format(params)) { | 364 | switch (params_width(params)) { |
365 | case SNDRV_PCM_FORMAT_S16_LE: | 365 | case 16: |
366 | ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_16BIT; | 366 | ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_16BIT; |
367 | break; | 367 | break; |
368 | case SNDRV_PCM_FORMAT_S24_LE: | 368 | case 24: |
369 | ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_24BIT; | 369 | ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_24BIT; |
370 | break; | 370 | break; |
371 | default: | 371 | default: |