Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kuninori Morimoto and committed by
Mark Brown
22a4776a 9ebc914a

-2
-2
sound/soc/codecs/es8375.c
··· 397 397 case SND_SOC_DAIFMT_I2S: 398 398 codeciface &= 0xFC; 399 399 break; 400 - case SND_SOC_DAIFMT_RIGHT_J: 401 - return -EINVAL; 402 400 case SND_SOC_DAIFMT_LEFT_J: 403 401 codeciface &= 0xFC; 404 402 codeciface |= 0x01;