diff options
author | Steven Eckhoff <steven.eckhoff.opensource@gmail.com> | 2018-06-04 22:47:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-18 13:54:38 +0200 |
commit | 53af408cd9f2d1c66bc081c1d82797bfe44af3e5 (patch) | |
tree | 923f4ee81c34f1700e26edfd256509ad0ce3c672 /sound/soc/codecs/tscs42xx.c | |
parent | ASoC: TSCS42xx: Remove Playback/Capture in names (diff) | |
download | linux-53af408cd9f2d1c66bc081c1d82797bfe44af3e5.tar.xz linux-53af408cd9f2d1c66bc081c1d82797bfe44af3e5.zip |
ASoC: TSCS42xx: Add headphone auto switching
Add headphone auto switching controls
Signed-off-by: Steven Eckhoff <steven.eckhoff.opensource@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tscs42xx.c')
-rw-r--r-- | sound/soc/codecs/tscs42xx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/tscs42xx.c b/sound/soc/codecs/tscs42xx.c index 5d596e4dab0c..7396a6e5277e 100644 --- a/sound/soc/codecs/tscs42xx.c +++ b/sound/soc/codecs/tscs42xx.c @@ -647,6 +647,12 @@ static const struct snd_kcontrol_new tscs42xx_snd_controls[] = { /* Mic Bias */ SOC_SINGLE("Mic Bias Boost Switch", 0x71, 0x07, 1, 0), + /* Headphone Auto Switching */ + SOC_SINGLE("Headphone Auto Switching Switch", + R_CTL, FB_CTL_HPSWEN, 1, 0), + SOC_SINGLE("Headphone Detect Polarity Toggle Switch", + R_CTL, FB_CTL_HPSWPOL, 1, 0), + /* Coefficient Ram */ COEFF_RAM_CTL("Cascade1L BiQuad1", BIQUAD_SIZE, 0x00), COEFF_RAM_CTL("Cascade1L BiQuad2", BIQUAD_SIZE, 0x05), |