OSDN Git Service

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)
commit4d6c2b46d81765e920007f76185a8d1fb5e41ca3
tree69668db2315eda644a654605c72a035647887840
parentd5017d1323d45db14d1db3d348779264ffce9fb2
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