Skip to content

Commit 5254562

Browse files
committed
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: #5724 Fixes: 9c6694c ("ASOC: dwc: Fix 16-bit audio handling") Signed-off-by: Phil Elwell <[email protected]>
1 parent 2affda8 commit 5254562

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sound/soc/dwc/dwc-i2s.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,8 @@ static int dw_i2s_set_bclk_ratio(struct snd_soc_dai *cpu_dai,
427427
unsigned int ratio)
428428
{
429429
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(cpu_dai);
430-
struct i2s_clk_config_data *config = &dev->config;
431430

432431
dev_dbg(dev->dev, "%s(%d)\n", __func__, ratio);
433-
if (ratio < config->data_width * 2)
434-
return -EINVAL;
435432

436433
switch (ratio) {
437434
case 32:

0 commit comments

Comments
 (0)