ASoC: Add jack reporting interface
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 7 Jan 2009 17:31:10 +0000 (17:31 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 9 Jan 2009 10:31:31 +0000 (10:31 +0000)
commit8a2cd6180f8fa00111843c2f4a4f4361995358e0
tree4f2bf5e1843b4bba34a7d42b8bba1af283f6e747
parent1649923dd52ce914be98bff0ae352344ef04f305
ASoC: Add jack reporting interface

This patch adds a jack reporting interface to ASoC.  This wraps the ALSA
core jack detection functionality and provides integration with DAPM to
automatically update the power state of pins based on the jack state.

Since embedded platforms can have multiple detecton methods used for a
single jack (eg, separate microphone and headphone detection) the report
function allows specification of which bits are being updated on a given
report.

The expected usage is that machine drivers will create jack objects and
then configure jack detection methods to update that jack.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/Kconfig
sound/soc/Makefile
sound/soc/soc-jack.c [new file with mode: 0644]