Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dwc: extend supported formats

The COMP1_TX_WORDSIZE_0/COMP2_RX_WORDSIZE_0 fields in the comp
registers indicate the maximum wordsize supported. DWC I2S controller
can operate with any smaller wordsize. So extend the formats to let
I2S to operate in any allowed modes.

Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru
Link: https://lore.kernel.org/r/20230505053521.18233-1-fido_max@inbox.ru
Signed-off-by: Mark Brown <broonie@kernel.org

authored by

Maxim Kochetkov and committed by
Mark Brown
7f2a9750 582ed316

+3 -3
+3 -3
sound/soc/dwc/dwc-i2s.c
··· 481 481 static const u32 formats[COMP_MAX_WORDSIZE] = { 482 482 SNDRV_PCM_FMTBIT_S16_LE, 483 483 SNDRV_PCM_FMTBIT_S16_LE, 484 - SNDRV_PCM_FMTBIT_S24_LE, 485 - SNDRV_PCM_FMTBIT_S24_LE, 486 - SNDRV_PCM_FMTBIT_S32_LE, 484 + SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, 485 + SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, 486 + SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE, 487 487 0, 488 488 0, 489 489 0