ASoC: rockchip: rk817-codec: Add support S32_LE

Change-Id: I850fb7a2745320ff4e325905cdf2cab625419977
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
This commit is contained in:
Leo Wen 2018-12-28 10:14:34 +08:00 committed by Tao Huang
parent c1cf9c6b8d
commit fb93d19476

View File

@ -758,6 +758,7 @@ static int rk817_hw_params(struct snd_pcm_substream *substream,
snd_soc_write(codec, RK817_CODEC_DI2S_TXCR2, VDW_TX_16BITS);
break;
case SNDRV_PCM_FORMAT_S24_LE:
case SNDRV_PCM_FORMAT_S32_LE:
snd_soc_write(codec, RK817_CODEC_DI2S_RXCR2, VDW_RX_24BITS);
snd_soc_write(codec, RK817_CODEC_DI2S_TXCR2, VDW_TX_24BITS);
break;