summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt711-sdca.h
diff options
context:
space:
mode:
authorShuming Fan <shumingf@realtek.com>2021-04-22 18:32:20 +0800
committerMark Brown <broonie@kernel.org>2021-04-23 15:36:11 +0100
commitca5118c0c00f6bc8b7d0c82c95485159db3a5584 (patch)
tree31506c77b33bc3bfeb3ac3384de1f8607a7ce136 /sound/soc/codecs/rt711-sdca.h
parent12f8127fe9e6154dd4197df97e44f3fd67583071 (diff)
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>
Diffstat (limited to 'sound/soc/codecs/rt711-sdca.h')
-rw-r--r--sound/soc/codecs/rt711-sdca.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt711-sdca.h b/sound/soc/codecs/rt711-sdca.h
index 98a022cec0bd..43ae82b7fdb3 100644
--- a/sound/soc/codecs/rt711-sdca.h
+++ b/sound/soc/codecs/rt711-sdca.h
@@ -30,6 +30,8 @@ struct rt711_sdca_priv {
int jack_type, jd_src;
unsigned int scp_sdca_stat1, scp_sdca_stat2;
int hw_ver;
+ bool fu0f_dapm_mute, fu0f_mixer_l_mute, fu0f_mixer_r_mute;
+ bool fu1e_dapm_mute, fu1e_mixer_l_mute, fu1e_mixer_r_mute;
};
struct sdw_stream_data {