ASoC: mediatek: mt8186: Use new direct clock defines
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 13 Jun 2022 16:15:52 +0000 (17:15 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jun 2022 08:14:16 +0000 (09:14 +0100)
Update this driver to the new direct clock producer/consumer defines. It
appears this driver was added with the inversion taken account of but
still uses the CODEC defines so no inversion of the producer/consumer
is necessary.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220613161552.481337-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c

index dfff209b60da40fccbf04d1aabbd55a8cfa129a4..c6ead7c252f013514e6ffce56c8465e24ee17e3b 100644 (file)
@@ -585,10 +585,10 @@ static int mtk_dai_tdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
        }
 
        switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
-       case SND_SOC_DAIFMT_CBP_CFP:
+       case SND_SOC_DAIFMT_BP_FP:
                tdm_priv->slave_mode = false;
                break;
-       case SND_SOC_DAIFMT_CBC_CFC:
+       case SND_SOC_DAIFMT_BC_FC:
                tdm_priv->slave_mode = true;
                break;
        default: