Commit d4dd1fdf authored by Mark Brown's avatar Mark Brown

ASoC: ad193x: Use params_width() rather than memory format

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent fa69b0f9
...@@ -249,15 +249,15 @@ static int ad193x_hw_params(struct snd_pcm_substream *substream, ...@@ -249,15 +249,15 @@ static int ad193x_hw_params(struct snd_pcm_substream *substream,
struct ad193x_priv *ad193x = snd_soc_codec_get_drvdata(codec); struct ad193x_priv *ad193x = snd_soc_codec_get_drvdata(codec);
/* bit size */ /* bit size */
switch (params_format(params)) { switch (params_width(params)) {
case SNDRV_PCM_FORMAT_S16_LE: case 16:
word_len = 3; word_len = 3;
break; break;
case SNDRV_PCM_FORMAT_S20_3LE: case 20:
word_len = 1; word_len = 1;
break; break;
case SNDRV_PCM_FORMAT_S24_LE: case 24:
case SNDRV_PCM_FORMAT_S32_LE: case 32:
word_len = 0; word_len = 0;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment