mirror of https://github.com/thesofproject/sof.git
topology: Add a tgl-max98357a-rt5682 tplg with DMIC16k on PDM1
There are TGL devices using either PDM0 or PDM1 port for the DMIC16k DAI for hotword detection. This patch adds the DMIC_DAI_LINK_16k_PDM parameter and builds both versions. Signed-off-by: Ben Zhang <benzh@chromium.org>
This commit is contained in:
parent
a766d22e5d
commit
9d21f9ecf2
|
@ -130,6 +130,7 @@ set(TPLGS
|
|||
"sof-imx8mp-wm8960-mixer\;sof-imx8mp-wm8960-mixer"
|
||||
"sof-imx8mp-wm8960-kwd\;sof-imx8mp-wm8960-kwd"
|
||||
"sof-tgl-max98357a-rt5682\;sof-tgl-max98357a-rt5682\;-DCODEC=MAX98357A\;-DFMT=s16le"
|
||||
"sof-tgl-max98357a-rt5682\;sof-tgl-max98357a-rt5682-pdm1\;-DCODEC=MAX98357A\;-DFMT=s16le\;-DDMIC_DAI_LINK_16k_PDM=STEREO_PDM1"
|
||||
"sof-tgl-max98357a-rt5682\;sof-tgl-rt1011-rt5682\;-DCODEC=RT1011\;-DFMT=s24le"
|
||||
"sof-tgl-max98373-rt5682\;sof-tgl-max98373-rt5682\;-DAMP_SSP=1"
|
||||
"sof-tgl-max98373-rt5682\;sof-tgl-max98373-rt5682-igonr\;-DAMP_SSP=1\;-DIGO"
|
||||
|
|
|
@ -49,6 +49,9 @@ ifdef(`IGO',
|
|||
# Prolong period to 16ms for igo_nr process
|
||||
ifdef(`IGO', `define(`INTEL_GENERIC_DMIC_KWD_PERIOD', 16000)', `define(`INTEL_GENERIC_DMIC_KWD_PERIOD', 1000)')
|
||||
|
||||
# define(DMIC_DAI_LINK_16k_PDM, `STEREO_PDM0') define the PDM port, default is STEREO_PDM0
|
||||
ifdef(`DMIC_DAI_LINK_16k_PDM',`',`define(DMIC_DAI_LINK_16k_PDM, `STEREO_PDM0')')
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
#
|
||||
|
@ -158,4 +161,4 @@ ifelse(CHANNELS, 4,
|
|||
DAI_CONFIG(DMIC, 1, DMIC_DAI_LINK_16k_ID, DMIC_DAI_LINK_16k_NAME,
|
||||
DMIC_CONFIG(1, 2400000, 4800000, 40, 60, 16000,
|
||||
DMIC_WORD_LENGTH(s32le), 400, DMIC, 1,
|
||||
PDM_CONFIG(DMIC, 1, STEREO_PDM0)))
|
||||
PDM_CONFIG(DMIC, 1, DMIC_DAI_LINK_16k_PDM)))
|
||||
|
|
Loading…
Reference in New Issue