Commit abf82ae6 authored by Mark Brown's avatar Mark Brown

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

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e7610743
...@@ -973,17 +973,17 @@ static int da732x_hw_params(struct snd_pcm_substream *substream, ...@@ -973,17 +973,17 @@ static int da732x_hw_params(struct snd_pcm_substream *substream,
reg_aif = dai->driver->base; reg_aif = dai->driver->base;
switch (params_format(params)) { switch (params_width(params)) {
case SNDRV_PCM_FORMAT_S16_LE: case 16:
aif |= DA732X_AIF_WORD_16; aif |= DA732X_AIF_WORD_16;
break; break;
case SNDRV_PCM_FORMAT_S20_3LE: case 20:
aif |= DA732X_AIF_WORD_20; aif |= DA732X_AIF_WORD_20;
break; break;
case SNDRV_PCM_FORMAT_S24_LE: case 24:
aif |= DA732X_AIF_WORD_24; aif |= DA732X_AIF_WORD_24;
break; break;
case SNDRV_PCM_FORMAT_S32_LE: case 32:
aif |= DA732X_AIF_WORD_32; aif |= DA732X_AIF_WORD_32;
break; break;
default: default:
......
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