summaryrefslogtreecommitdiffstats
path: root/sound/soc/dwc
diff options
context:
space:
mode:
authorMaxim Kochetkov <fido_max@inbox.ru>2023-05-05 08:35:21 +0300
committerMark Brown <broonie@kernel.org>2023-05-08 08:48:47 +0900
commit7f2a9750d9d9eeb0b2b4bbc417e96e852365937b (patch)
treec0c97369f0f14d753c3cb710566895c463338c78 /sound/soc/dwc
parent582ed3162de0fb64f2ce5139a5bb49ee06ddd99c (diff)
downloadlinux-stable-7f2a9750d9d9eeb0b2b4bbc417e96e852365937b.tar.gz
linux-stable-7f2a9750d9d9eeb0b2b4bbc417e96e852365937b.tar.bz2
linux-stable-7f2a9750d9d9eeb0b2b4bbc417e96e852365937b.zip
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
Diffstat (limited to 'sound/soc/dwc')
-rw-r--r--sound/soc/dwc/dwc-i2s.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c
index e2b2ba014a2e..c5ba88e050e7 100644
--- a/sound/soc/dwc/dwc-i2s.c
+++ b/sound/soc/dwc/dwc-i2s.c
@@ -481,9 +481,9 @@ static const u32 bus_widths[COMP_MAX_DATA_WIDTH] = {
static const u32 formats[COMP_MAX_WORDSIZE] = {
SNDRV_PCM_FMTBIT_S16_LE,
SNDRV_PCM_FMTBIT_S16_LE,
- SNDRV_PCM_FMTBIT_S24_LE,
- SNDRV_PCM_FMTBIT_S24_LE,
- SNDRV_PCM_FMTBIT_S32_LE,
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE,
0,
0,
0