topology: pipeline: add scheduling comp argument to PIPELINE_PCM_ADD

Add the scheduling comp argument to PIPELINE_PCM_ADD that
will be used to pass the name of the scheduling comp
when the pipeline is created.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2019-04-22 14:15:50 -07:00 committed by Liam Girdwood
parent 0c93261349
commit ae2b0a4603
1 changed files with 4 additions and 2 deletions

View File

@ -38,9 +38,9 @@ define(`W_PIPELINE',
dnl PIPELINE_PCM_ADD(pipeline,
dnl pipe id, pcm, max channels, format,
dnl frames, period, priority, core,
dnl time_domain)
dnl time_domain, sched_comp)
define(`PIPELINE_PCM_ADD',
`ifelse(`$#', `9',
`ifelse(eval(`$# > 8'), `1',
`undefine(`PCM_ID')'
`undefine(`PIPELINE_ID')'
`undefine(`PIPELINE_CHANNELS')'
@ -50,6 +50,7 @@ define(`PIPELINE_PCM_ADD',
`undefine(`SCHEDULE_PRIORITY')'
`undefine(`SCHEDULE_CORE')'
`undefine(`SCHEDULE_TIME_DOMAIN')'
`undefine(`SCHED_COMP')'
`define(`PIPELINE_ID', $2)'
`define(`PCM_ID', $3)'
`define(`PIPELINE_CHANNELS', $4)'
@ -60,6 +61,7 @@ define(`PIPELINE_PCM_ADD',
`define(`SCHEDULE_CORE', $9)'
`define(`SCHEDULE_TIME_DOMAIN', $10)'
`define(`DAI_FORMAT', $5)'
`define(`SCHED_COMP', $11)'
`include($1)'
`DEBUG_PCM_ADD($1, $3)'
,`fatal_error(`Invalid parameters ($#) to PIPELINE_PCM_ADD')')'