[Sound-open-firmware] [PATCH] dai: add macros for dai tracing
Keyon Jie
yang.jie at linux.intel.com
Mon Oct 24 04:33:56 CEST 2016
Signed-off-by: Keyon Jie <yang.jie at linux.intel.com>
---
src/audio/dai.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/audio/dai.c b/src/audio/dai.c
index 13fc94a..6b2c83b 100644
--- a/src/audio/dai.c
+++ b/src/audio/dai.c
@@ -47,6 +47,12 @@
#define DAI_PLAYBACK_STREAM 0
#define DAI_CAPTURE_STREAM 1
+/* tracing */
+#define trace_dai(__e) trace_event(TRACE_CLASS_DAI, __e)
+#define trace_dai_error(__e) trace_error(TRACE_CLASS_DAI, __e)
+#define tracev_dai(__e) tracev_event(TRACE_CLASS_DAI, __e)
+
+
struct dai_data {
/* local DMA config */
int chan;
--
2.5.0
More information about the Sound-open-firmware
mailing list