diff options
author | Jiaxin Yu <jiaxin.yu@mediatek.com> | 2021-03-12 05:26:45 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-12 17:25:32 +0300 |
commit | 8d06b9633a66f41fed520f6eebd163189518ba79 (patch) | |
tree | d2891f8929ceb8b03c3d81a72e2ba3ccf01724ed /sound/soc/mediatek/mt8192/mt8192-dai-tdm.c | |
parent | 9922f50f7178496e709d3d064920b5031f0d9061 (diff) | |
download | linux-8d06b9633a66f41fed520f6eebd163189518ba79.tar.xz |
ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge
This patch correct tdm out bck inverse register to AUDIO_TOP_CON3[3].
Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com>
Link: https://lore.kernel.org/r/1615516005-781-1-git-send-email-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8192/mt8192-dai-tdm.c')
-rw-r--r-- | sound/soc/mediatek/mt8192/mt8192-dai-tdm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c b/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c index f5de1d769679..f3bebed2428a 100644 --- a/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c +++ b/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c @@ -555,7 +555,9 @@ static int mtk_dai_tdm_hw_params(struct snd_pcm_substream *substream, /* set tdm */ if (tdm_priv->bck_invert) - tdm_con |= 1 << BCK_INVERSE_SFT; + regmap_update_bits(afe->regmap, AUDIO_TOP_CON3, + BCK_INVERSE_MASK_SFT, + 0x1 << BCK_INVERSE_SFT); if (tdm_priv->lck_invert) tdm_con |= 1 << LRCK_INVERSE_SFT; |