ASoC: rt5651: Convert to params_width()
The CODEC doesn't care how data is laid out in memory. Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
e6777ead10
commit
794f33d2fb
|
@ -1366,16 +1366,16 @@ static int rt5651_hw_params(struct snd_pcm_substream *substream,
|
|||
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
|
||||
bclk_ms, pre_div, dai->id);
|
||||
|
||||
switch (params_format(params)) {
|
||||
case SNDRV_PCM_FORMAT_S16_LE:
|
||||
switch (params_width(params)) {
|
||||
case 16:
|
||||
break;
|
||||
case SNDRV_PCM_FORMAT_S20_3LE:
|
||||
case 20:
|
||||
val_len |= RT5651_I2S_DL_20;
|
||||
break;
|
||||
case SNDRV_PCM_FORMAT_S24_LE:
|
||||
case 24:
|
||||
val_len |= RT5651_I2S_DL_24;
|
||||
break;
|
||||
case SNDRV_PCM_FORMAT_S8:
|
||||
case 8:
|
||||
val_len |= RT5651_I2S_DL_8;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue