topology2: cavs-sdw: use macro to define SDW jack stream and id

Define macro for SoundWire jack stream name and BE id.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
This commit is contained in:
Bard Liao 2022-11-14 09:40:29 +08:00 committed by Liam Girdwood
parent f0a010052b
commit 1faf055755
1 changed files with 10 additions and 6 deletions

View File

@ -55,6 +55,10 @@ Define {
DEEP_BUFFER_PIPELINE_SRC 'mixin.15.1'
DEEP_BUFFER_PIPELINE_SINK 'mixout.2.1'
DEEP_BUFFER_PCM_NAME 'Deepbuffer Jack Out'
SDW_JACK_OUT_STREAM 'SDW0-Playback'
SDW_JACK_IN_STREAM 'SDW0-Capture'
SDW_JACK_OUT_BE_ID 0
SDW_JACK_IN_BE_ID 1
}
# include DMIC config if needed.
@ -82,9 +86,9 @@ IncludeByKey.DEEPBUFFER_FW_DMA_MS{
#ALH Index: 0, Direction: duplex
Object.Dai {
ALH."2" {
id 0
id $SDW_JACK_OUT_BE_ID
direction "playback"
name SDW0-Playback
name $SDW_JACK_OUT_STREAM
default_hw_conf_id 0
rate 48000
channels 2
@ -94,9 +98,9 @@ Object.Dai {
}
}
ALH."3" {
id 1
id $SDW_JACK_IN_BE_ID
direction "capture"
name SDW0-Capture
name $SDW_JACK_IN_STREAM
default_hw_conf_id 1
rate 48000
channels 2
@ -132,7 +136,7 @@ Object.Pipeline {
Object.Widget.pipeline.1.stream_name "copier.ALH.2.1"
Object.Widget.copier.1 {
stream_name 'SDW0-Playback'
stream_name $SDW_JACK_OUT_STREAM
dai_type "ALH"
copier_type "ALH"
node_type $ALH_LINK_OUTPUT_CLASS
@ -163,7 +167,7 @@ Object.Pipeline {
stream_name 'copier.ALH.3.1'
}
Object.Widget.copier.1 {
stream_name 'SDW0-Capture'
stream_name $SDW_JACK_IN_STREAM
dai_type "ALH"
copier_type "ALH"
type "dai_out"