From 0beda35193980400297dbfb4e8c32b42e2d1ce82 Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Mon, 25 Jun 2018 12:59:07 +0800 Subject: [PATCH] rmbox: add missing trace class to sync with firmware Add missing trace class to the rmbox to avoid unknow value message. Signed-off-by: Pan Xiuli --- rmbox/rmbox.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rmbox/rmbox.c b/rmbox/rmbox.c index 4df2ee1..913249b 100644 --- a/rmbox/rmbox.c +++ b/rmbox/rmbox.c @@ -46,6 +46,10 @@ #define TRACE_CLASS_TONE (18 << 24) #define TRACE_CLASS_EQ_FIR (19 << 24) #define TRACE_CLASS_EQ_IIR (20 << 24) +#define TRACE_CLASS_SA (21 << 24) +#define TRACE_CLASS_DMIC (22 << 24) +#define TRACE_CLASS_POWER (23 << 24) + #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) @@ -162,6 +166,12 @@ static void show_trace(uint64_t val, uint64_t addr, uint64_t *timestamp, double trace = "eq-fir"; else if (class == TRACE_CLASS_EQ_IIR) trace = "eq-iir"; + else if (class == TRACE_CLASS_SA) + trace = "sa"; + else if (class == TRACE_CLASS_DMIC) + trace = "dmic"; + else if (class == TRACE_CLASS_POWER) + trace = "pm"; else { printf("value 0x%8.8x\n", (uint32_t)val); return;