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/wm8994.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/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index e1a775bd83fa..067a532bed15 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <sound/soc.h> | 28 | #include <sound/soc.h> |
29 | #include <sound/initval.h> | 29 | #include <sound/initval.h> |
30 | #include <sound/tlv.h> | 30 | #include <sound/tlv.h> |
31 | #include <trace/events/asoc.h> | ||
31 | 32 | ||
32 | #include <linux/mfd/wm8994/core.h> | 33 | #include <linux/mfd/wm8994/core.h> |
33 | #include <linux/mfd/wm8994/registers.h> | 34 | #include <linux/mfd/wm8994/registers.h> |
@@ -2755,6 +2756,8 @@ static irqreturn_t wm8994_mic_irq(int irq, void *data) | |||
2755 | int reg; | 2756 | int reg; |
2756 | int report; | 2757 | int report; |
2757 | 2758 | ||
2759 | trace_snd_soc_jack_irq(dev_name(codec->dev)); | ||
2760 | |||
2758 | reg = snd_soc_read(codec, WM8994_INTERRUPT_RAW_STATUS_2); | 2761 | reg = snd_soc_read(codec, WM8994_INTERRUPT_RAW_STATUS_2); |
2759 | if (reg < 0) { | 2762 | if (reg < 0) { |
2760 | dev_err(codec->dev, "Failed to read microphone status: %d\n", | 2763 | dev_err(codec->dev, "Failed to read microphone status: %d\n", |
@@ -2901,6 +2904,8 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data) | |||
2901 | goto out; | 2904 | goto out; |
2902 | } | 2905 | } |
2903 | 2906 | ||
2907 | trace_snd_soc_jack_irq(dev_name(codec->dev)); | ||
2908 | |||
2904 | if (wm8994->jack_cb) | 2909 | if (wm8994->jack_cb) |
2905 | wm8994->jack_cb(reg, wm8994->jack_cb_data); | 2910 | wm8994->jack_cb(reg, wm8994->jack_cb_data); |
2906 | else | 2911 | else |