Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

Commit 7b96948

Browse files
authored
Merge pull request #2 from xiulipan/master
rmbox: add missing trace class to sync with firmware
2 parents e393b33 + 0beda35 commit 7b96948

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

rmbox/rmbox.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
#define TRACE_CLASS_TONE (18 << 24)
4747
#define TRACE_CLASS_EQ_FIR (19 << 24)
4848
#define TRACE_CLASS_EQ_IIR (20 << 24)
49+
#define TRACE_CLASS_SA (21 << 24)
50+
#define TRACE_CLASS_DMIC (22 << 24)
51+
#define TRACE_CLASS_POWER (23 << 24)
52+
4953

5054
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
5155

@@ -162,6 +166,12 @@ static void show_trace(uint64_t val, uint64_t addr, uint64_t *timestamp, double
162166
trace = "eq-fir";
163167
else if (class == TRACE_CLASS_EQ_IIR)
164168
trace = "eq-iir";
169+
else if (class == TRACE_CLASS_SA)
170+
trace = "sa";
171+
else if (class == TRACE_CLASS_DMIC)
172+
trace = "dmic";
173+
else if (class == TRACE_CLASS_POWER)
174+
trace = "pm";
165175
else {
166176
printf("value 0x%8.8x\n", (uint32_t)val);
167177
return;

0 commit comments

Comments
 (0)