summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8350.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-05 12:50:12 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-22 11:08:55 +0000
commit2bbb5d667958f20ef8e7f7b37f9acced6dac0b98 (patch)
treea1079b6fd98dfcd3780b75ba7715ec10b969b718 /sound/soc/codecs/wm8350.c
parent6d3c26bcb7a129a11a54d78644e264ec872547e1 (diff)
ASoC: Trace Wolfson jack detection IRQs
Add jack detection interrupt trace to Wolfson CODEC drivers. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8350.c')
-rw-r--r--sound/soc/codecs/wm8350.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index 3e0362e62f8..82d877df3fb 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -26,6 +26,7 @@
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
+#include <trace/events/asoc.h>
#include "wm8350.h"
@@ -1378,10 +1379,12 @@ static irqreturn_t wm8350_hp_jack_handler(int irq, void *data)
switch (irq - wm8350->irq_base) {
case WM8350_IRQ_CODEC_JCK_DET_L:
+ trace_snd_soc_jack_irq("WM8350 HPL");
jack = &priv->hpl;
break;
case WM8350_IRQ_CODEC_JCK_DET_R:
+ trace_snd_soc_jack_irq("WM8350 HPR");
jack = &priv->hpr;
break;
@@ -1456,6 +1459,8 @@ static irqreturn_t wm8350_mic_handler(int irq, void *data)
u16 reg;
int report = 0;
+ trace_snd_soc_jack_irq("WM8350 mic");
+
reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS);
if (reg & WM8350_JACK_MICSCD_LVL)
report |= priv->mic.short_report;