ASoC: Add jack reporting interface

Previous thread: ALSA: snd-aoa: handle master-amp if present by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:05 pm. (1 message)

Next thread: ASoC: fixes to caching implementations by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:06 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:06 pm

Gitweb:     http://git.kernel.org/linus/8a2cd6180f8fa00111843c2f4a4f4361995358e0
Commit:     8a2cd6180f8fa00111843c2f4a4f4361995358e0
Parent:     1649923dd52ce914be98bff0ae352344ef04f305
Author:     Mark Brown <broonie@opensource.wolfsonmicro.com>
AuthorDate: Wed Jan 7 17:31:10 2009 +0000
Committer:  Mark Brown <broonie@opensource.wolfsonmicro.com>
CommitDate: Fri Jan 9 10:31:31 2009 +0000

    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  |   32 ++++++++++++
 sound/soc/Kconfig    |    1 +
 sound/soc/Makefile   |    2 +-
 sound/soc/soc-jack.c |  138 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 172 insertions(+), 1 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9b930d3..9c3ef6a 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -154,6 +154,8 @@ enum snd_soc_bias_level {
 	SND_SOC_BIAS_OFF,
 };
 
+struct snd_jack;
+struct snd_soc_card;
 struct snd_soc_device;
 struct snd_soc_pcm_stream;
 struct snd_soc_ops;
@@ -164,6 +166,8 @@ struct snd_soc_platform;
 struct snd_soc_codec;
 struct soc_enum;
 struct snd_soc_ac97_ops;
+struct snd_soc_jack;
+struct snd_soc_jack_pin;
 
 typedef int (*hw_write_t)(void *,const char* ,int);
 typedef int (*hw_read_t)(void *,char* ,int);
@@ -184,6 +188,13 @@ int ...
Previous thread: ALSA: snd-aoa: handle master-amp if present by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:05 pm. (1 message)

Next thread: ASoC: fixes to caching implementations by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:06 pm. (1 message)