提交 abf82ae6 编写于 作者: M Mark Brown

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

Signed-off-by: NMark Brown <broonie@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册