]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: codec: cs42l42: use inclusive language for SND_SOC_DAIFMT_CBx_CFx
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 26 Feb 2025 01:31:36 +0000 (01:31 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Mar 2025 12:57:31 +0000 (12:57 +0000)
In SND_SOC_DAIFMT_CBx_CFx, M/S are no longer used. use P/C.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87h64hfq4n.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c

index 501c951cc327c5a2e0ba092fa41f90385f570f66..56668c39206394eadd443a7115d8aa188d9c5b91 100644 (file)
@@ -830,11 +830,11 @@ static int cs42l42_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
        u32 asp_cfg_val = 0;
 
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
-       case SND_SOC_DAIFMT_CBS_CFM:
+       case SND_SOC_DAIFMT_CBC_CFP:
                asp_cfg_val |= CS42L42_ASP_MASTER_MODE <<
                                CS42L42_ASP_MODE_SHIFT;
                break;
-       case SND_SOC_DAIFMT_CBS_CFS:
+       case SND_SOC_DAIFMT_CBC_CFC:
                asp_cfg_val |= CS42L42_ASP_SLAVE_MODE <<
                                CS42L42_ASP_MODE_SHIFT;
                break;