diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2016-01-09 17:47:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-10 06:57:26 -0500 |
commit | 4ab936d1aca69978dc738592a00e34f836bda1c3 (patch) | |
tree | 7704a30796d435b2cc3902209134836e48e6ed7d /sound | |
parent | 5938448b99275cba95167c3f9d39ca9225fdad38 (diff) |
ASoC: rockchip: i2s: Add SNDRV_PCM_FMTBIT_S32_LE support
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 8b0a588ed622..6561c4cc2edd 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c | |||
@@ -242,6 +242,9 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream, | |||
242 | case SNDRV_PCM_FORMAT_S24_LE: | 242 | case SNDRV_PCM_FORMAT_S24_LE: |
243 | val |= I2S_TXCR_VDW(24); | 243 | val |= I2S_TXCR_VDW(24); |
244 | break; | 244 | break; |
245 | case SNDRV_PCM_FORMAT_S32_LE: | ||
246 | val |= I2S_TXCR_VDW(32); | ||
247 | break; | ||
245 | default: | 248 | default: |
246 | return -EINVAL; | 249 | return -EINVAL; |
247 | } | 250 | } |
@@ -360,7 +363,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = { | |||
360 | .formats = (SNDRV_PCM_FMTBIT_S8 | | 363 | .formats = (SNDRV_PCM_FMTBIT_S8 | |
361 | SNDRV_PCM_FMTBIT_S16_LE | | 364 | SNDRV_PCM_FMTBIT_S16_LE | |
362 | SNDRV_PCM_FMTBIT_S20_3LE | | 365 | SNDRV_PCM_FMTBIT_S20_3LE | |
363 | SNDRV_PCM_FMTBIT_S24_LE), | 366 | SNDRV_PCM_FMTBIT_S24_LE | |
367 | SNDRV_PCM_FMTBIT_S32_LE), | ||
364 | }, | 368 | }, |
365 | .capture = { | 369 | .capture = { |
366 | .stream_name = "Capture", | 370 | .stream_name = "Capture", |
@@ -370,7 +374,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = { | |||
370 | .formats = (SNDRV_PCM_FMTBIT_S8 | | 374 | .formats = (SNDRV_PCM_FMTBIT_S8 | |
371 | SNDRV_PCM_FMTBIT_S16_LE | | 375 | SNDRV_PCM_FMTBIT_S16_LE | |
372 | SNDRV_PCM_FMTBIT_S20_3LE | | 376 | SNDRV_PCM_FMTBIT_S20_3LE | |
373 | SNDRV_PCM_FMTBIT_S24_LE), | 377 | SNDRV_PCM_FMTBIT_S24_LE | |
378 | SNDRV_PCM_FMTBIT_S32_LE), | ||
374 | }, | 379 | }, |
375 | .ops = &rockchip_i2s_dai_ops, | 380 | .ops = &rockchip_i2s_dai_ops, |
376 | .symmetric_rates = 1, | 381 | .symmetric_rates = 1, |