[Sound-open-firmware] [PATCH v2] ipc: skip host page table set up for hostless tone pipeline
Ranjani Sridharan
ranjani.sridharan at linux.intel.com
Sat Jun 9 08:28:03 CEST 2018
Hostless pipelines such as the tone pipeline do not need
host page table while setting up pcm params.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
src/ipc/handler.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/ipc/handler.c b/src/ipc/handler.c
index 581ce9e..92aa846 100644
--- a/src/ipc/handler.c
+++ b/src/ipc/handler.c
@@ -125,8 +125,11 @@ static int ipc_stream_pcm_params(uint32_t stream)
cd = pcm_dev->cd;
cd->params = pcm_params->params;
-#ifdef CONFIG_HOST_PTABLE
+ /* no need to set up host page table for hostless pipelines */
+ if (cd->comp.type == SOF_COMP_TONE)
+ goto pipe_params;
+#ifdef CONFIG_HOST_PTABLE
list_init(&elem_list);
/* use DMA to read in compressed page table ringbuffer from host */
@@ -163,6 +166,8 @@ static int ipc_stream_pcm_params(uint32_t stream)
}
#endif
+pipe_params:
+
/* configure pipeline audio params */
err = pipeline_params(pcm_dev->cd->pipeline, pcm_dev->cd, pcm_params);
if (err < 0) {
--
2.17.1
More information about the Sound-open-firmware
mailing list