diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:52:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 13:47:20 -0400 |
commit | 18ce1da9da69b5fa53f896754a66a91b1ec30908 (patch) | |
tree | 7b7afdb135fda60fefb594d453a557931eea42ae /sound | |
parent | f21b66043d52dde17e9ebb498df9b4b3883e3d5e (diff) |
ASoC: wm8770: 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: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8770.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c index c61aeb38efb8..180e7a098726 100644 --- a/sound/soc/codecs/wm8770.c +++ b/sound/soc/codecs/wm8770.c | |||
@@ -426,16 +426,16 @@ static int wm8770_hw_params(struct snd_pcm_substream *substream, | |||
426 | wm8770 = snd_soc_codec_get_drvdata(codec); | 426 | wm8770 = snd_soc_codec_get_drvdata(codec); |
427 | 427 | ||
428 | iface = 0; | 428 | iface = 0; |
429 | switch (params_format(params)) { | 429 | switch (params_width(params)) { |
430 | case SNDRV_PCM_FORMAT_S16_LE: | 430 | case 16: |
431 | break; | 431 | break; |
432 | case SNDRV_PCM_FORMAT_S20_3LE: | 432 | case 20: |
433 | iface |= 0x10; | 433 | iface |= 0x10; |
434 | break; | 434 | break; |
435 | case SNDRV_PCM_FORMAT_S24_LE: | 435 | case 24: |
436 | iface |= 0x20; | 436 | iface |= 0x20; |
437 | break; | 437 | break; |
438 | case SNDRV_PCM_FORMAT_S32_LE: | 438 | case 32: |
439 | iface |= 0x30; | 439 | iface |= 0x30; |
440 | break; | 440 | break; |
441 | } | 441 | } |