]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Move stereo autodisable check
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 10:51:20 +0000 (11:51 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jun 2022 12:07:48 +0000 (13:07 +0100)
commita2e001fe77f3a96b8841887df8e4fa2e1698e66f
tree69668db2315eda644a654605c72a035647887840
parent7b0b66196d17046360be802323a82a5a13135385
ASoC: dapm: Move stereo autodisable check

Tidy up the code a little, rather than repeating the check of
mc->autodisable move the stereo error check to be under the
existing if for mc->autodisable.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220623105120.1981154-6-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c