ASoC: rt711-sdca: change capture switch controls
authorShuming Fan <shumingf@realtek.com>
Thu, 22 Apr 2021 10:32:20 +0000 (18:32 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 23 Apr 2021 14:36:11 +0000 (15:36 +0100)
commitca5118c0c00f6bc8b7d0c82c95485159db3a5584
tree31506c77b33bc3bfeb3ac3384de1f8607a7ce136
parent12f8127fe9e6154dd4197df97e44f3fd67583071
ASoC: rt711-sdca: change capture switch controls

The DAPM event and mixer control could mute/unmute the capture directly.
That will be confused that capture still works if the user settings is unmute before the capture.
Therefore, this patch uses the variables to record the capture switch status of DAPM and mixer.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20210422103220.21987-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt711-sdca.c
sound/soc/codecs/rt711-sdca.h