ASoC: fsl-audmix: Update to modern clocking terminology
authorMark Brown <broonie@kernel.org>
Tue, 21 Sep 2021 21:35:29 +0000 (22:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 22 Sep 2021 12:23:18 +0000 (13:23 +0100)
As part of moving to remove the old style defines for the bus clocks update
the fsl-audmix driver to use more modern terminology for clocking.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20210921213542.31688-3-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_audmix.c

index f931288e256ca4c841c3b644d185913196cb7534..6dbb8c99f62688af4719421dde405c797fa9d670 100644 (file)
@@ -257,10 +257,10 @@ static int fsl_audmix_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
                return -EINVAL;
        }
 
-       /* For playback the AUDMIX is slave, and for record is master */
-       switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
-       case SND_SOC_DAIFMT_CBM_CFM:
-       case SND_SOC_DAIFMT_CBS_CFS:
+       /* For playback the AUDMIX is consumer, and for record is provider */
+       switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
+       case SND_SOC_DAIFMT_CBP_CFP:
+       case SND_SOC_DAIFMT_CBC_CFC:
                break;
        default:
                return -EINVAL;