bcm27xx: update 6.1 patches to latest version
[openwrt/staging/svanheule.git] / target / linux / bcm27xx / patches-6.1 / 950-1155-ASoC-dwc-Remove-check-in-set_bclk_ratio-handling.patch
1 From 52545628c07be2fd1c9df598a17130d92f12da23 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 20 Nov 2023 15:17:34 +0000
4 Subject: [PATCH] ASoC: dwc: Remove check in set_bclk_ratio handling
5
6 A check added to dw_i2s_set_bclk_ratio that the data format is
7 consistent with the ratio seems reasonable but breaks when the
8 ratio is changed before the format. Remove the check - it is
9 unnecessary.
10
11 See: https://github.com/raspberrypi/linux/issues/5724
12 Fixes: 9c6694c24f26 ("ASOC: dwc: Fix 16-bit audio handling")
13
14 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
15 ---
16 sound/soc/dwc/dwc-i2s.c | 3 ---
17 1 file changed, 3 deletions(-)
18
19 --- a/sound/soc/dwc/dwc-i2s.c
20 +++ b/sound/soc/dwc/dwc-i2s.c
21 @@ -427,11 +427,8 @@ static int dw_i2s_set_bclk_ratio(struct
22 unsigned int ratio)
23 {
24 struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(cpu_dai);
25 - struct i2s_clk_config_data *config = &dev->config;
26
27 dev_dbg(dev->dev, "%s(%d)\n", __func__, ratio);
28 - if (ratio < config->data_width * 2)
29 - return -EINVAL;
30
31 switch (ratio) {
32 case 32: