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 21, 2023
1 parent 2affda8 commit 5254562
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/dwc/dwc-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,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:
Expand Down

0 comments on commit 5254562

Please sign in to comment.