mirror of https://github.com/thesofproject/sof.git
dma:trace: dma_copy_new() does not need DMAC ID anymore
Update dma_copy_new() to be compatible with dma_get(). Remove the DMAC ID argument and the corresponding PLATFORM_TRACE_DMAC definitions. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
700197d49f
commit
0a0a106df0
|
@ -277,7 +277,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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
uint32_t dir, cap, dev;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -105,9 +105,6 @@ struct sof;
|
|||
*/
|
||||
#define DMA_TRACE_RESCHEDULE_TIME 5000
|
||||
|
||||
/* DMAC used for trace DMA */
|
||||
#define PLATFORM_TRACE_DMAC DMA_HOST_IN_DMAC
|
||||
|
||||
/* DSP should be idle in this time frame */
|
||||
#define PLATFORM_IDLE_TIME 750000
|
||||
|
||||
|
|
|
@ -96,9 +96,6 @@ struct sof;
|
|||
*/
|
||||
#define DMA_TRACE_RESCHEDULE_TIME 5000
|
||||
|
||||
/* DMAC used for trace DMA */
|
||||
#define PLATFORM_TRACE_DMAC DMA_ID_DMAC0
|
||||
|
||||
/* DSP should be idle in this time frame */
|
||||
#define PLATFORM_IDLE_TIME 750000
|
||||
|
||||
|
|
|
@ -111,9 +111,6 @@ struct sof;
|
|||
*/
|
||||
#define DMA_TRACE_RESCHEDULE_TIME 5000
|
||||
|
||||
/* DMAC used for trace DMA */
|
||||
#define PLATFORM_TRACE_DMAC DMA_HOST_IN_DMAC
|
||||
|
||||
/* DSP should be idle in this time frame */
|
||||
#define PLATFORM_IDLE_TIME 750000
|
||||
|
||||
|
|
|
@ -95,9 +95,6 @@ struct sof;
|
|||
*/
|
||||
#define DMA_TRACE_RESCHEDULE_TIME 5000
|
||||
|
||||
/* DMAC used for trace DMA */
|
||||
#define PLATFORM_TRACE_DMAC DMA_ID_DMAC1
|
||||
|
||||
/* DSP should be idle in this time frame */
|
||||
#define PLATFORM_IDLE_TIME 750000
|
||||
|
||||
|
|
Loading…
Reference in New Issue