ASoC: codecs: es8375: remove unnecessary format check

It already have default for error case (A), no need to have
SND_SOC_DAIFMT_RIGHT_J for error (B). Remove it.

	static int es8375_set_dai_fmt(...)
		...
		switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
		case SND_SOC_DAIFMT_RIGHT_J:
(B)			return -EINVAL;
		...
		default:
(A)			return -EINVAL;
		}
		...
	}

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87eco20zn3.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2026-01-07 05:18:08 +00:00 committed by Mark Brown
parent 9ebc914acd
commit 22a4776a9c
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0

View file

@ -397,8 +397,6 @@ static int es8375_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
case SND_SOC_DAIFMT_I2S:
codeciface &= 0xFC;
break;
case SND_SOC_DAIFMT_RIGHT_J:
return -EINVAL;
case SND_SOC_DAIFMT_LEFT_J:
codeciface &= 0xFC;
codeciface |= 0x01;