ASoC: Support direct microphone detection IRQ
Subsystems (4)
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.
Signed-off-by Mark Brown <[email protected]>
--- 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
@@ -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
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.
Signed-off-by Mark Brown <[email protected]>--- 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