summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_trace.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-08-09 14:22:44 +0200
committerTakashi Iwai <tiwai@suse.de>2011-08-09 14:24:17 +0200
commitecf726f5414489fe749477eb77d6cb12bb93c8bc (patch)
tree5dd0bea16d7b627091b16f295fc8f553ec266014 /sound/pci/hda/hda_trace.h
parentd11b7fa3d5b6d4b3a730f563e7b14dfc859c40c6 (diff)
downloadop-kernel-dev-ecf726f5414489fe749477eb77d6cb12bb93c8bc.zip
op-kernel-dev-ecf726f5414489fe749477eb77d6cb12bb93c8bc.tar.gz
ALSA: hda - Add tracepoint for unsolicited events
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_trace.h')
-rw-r--r--sound/pci/hda/hda_trace.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_trace.h b/sound/pci/hda/hda_trace.h
index b446cfc..9884871 100644
--- a/sound/pci/hda/hda_trace.h
+++ b/sound/pci/hda/hda_trace.h
@@ -87,6 +87,28 @@ DEFINE_EVENT(hda_power, hda_power_up,
TP_ARGS(codec)
);
+TRACE_EVENT(hda_unsol_event,
+
+ TP_PROTO(struct hda_bus *bus, u32 res, u32 res_ex),
+
+ TP_ARGS(bus, res, res_ex),
+
+ TP_STRUCT__entry(
+ __field( unsigned int, card )
+ __field( u32, res )
+ __field( u32, res_ex )
+ ),
+
+ TP_fast_assign(
+ __entry->card = (bus)->card->number;
+ __entry->res = res;
+ __entry->res_ex = res_ex;
+ ),
+
+ TP_printk("[%d] res=%x, res_ex=%x", __entry->card,
+ __entry->res, __entry->res_ex)
+);
+
#endif /* _TRACE_HDA_H */
/* This part must be outside protection */
OpenPOWER on IntegriCloud