]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a8d4d2b0267dabea8a28196065e2ee500c02d40
tree31506c77b33bc3bfeb3ac3384de1f8607a7ce136
parent9a29c9b636d09972aeef1ed084699d1f9e6f13d2
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