From: Kuninori Morimoto Date: Thu, 25 Dec 2025 00:05:51 +0000 (+0000) Subject: ASoC: alc5623: tidyup clock inversion in alc5623_set_dai_fmt() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc22dfb13618ce1ae5730840607733a50569a15e;p=thirdparty%2Fkernel%2Flinux.git ASoC: alc5623: tidyup clock inversion in alc5623_set_dai_fmt() It supports inverted bitclock (= _NB_, _IB_), but has no control for the frame polarity (= _NF, _IF). Let's tidyup it. Signed-off-by: Kuninori Morimoto Link: https://patch.msgid.link/87y0mrtogw.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c index a9946dcdc9f69..ec229b315f9fd 100644 --- a/sound/soc/codecs/alc5623.c +++ b/sound/soc/codecs/alc5623.c @@ -678,14 +678,9 @@ static int alc5623_set_dai_fmt(struct snd_soc_dai *codec_dai, switch (fmt & SND_SOC_DAIFMT_INV_MASK) { case SND_SOC_DAIFMT_NB_NF: break; - case SND_SOC_DAIFMT_IB_IF: - iface |= ALC5623_DAI_MAIN_I2S_BCLK_POL_CTRL; - break; case SND_SOC_DAIFMT_IB_NF: iface |= ALC5623_DAI_MAIN_I2S_BCLK_POL_CTRL; break; - case SND_SOC_DAIFMT_NB_IF: - break; default: return -EINVAL; }