Skip to content

Commit a85ed16

Browse files
Hsin-Te Yuanbroonie
authored andcommitted
ASoC: mediatek: mt8192: fix register configuration for tdm
For DSP_A, data is a BCK cycle behind LRCK trigger edge. For DSP_B, this delay doesn't exist. Fix the delay configuration to match the standard. Fixes: 52fcd65 ("ASoC: mediatek: mt8192: support tdm in platform driver") Signed-off-by: Hsin-Te Yuan <yuanhsinte@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20240509-8192-tdm-v1-1-530b54645763@chromium.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 6490bec commit a85ed16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/mediatek/mt8192/mt8192-dai-tdm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,10 @@ static int mtk_dai_tdm_hw_params(struct snd_pcm_substream *substream,
566566
tdm_con |= 1 << DELAY_DATA_SFT;
567567
tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT;
568568
} else if (tdm_priv->tdm_out_mode == TDM_OUT_DSP_A) {
569-
tdm_con |= 0 << DELAY_DATA_SFT;
569+
tdm_con |= 1 << DELAY_DATA_SFT;
570570
tdm_con |= 0 << LRCK_TDM_WIDTH_SFT;
571571
} else if (tdm_priv->tdm_out_mode == TDM_OUT_DSP_B) {
572-
tdm_con |= 1 << DELAY_DATA_SFT;
572+
tdm_con |= 0 << DELAY_DATA_SFT;
573573
tdm_con |= 0 << LRCK_TDM_WIDTH_SFT;
574574
}
575575

0 commit comments

Comments
 (0)