ASoC: tlv320aic31xx: Add headphone/headset detection
authorAndrew F. Davis <afd@ti.com>
Mon, 1 Apr 2019 15:13:28 +0000 (10:13 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2019 05:41:18 +0000 (12:41 +0700)
commitebf3326cd96989a498892a1b344faee3110f7877
tree09045e9090ccb28db5e24157c05dfe3fa9662580
parent35146467bd43704c52d1d5760af9839a10ad5b12
ASoC: tlv320aic31xx: Add headphone/headset detection

This device can detect the insertion/removal of headphones and headsets.
Enable reporting this status by enabling this interrupt and forwarding
this to upper-layers if a jack has been defined.

This jack definition and the resulting operation from a jack detection
event must currently be defined by sound card platform code until CODEC
outputs to jack mappings can be defined generically.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic31xx.c
sound/soc/codecs/tlv320aic31xx.h