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>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include <sound/soc.h>
|
||||
#include <sound/initval.h>
|
||||
#include <sound/wm8903.h>
|
||||
#include <trace/events/asoc.h>
|
||||
|
||||
#include "wm8903.h"
|
||||
|
||||
@@ -1533,6 +1534,9 @@ static irqreturn_t wm8903_irq(int irq, void *data)
|
||||
mic_report = wm8903->mic_last_report;
|
||||
int_pol = snd_soc_read(codec, WM8903_INTERRUPT_POLARITY_1);
|
||||
|
||||
if (int_val & (WM8903_MICSHRT_EINT | WM8903_MICDET_EINT))
|
||||
trace_snd_soc_jack_irq(dev_name(codec->dev));
|
||||
|
||||
if (int_val & WM8903_MICSHRT_EINT) {
|
||||
dev_dbg(codec->dev, "Microphone short (pol=%x)\n", int_pol);
|
||||
|
||||
|
Reference in New Issue
Block a user