ASoC: tlv320aic3x: headset/button press support
authorDaniel Mack <daniel@caiaq.org>
Wed, 3 Dec 2008 10:44:17 +0000 (11:44 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Dec 2008 12:40:45 +0000 (12:40 +0000)
commit6f2a974bfc8d3be7a30674c71e2fef003b39a8d2
treee0a981c23de2e36e4dd44c7b93db7d962228588e
parent4b4fffdd9d179677cb030e97869286b62df25adc
ASoC: tlv320aic3x: headset/button press support

- Add aic3x_set_headset_detection() function to define the headset
  detection mode for tlv32aic3x chips
- added aic3x_button_pressed()
- Read from the real-time registers in aic3x_headset_detected() to query
  headset presence without an occured interrupt

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tlv320aic3x.h