topology2: cavs: cavs-mixin-mixout-hda: use macro for DAI name

The copier 'stream_name' and dai 'name' need to match, use macro to
enforce consistency.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
Pierre-Louis Bossart 2022-03-15 20:43:15 -05:00 committed by Liam Girdwood
parent 1ef9979c73
commit 51f2b1fe8e
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
Define {
ANALOG_PLAYBACK_PCM 'Analog Playback'
ANALOG_CAPTURE_PCM 'Analog Capture'
HDA_ANALOG_DAI_NAME 'Analog Playback and Capture'
}
Object.Dai {
HDA.0 {
name 'Analog Playback and Capture'
name $HDA_ANALOG_DAI_NAME
id 4
default_hw_conf_id 4
Object.Base.hw_config.HDA0 {}
@ -17,7 +18,7 @@ Object.Pipeline {
index 2
Object.Widget.copier.1 {
stream_name 'Analog Playback and Capture'
stream_name $HDA_ANALOG_DAI_NAME
dai_type "HDA"
copier_type "HDA"
}
@ -66,7 +67,7 @@ Object.Pipeline {
index 4
Object.Widget.copier.1 {
stream_name 'Analog Playback and Capture'
stream_name $HDA_ANALOG_DAI_NAME
dai_type "HDA"
copier_type "HDA"
}