diff --git a/tools/topology/topology2/cavs/cavs-mixin-mixout-hda.conf b/tools/topology/topology2/cavs/cavs-mixin-mixout-hda.conf index cdacf521f..879b01f76 100644 --- a/tools/topology/topology2/cavs/cavs-mixin-mixout-hda.conf +++ b/tools/topology/topology2/cavs/cavs-mixin-mixout-hda.conf @@ -1,3 +1,8 @@ +Define { + ANALOG_PLAYBACK_PCM 'Analog Playback' + ANALOG_CAPTURE_PCM 'Analog Capture' +} + Object.Dai { HDA.0 { name 'Analog Playback and Capture' @@ -34,7 +39,7 @@ Object.Pipeline { stream_name 'copier.HDA.2.1' } Object.Widget.copier.1 { - stream_name 'Analog Playback' + stream_name $ANALOG_PLAYBACK_PCM } Object.Widget.gain.1 { @@ -52,7 +57,7 @@ Object.Pipeline { stream_name 'copier.HDA.4.1' } Object.Widget.copier.1 { - stream_name 'Analog Capture' + stream_name $ANALOG_CAPTURE_PCM } Object.Widget.gain.1 { @@ -91,11 +96,11 @@ Object.PCM { name 'HDA Analog' Object.Base.fe_dai.'HDA Analog' {} Object.PCM.pcm_caps.playback { - name 'Analog Playback' + name $ANALOG_PLAYBACK_PCM formats 'S32_LE,S24_LE,S16_LE' } Object.PCM.pcm_caps.capture { - name 'Analog Capture' + name $ANALOG_CAPTURE_PCM formats 'S32_LE,S24_LE,S16_LE' } direction duplex