diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-08 18:38:20 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-09 13:59:26 +0000 |
commit | d4dd1fdf9ee320ef7fde77922c853c74a8cd3c7d (patch) | |
tree | a644d2b5ed98ed27d799114de6d15ea77fffd8f6 /sound | |
parent | fa69b0f93e3e383dc50df9529db67c09a1db3787 (diff) | |
download | op-kernel-dev-d4dd1fdf9ee320ef7fde77922c853c74a8cd3c7d.zip op-kernel-dev-d4dd1fdf9ee320ef7fde77922c853c74a8cd3c7d.tar.gz |
ASoC: ad193x: Use params_width() rather than memory format
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/ad193x.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/ad193x.c b/sound/soc/codecs/ad193x.c index aea7e52..d6cdb3b 100644 --- a/sound/soc/codecs/ad193x.c +++ b/sound/soc/codecs/ad193x.c @@ -249,15 +249,15 @@ static int ad193x_hw_params(struct snd_pcm_substream *substream, struct ad193x_priv *ad193x = snd_soc_codec_get_drvdata(codec); /* bit size */ - switch (params_format(params)) { - case SNDRV_PCM_FORMAT_S16_LE: + switch (params_width(params)) { + case 16: word_len = 3; break; - case SNDRV_PCM_FORMAT_S20_3LE: + case 20: word_len = 1; break; - case SNDRV_PCM_FORMAT_S24_LE: - case SNDRV_PCM_FORMAT_S32_LE: + case 24: + case 32: word_len = 0; break; } |