Move DMA tracing implementaion from src/audio to src/lib.

1. Move source and header file.
2. Change src/lib/Makefile.am and src/audio/Makefile.am.
3. Chnage header file path.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
Yan Wang 2017-10-20 16:51:10 +08:00 committed by Liam Girdwood
parent 034b06f43a
commit 0156aa6865
6 changed files with 4 additions and 5 deletions

View File

@ -17,7 +17,6 @@ libaudio_a_SOURCES = \
pipeline.c \
pipeline_static.c \
component.c \
dma-trace.c \
buffer.c
libaudio_a_CFLAGS = \

View File

@ -40,7 +40,7 @@
#include <uapi/ipc.h>
#include <reef/audio/pipeline.h>
#include <reef/audio/component.h>
#include <reef/audio/dma-trace.h>
#include <reef/dma-trace.h>
struct reef;
struct dai_config;

View File

@ -6,6 +6,7 @@ libcore_a_SOURCES = \
work.c \
notifier.c \
trace.c \
dma-trace.c \
schedule.c
libcore_a_CFLAGS = \

View File

@ -29,7 +29,7 @@
*/
#include <reef/trace.h>
#include <reef/audio/dma-trace.h>
#include <reef/dma-trace.h>
#include <reef/ipc.h>
#include <reef/reef.h>
#include <reef/alloc.h>
@ -172,7 +172,6 @@ int dma_trace_enable(struct dma_trace_data *d)
return -ENODEV;
}
/* TODO: fix crash when enabled */
d->enabled = 1;
work_schedule_default(&d->dmat_work, DMA_TRACE_US);
return 0;

View File

@ -34,7 +34,7 @@
#include <arch/cache.h>
#include <platform/timer.h>
#include <reef/lock.h>
#include <reef/audio/dma-trace.h>
#include <reef/dma-trace.h>
#include <stdint.h>
struct trace {