[Sound-open-firmware] [RFC PATCH v2 7/8] dma: remove dmac id argument from dma_copy_context()

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Thu Jun 7 01:09:04 CEST 2018


dma_copy_context() does not need DMAC ID argument anymore.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
 src/include/sof/dma.h | 2 +-
 src/ipc/dma-copy.c    | 2 +-
 src/lib/dma-trace.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/sof/dma.h b/src/include/sof/dma.h
index e8a64e7..d76434c 100644
--- a/src/include/sof/dma.h
+++ b/src/include/sof/dma.h
@@ -278,7 +278,7 @@ struct dma_copy {
 };
 
 /* init dma copy context */
-int dma_copy_new(struct dma_copy *dc, int dmac);
+int dma_copy_new(struct dma_copy *dc);
 
 /* free dma copy context resources */
 static inline void dma_copy_free(struct dma_copy *dc)
diff --git a/src/ipc/dma-copy.c b/src/ipc/dma-copy.c
index b801448..9d40913 100644
--- a/src/ipc/dma-copy.c
+++ b/src/ipc/dma-copy.c
@@ -373,7 +373,7 @@ int dma_copy_from_host_nowait(struct dma_copy *dc, struct dma_sg_config *host_sg
 	return local_sg_elem.size;
 }
 
-int dma_copy_new(struct dma_copy *dc, int dmac)
+int dma_copy_new(struct dma_copy *dc)
 {
 	/* request DMAC with DMA_DIR_LMEM_TO_HMEM and shared access flag */
 	dc->dmac = dma_get((1 << DMA_DIR_LMEM_TO_HMEM), DMAC_FLAGS_SHARED);
diff --git a/src/lib/dma-trace.c b/src/lib/dma-trace.c
index 01a9925..cff9171 100644
--- a/src/lib/dma-trace.c
+++ b/src/lib/dma-trace.c
@@ -180,7 +180,7 @@ int dma_trace_init_complete(struct dma_trace_data *d)
 	trace_buffer("dtn");
 
 	/* init DMA copy context */
-	ret = dma_copy_new(&d->dc, PLATFORM_TRACE_DMAC);
+	ret = dma_copy_new(&d->dc);
 	if (ret < 0) {
 		trace_buffer_error("edm");
 		rfree(buffer->addr);
-- 
2.17.1



More information about the Sound-open-firmware mailing list