summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5640.c
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2016-10-26 09:40:44 +0800
committerMark Brown <broonie@kernel.org>2016-10-28 19:44:40 +0100
commitca5f17c59b63c3e52f8fad887c27c6eaa5ced81f (patch)
tree81b8e8f1a2c9f5db13862ae65ee56bed9556752f /sound/soc/codecs/rt5640.c
parent25fb7062484a219174baab0761e06bbfd8fa3b07 (diff)
downloadlinux-ca5f17c59b63c3e52f8fad887c27c6eaa5ced81f.tar.gz
linux-ca5f17c59b63c3e52f8fad887c27c6eaa5ced81f.tar.bz2
linux-ca5f17c59b63c3e52f8fad887c27c6eaa5ced81f.zip
ASoC: rt5640: add Mono ADC Capture Switch control
Mono ADC Capture Switch control is missing in the driver. So, add it. Signed-off-by: Bard Liao <bardliao@realtek.com> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r--sound/soc/codecs/rt5640.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 0a7378f81acb..e29a6defefa0 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -423,6 +423,8 @@ static const struct snd_kcontrol_new rt5640_snd_controls[] = {
SOC_DOUBLE_TLV("ADC Capture Volume", RT5640_ADC_DIG_VOL,
RT5640_L_VOL_SFT, RT5640_R_VOL_SFT,
127, 0, adc_vol_tlv),
+ SOC_DOUBLE("Mono ADC Capture Switch", RT5640_DUMMY1,
+ RT5640_M_MONO_ADC_L_SFT, RT5640_M_MONO_ADC_R_SFT, 1, 1),
SOC_DOUBLE_TLV("Mono ADC Capture Volume", RT5640_ADC_DATA,
RT5640_L_VOL_SFT, RT5640_R_VOL_SFT,
127, 0, adc_vol_tlv),