]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: codec: rt5631: use inclusive language for SND_SOC_DAIFMT_CBx_CFx
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 26 Feb 2025 01:33:26 +0000 (01:33 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Mar 2025 12:57:58 +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/87cyf5ebh5.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5631.c

index 12df0c4f2097d27ae8105102505bb3fd1c77ab49..d523477c510216f2879c4e95d1846aeb10342c0c 100644 (file)
@@ -1411,10 +1411,10 @@ static int rt5631_hifi_codec_set_dai_fmt(struct snd_soc_dai *codec_dai,
        dev_dbg(component->dev, "enter %s\n", __func__);
 
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
-       case SND_SOC_DAIFMT_CBM_CFM:
+       case SND_SOC_DAIFMT_CBP_CFP:
                rt5631->master = 1;
                break;
-       case SND_SOC_DAIFMT_CBS_CFS:
+       case SND_SOC_DAIFMT_CBC_CFC:
                iface |= RT5631_SDP_MODE_SEL_SLAVE;
                rt5631->master = 0;
                break;