diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:49:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 09:37:23 -0400 |
commit | 9630181aac6e709ff248e68474701f763b286c98 (patch) | |
tree | dfe236ee78a0ecaadb16bf4167690fce28518601 /sound | |
parent | aa9ffad68a0a5aa00e7c475e28c9951432d701c4 (diff) |
ASoC: wl1273: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wl1273.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 4ead0dc02b87..34f64dc281ec 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
@@ -341,8 +341,9 @@ static int wl1273_hw_params(struct snd_pcm_substream *substream, | |||
341 | struct wl1273_core *core = wl1273->core; | 341 | struct wl1273_core *core = wl1273->core; |
342 | unsigned int rate, width, r; | 342 | unsigned int rate, width, r; |
343 | 343 | ||
344 | if (params_format(params) != SNDRV_PCM_FORMAT_S16_LE) { | 344 | if (params_width(params) != 16) { |
345 | pr_err("Only SNDRV_PCM_FORMAT_S16_LE supported.\n"); | 345 | dev_err(dai->dev, "%d bits/sample not supported\n", |
346 | params_width(params)); | ||
346 | return -EINVAL; | 347 | return -EINVAL; |
347 | } | 348 | } |
348 | 349 | ||