Skip to content

Commit

Permalink
topology2: speaker-echo-ref.conf: Use macros for PCM ID
Browse files Browse the repository at this point in the history
Use macro to avoid hardcoding of the PCM Id.

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
  • Loading branch information
yongzhi1 committed Jul 7, 2023
1 parent b267012 commit f2aafea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions tools/topology/topology2/cavs-rt5682.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Define {
ECHO_REF_HOST_PIPELINE_ID 7
ECHO_REF_DAI_PIPELINE_ID 8
ECHO_REF_COPIER_MODULE 'module-copier.8.2'
ECHO_REF_PCM_ID 27
# override BT default definitions
BT_PB_HOST_PIPELINE_ID 9
BT_PB_DAI_PIPELINE_ID 10
Expand Down
6 changes: 3 additions & 3 deletions tools/topology/topology2/platform/intel/speaker-echo-ref.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Object.Pipeline {

Object.Widget.host-copier.1 {
stream_name $ECHO_REF_STREAM_NAME
pcm_id 27
pcm_id $ECHO_REF_PCM_ID
}
}
]
Expand Down Expand Up @@ -40,7 +40,7 @@ Object.Pipeline {
Object.PCM.pcm [
{
name "EchoRef"
id 27
id $ECHO_REF_PCM_ID
direction "capture"
Object.Base.fe_dai.1 {}

Expand All @@ -58,6 +58,6 @@ Object.Base.route [
}
{
source $ECHO_REF_COPIER_MODULE
sink "host-copier.27.capture"
sink "host-copier.$ECHO_REF_PCM_ID.capture"
}
]

0 comments on commit f2aafea

Please sign in to comment.