diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:52:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 13:47:23 -0400 |
commit | 16cfd485401ab4dcf8a06a56c14b9a1a5544a1c9 (patch) | |
tree | 6564807569a41f5f1f19f4b59d2e2865b6b5433d /sound/soc | |
parent | 18ce1da9da69b5fa53f896754a66a91b1ec30908 (diff) |
ASoC: wm8804: 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/soc')
-rw-r--r-- | sound/soc/codecs/wm8804.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index d96e5963ee35..0ea01dfcb6e1 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c | |||
@@ -270,19 +270,19 @@ static int wm8804_hw_params(struct snd_pcm_substream *substream, | |||
270 | 270 | ||
271 | codec = dai->codec; | 271 | codec = dai->codec; |
272 | 272 | ||
273 | switch (params_format(params)) { | 273 | switch (params_width(params)) { |
274 | case SNDRV_PCM_FORMAT_S16_LE: | 274 | case 16: |
275 | blen = 0x0; | 275 | blen = 0x0; |
276 | break; | 276 | break; |
277 | case SNDRV_PCM_FORMAT_S20_3LE: | 277 | case 20: |
278 | blen = 0x1; | 278 | blen = 0x1; |
279 | break; | 279 | break; |
280 | case SNDRV_PCM_FORMAT_S24_LE: | 280 | case 24: |
281 | blen = 0x2; | 281 | blen = 0x2; |
282 | break; | 282 | break; |
283 | default: | 283 | default: |
284 | dev_err(dai->dev, "Unsupported word length: %u\n", | 284 | dev_err(dai->dev, "Unsupported word length: %u\n", |
285 | params_format(params)); | 285 | params_width(params)); |
286 | return -EINVAL; | 286 | return -EINVAL; |
287 | } | 287 | } |
288 | 288 | ||