1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.6/target/linux/bcm27xx/patches-6.6/0732-ASoC-dwc-Remove-check-in-set_bclk_ratio-handling.patch
Ycarus (Yannick Chabanois) 12de1d2995 Add RPI kernel 6.6 support
2024-04-05 20:55:33 +02:00

37 lines
1.2 KiB
Diff

From 1c6dcea926ae19ef7d073b89f101ae0d67e3c877 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 20 Nov 2023 15:17:34 +0000
Subject: [PATCH 0732/1002] ASoC: dwc: Remove check in set_bclk_ratio handling
A check added to dw_i2s_set_bclk_ratio that the data format is
consistent with the ratio seems reasonable but breaks when the
ratio is changed before the format. Remove the check - it is
unnecessary.
See: https://github.com/raspberrypi/linux/issues/5724
Fixes: 9c6694c24f26 ("ASOC: dwc: Fix 16-bit audio handling")
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
sound/soc/dwc/dwc-i2s.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c
index 00425bda28f4..9d6a12e9a5a7 100644
--- a/sound/soc/dwc/dwc-i2s.c
+++ b/sound/soc/dwc/dwc-i2s.c
@@ -528,11 +528,8 @@ static int dw_i2s_set_bclk_ratio(struct snd_soc_dai *cpu_dai,
unsigned int ratio)
{
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(cpu_dai);
- struct i2s_clk_config_data *config = &dev->config;
dev_dbg(dev->dev, "%s(%d)\n", __func__, ratio);
- if (ratio < config->data_width * 2)
- return -EINVAL;
switch (ratio) {
case 32:
--
2.44.0