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

index 8bb8fef2a1d1893ebc17ead321145140cef39cf4..eb795abe9acdc4e698297d09fa68e0c1916f64b2 100644 (file)
@@ -1160,12 +1160,12 @@ static int da9055_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
        u8 aif_clk_mode, aif_ctrl, mode;
 
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
-       case SND_SOC_DAIFMT_CBM_CFM:
+       case SND_SOC_DAIFMT_CBP_CFP:
                /* DA9055 in I2S Master Mode */
                mode = 1;
                aif_clk_mode = DA9055_AIF_CLK_EN_MASTER_MODE;
                break;
-       case SND_SOC_DAIFMT_CBS_CFS:
+       case SND_SOC_DAIFMT_CBC_CFC:
                /* DA9055 in I2S Slave Mode */
                mode = 0;
                aif_clk_mode = DA9055_AIF_CLK_EN_SLAVE_MODE;