diff options
author | Shuming Fan <shumingf@realtek.com> | 2021-04-22 12:32:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-23 16:36:11 +0200 |
commit | ca5118c0c00f6bc8b7d0c82c95485159db3a5584 (patch) | |
tree | 31506c77b33bc3bfeb3ac3384de1f8607a7ce136 /sound/soc/codecs/rt711-sdca.h | |
parent | ASoC: da7219: properly get clk from the provider (diff) | |
download | linux-ca5118c0c00f6bc8b7d0c82c95485159db3a5584.tar.xz linux-ca5118c0c00f6bc8b7d0c82c95485159db3a5584.zip |
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.h | 2 |
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 { |