topology: Update sof-tgl-max98373-rt5682 to take amp SSP ID

Update sof-tgl-max98373-rt5682 to take speaker amp's SSP ID as input.
This is to accommodate DUT's which has amp connected on SSP2.

Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Signed-off-by: Mac Chiang <mac.chiang@intel.com>
Signed-off-by: Jairaj Arava <jairaj.arava@intel.com>
This commit is contained in:
Sathyanarayana Nujella 2020-07-25 09:00:12 -07:00 committed by Liam Girdwood
parent c74c29f920
commit 091daf65c6
2 changed files with 9 additions and 6 deletions

View File

@ -130,7 +130,8 @@ set(TPLGS
"sof-imx8qxp-nocodec-sai\;sof-imx8qxp-nocodec-sai"
"sof-imx8qxp-wm8960\;sof-imx8qxp-wm8960"
"sof-tgl-max98357a-rt5682\;sof-tgl-max98357a-rt5682"
"sof-tgl-max98373-rt5682\;sof-tgl-max98373-rt5682"
"sof-tgl-max98373-rt5682\;sof-tgl-max98373-rt5682\;-DAMP_SSP=1"
"sof-tgl-max98373-rt5682\;sof-tgl-max98373-rt5682-ssp2\;-DAMP_SSP=2"
"sof-tgl-sdw-max98373-rt5682\;sof-tgl-sdw-max98373-rt5682-2ch\;-DCHANNELS=2"
"sof-tgl-sdw-max98373-rt5682\;sof-tgl-sdw-max98373-rt5682-4ch\;-DCHANNELS=4"
"sof-jsl-da7219\;sof-jsl-da7219\;-DPLATFORM=jsl"

View File

@ -1,5 +1,5 @@
#
# Topology for Tigerlake with Max98373 amp + rt5682 codec + DMIC + 4 HDMI
# Topology for Tigerlake with Max98373 amp (SSP: $AMP_SSP) + rt5682 codec + DMIC + 4 HDMI
#
# Include topology builder
@ -24,11 +24,11 @@ DEBUG_START
#
# Define the pipelines
#
# PCM0 ----> smart_amp ----> SSP1 (Speaker -max98373)
# PCM0 ----> smart_amp ----> SSP$AMP_SSP (Speaker -max98373)
# ^
# |
# |
# PCM0 <---- demux <----- SSP1 (Speaker -max98373)
# PCM0 <---- demux <----- SSP$AMP_SSP (Speaker -max98373)
# PCM1 <---> volume <----> SSP0 (Headset - ALC5682)
# PCM2 ----> volume -----> iDisp1
# PCM3 ----> volume -----> iDisp2
@ -37,12 +37,14 @@ DEBUG_START
# PCM99 <---- volume <---- DMIC01 (dmic 48k capture)
# PCM100 <---- kpb <---- DMIC16K (dmic 16k capture)
ifdef(`AMP_SSP',`',`errprint(note: Define AMP_SSP for speaker amp SSP Index)')
# Smart amplifier related
# SSP related
#define smart amplifier SSP index
define(`SMART_SSP_INDEX', 1)
define(`SMART_SSP_INDEX', AMP_SSP)
#define SSP BE dai_link name
define(`SMART_SSP_NAME', `SSP1-Codec')
define(`SMART_SSP_NAME', concat(concat(`SSP', AMP_SSP),`-Codec'))
#define BE dai_link ID
define(`SMART_BE_ID', 7)
#define SSP mclk