mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-14 21:48:49 +00:00
ASoC: uda134x: 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
04f630d845
commit
aa9ffad68a
@ -243,14 +243,14 @@ static int uda134x_hw_params(struct snd_pcm_substream *substream,
|
|||||||
case SND_SOC_DAIFMT_I2S:
|
case SND_SOC_DAIFMT_I2S:
|
||||||
break;
|
break;
|
||||||
case SND_SOC_DAIFMT_RIGHT_J:
|
case SND_SOC_DAIFMT_RIGHT_J:
|
||||||
switch (params_format(params)) {
|
switch (params_width(params)) {
|
||||||
case SNDRV_PCM_FORMAT_S16_LE:
|
case 16:
|
||||||
hw_params |= (1<<1);
|
hw_params |= (1<<1);
|
||||||
break;
|
break;
|
||||||
case SNDRV_PCM_FORMAT_S18_3LE:
|
case 18:
|
||||||
hw_params |= (1<<2);
|
hw_params |= (1<<2);
|
||||||
break;
|
break;
|
||||||
case SNDRV_PCM_FORMAT_S20_3LE:
|
case 20:
|
||||||
hw_params |= ((1<<2) | (1<<1));
|
hw_params |= ((1<<2) | (1<<1));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user