bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-0891-ASoC-dwc-list-all-supported-sample-sizes.patch
1 From 9ef0615a5c5f93cb72af8df3a2dae6d23b106eb5 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 21 Feb 2023 21:26:16 +0000
4 Subject: [PATCH] ASoC: dwc: list all supported sample sizes
5
6 The hardware configuration determines the maximum-supported sample size
7 for each channel, but TCRx allows smaller sizes to be specified at run
8 time. Include the smaller supported sizes in the formats array.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 ---
12 sound/soc/dwc/dwc-i2s.c | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15 --- a/sound/soc/dwc/dwc-i2s.c
16 +++ b/sound/soc/dwc/dwc-i2s.c
17 @@ -448,9 +448,9 @@ static const u32 bus_widths[COMP_MAX_DAT
18 static const u32 formats[COMP_MAX_WORDSIZE] = {
19 SNDRV_PCM_FMTBIT_S16_LE,
20 SNDRV_PCM_FMTBIT_S16_LE,
21 - SNDRV_PCM_FMTBIT_S24_LE,
22 - SNDRV_PCM_FMTBIT_S24_LE,
23 - SNDRV_PCM_FMTBIT_S32_LE,
24 + SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S16_LE,
25 + SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S16_LE,
26 + SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S16_LE,
27 0,
28 0,
29 0