[Sound-open-firmware] [PATCH 3/5][RFC] APL/CNL: Save stream tag and host buffer size from kernel driver.
yan.wang at linux.intel.com
yan.wang at linux.intel.com
Tue Mar 13 11:16:12 CET 2018
From: Yan Wang <yan.wang at linux.intel.com>
It is necessary to save stream tag and host buffer size for host
DMA setting.
Signed-off-by: Yan Wang <yan.wang at linux.intel.com>
---
src/ipc/intel-ipc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/ipc/intel-ipc.c b/src/ipc/intel-ipc.c
index ffc6f29..8263fff 100644
--- a/src/ipc/intel-ipc.c
+++ b/src/ipc/intel-ipc.c
@@ -640,12 +640,12 @@ static int ipc_dma_trace_config(uint32_t header)
{
#ifdef CONFIG_HOST_PTABLE
struct intel_ipc_data *iipc = ipc_get_drvdata(_ipc);
- struct sof_ipc_dma_trace_params *params = _ipc->comp_data;
struct list_item elem_list;
struct dma_sg_elem *elem;
struct list_item *plist;
uint32_t ring_size;
#endif
+ struct sof_ipc_dma_trace_params *params = _ipc->comp_data;
struct sof_ipc_reply reply;
int err;
@@ -683,6 +683,12 @@ static int ipc_dma_trace_config(uint32_t header)
list_item_del(&elem->list);
rfree(elem);
}
+#else
+ /* stream tag of capture stream for DMA trace */
+ _ipc->dmat->stream_tag = params->stream_tag;
+
+ /* host buffer size for DMA trace */
+ _ipc->dmat->host_size = params->buffer.size;
#endif
trace_ipc("DAp");
--
2.14.3
More information about the Sound-open-firmware
mailing list