diff --git a/tools/topology/topology2/platform/intel/sdw-jack-generic.conf b/tools/topology/topology2/platform/intel/sdw-jack-generic.conf index 0281c12efc62..967ad26e9c63 100644 --- a/tools/topology/topology2/platform/intel/sdw-jack-generic.conf +++ b/tools/topology/topology2/platform/intel/sdw-jack-generic.conf @@ -7,6 +7,11 @@ IncludeByKey.PASSTHROUGH { } } +Define { + JACK_PLAYBACK_PCM_NAME "Jack Out" + JACK_CAPTURE_PCM_NAME "Jack In" +} + # # List of all DAIs # @@ -57,7 +62,7 @@ IncludeByKey.PASSTHROUGH { } Object.Widget.gain.1 { Object.Control.mixer.1 { - name '1 Playback Volume 0' + name 'Pre Mixer $JACK_PLAYBACK_PCM_NAME Playback Volume' } } } @@ -73,7 +78,7 @@ IncludeByKey.PASSTHROUGH { } Object.Widget.gain.1 { Object.Control.mixer.1 { - name '2 Main Playback Volume' + name 'Post Mixer $JACK_PLAYBACK_PCM_NAME Playback Volume' } } } @@ -292,11 +297,11 @@ IncludeByKey.PASSTHROUGH { Object.PCM.pcm [ { - name "Jack out" + name "$JACK_PLAYBACK_PCM_NAME" id 0 direction "playback" Object.Base.fe_dai.1 { - name "Jack out" + name "$JACK_PLAYBACK_PCM_NAME" } Object.PCM.pcm_caps.1 { @@ -305,11 +310,11 @@ Object.PCM.pcm [ } } { - name "Jack in" + name "$JACK_CAPTURE_PCM_NAME" id 1 direction "capture" Object.Base.fe_dai.1 { - name "Jack in" + name "$JACK_CAPTURE_PCM_NAME" } Object.PCM.pcm_caps.1 {