diff options
author | Andrew F. Davis <afd@ti.com> | 2019-04-01 17:13:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-02 07:41:40 +0200 |
commit | 90f0202bf2e15e8933a550b7dfd439b500a76e1c (patch) | |
tree | 950d5075725a777145502a80ec474cf524a412fc /sound/soc/codecs/tlv320aic31xx.h | |
parent | ASoC: tlv320aic31xx: Add headphone/headset detection (diff) | |
download | linux-90f0202bf2e15e8933a550b7dfd439b500a76e1c.tar.xz linux-90f0202bf2e15e8933a550b7dfd439b500a76e1c.zip |
ASoC: tlv320aic31xx: Add button press detection
This device can optionally detect headset or microphone button presses.
Add support for this by passing this event to the jack layer.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic31xx.h')
-rw-r--r-- | sound/soc/codecs/tlv320aic31xx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic31xx.h b/sound/soc/codecs/tlv320aic31xx.h index 9985ceed97ae..cb024955c978 100644 --- a/sound/soc/codecs/tlv320aic31xx.h +++ b/sound/soc/codecs/tlv320aic31xx.h @@ -21,7 +21,8 @@ #define DAC31XX_BIT BIT(3) #define AIC31XX_JACK_MASK (SND_JACK_HEADPHONE | \ - SND_JACK_HEADSET) + SND_JACK_HEADSET | \ + SND_JACK_BTN_0) enum aic31xx_type { AIC3100 = 0, |