Skip to content

Commit 6b24e67

Browse files
johnkeepingbroonie
authored andcommitted
ASoC: rockchip: i2s-tdm: fix shift config for SND_SOC_DAIFMT_DSP_[AB]
Commit 2f45a4e ("ASoC: rockchip: i2s_tdm: Fixup config for SND_SOC_DAIFMT_DSP_A/B") applied a partial change to fix the configuration for DSP A and DSP B formats. The shift control also needs updating to set the correct offset for frame data compared to LRCK. Set the correct values. Fixes: 081068f ("ASoC: rockchip: add support for i2s-tdm controller") Signed-off-by: John Keeping <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a8c9a45 commit 6b24e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/rockchip/rockchip_i2s_tdm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ static int rockchip_i2s_tdm_set_fmt(struct snd_soc_dai *cpu_dai,
451451
break;
452452
case SND_SOC_DAIFMT_DSP_A:
453453
val = I2S_TXCR_TFS_TDM_PCM;
454-
tdm_val = TDM_SHIFT_CTRL(0);
454+
tdm_val = TDM_SHIFT_CTRL(2);
455455
break;
456456
case SND_SOC_DAIFMT_DSP_B:
457457
val = I2S_TXCR_TFS_TDM_PCM;
458-
tdm_val = TDM_SHIFT_CTRL(2);
458+
tdm_val = TDM_SHIFT_CTRL(4);
459459
break;
460460
default:
461461
ret = -EINVAL;

0 commit comments

Comments
 (0)