diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-05 07:50:12 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-22 06:08:55 -0500 |
commit | 2bbb5d667958f20ef8e7f7b37f9acced6dac0b98 (patch) | |
tree | a1079b6fd98dfcd3780b75ba7715ec10b969b718 /sound/soc/codecs/wm8350.c | |
parent | 6d3c26bcb7a129a11a54d78644e264ec872547e1 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 3e0362e62f8f..82d877df3fb0 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <sound/soc.h> | 26 | #include <sound/soc.h> |
27 | #include <sound/initval.h> | 27 | #include <sound/initval.h> |
28 | #include <sound/tlv.h> | 28 | #include <sound/tlv.h> |
29 | #include <trace/events/asoc.h> | ||
29 | 30 | ||
30 | #include "wm8350.h" | 31 | #include "wm8350.h" |
31 | 32 | ||
@@ -1378,10 +1379,12 @@ static irqreturn_t wm8350_hp_jack_handler(int irq, void *data) | |||
1378 | 1379 | ||
1379 | switch (irq - wm8350->irq_base) { | 1380 | switch (irq - wm8350->irq_base) { |
1380 | case WM8350_IRQ_CODEC_JCK_DET_L: | 1381 | case WM8350_IRQ_CODEC_JCK_DET_L: |
1382 | trace_snd_soc_jack_irq("WM8350 HPL"); | ||
1381 | jack = &priv->hpl; | 1383 | jack = &priv->hpl; |
1382 | break; | 1384 | break; |
1383 | 1385 | ||
1384 | case WM8350_IRQ_CODEC_JCK_DET_R: | 1386 | case WM8350_IRQ_CODEC_JCK_DET_R: |
1387 | trace_snd_soc_jack_irq("WM8350 HPR"); | ||
1385 | jack = &priv->hpr; | 1388 | jack = &priv->hpr; |
1386 | break; | 1389 | break; |
1387 | 1390 | ||
@@ -1456,6 +1459,8 @@ static irqreturn_t wm8350_mic_handler(int irq, void *data) | |||
1456 | u16 reg; | 1459 | u16 reg; |
1457 | int report = 0; | 1460 | int report = 0; |
1458 | 1461 | ||
1462 | trace_snd_soc_jack_irq("WM8350 mic"); | ||
1463 | |||
1459 | reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); | 1464 | reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); |
1460 | if (reg & WM8350_JACK_MICSCD_LVL) | 1465 | if (reg & WM8350_JACK_MICSCD_LVL) |
1461 | report |= priv->mic.short_report; | 1466 | report |= priv->mic.short_report; |