Skip to contentSkip to conversation

ASoC: Support direct microphone detection IRQ

PATCH In review Mark Brown 2 participants 2 messages Feb 18, 2011

Subsystems (4)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Support direct microphone detection IRQ

Allow direct routing of the WM8958 microphone detection signal to a GPIO to be used, saving the need to demux the interrupt.

---
 include/linux/mfd/wm8994/pdata.h |    5 +++
 sound/soc/codecs/wm8994.c        |   57 +++++++++++++++++++++++--------------
 2 files changed, 40 insertions(+), 22 deletions(-)
include/linux/mfd/wm8994/pdata.h +5 -0
index 9eab263..0686946 100644
@@ -103,6 +103,11 @@ struct wm8994_pdata {
         unsigned int lineout1fb:1;
         unsigned int lineout2fb:1;
 
+	/* IRQ for microphone detection if brought out directly as a
+	 * signal.
+	 */
+	int micdet_irq;
+
         /* Microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */
         unsigned int micbias1_lvl:1;
         unsigned int micbias2_lvl:1;
sound/soc/codecs/wm8994.c +35 -22

99 lines not on this page · raw message

Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 8 lines · ext Mark Brown

Allow direct routing of the WM8958 microphone detection signal to a GPIO to be used, saving the need to demux the interrupt.

---
 include/linux/mfd/wm8994/pdata.h |    5 +++
 sound/soc/codecs/wm8994.c        |   57 +++++++++++++++++++++++--------------
 2 files changed, 40 insertions(+), 22 deletions(-)

Probably the commit title should contain wm8994 as well. First I thought that you are implementing soc wide abstraction...

Signature · 1 line
Péter