Skip to content

Commit

Permalink
ASoC: dwc: Remove check in set_bclk_ratio handling
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pelwell committed Nov 20, 2023
1 parent 0924b74 commit 9e810c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/dwc/dwc-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,6 @@ static int dw_i2s_set_bclk_ratio(struct snd_soc_dai *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:
Expand Down

0 comments on commit 9e810c2

Please sign in to comment.