Skip to content

Commit a716056

Browse files
bkokoszxlgirdwood
authored andcommitted
tgl: use additional CHANNEL define in rt711 + rts1308 tplg
This commit adds CHANNELS define in sof-tgl-rt711-i2s-rt1308.m4 topology in order to properly set pipeline pcm channels and dmic configuration (STEREO_PDM0 or FOUR_CH_PDM0_PDM1 mode). Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
1 parent 37850f5 commit a716056

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tools/topology/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ set(TPLGS
115115
"sof-cml-rt1011-rt5682\;sof-cml-rt1011-rt5682\;-DPLATFORM=cml\;-DPPROC=volume"
116116
"sof-cml-rt1011-rt5682\;sof-cml-eq-rt1011-rt5682\;-DPLATFORM=cml\;-DPPROC=eq-iir-eq-fir-volume"
117117
"sof-tgl-nocodec\;sof-tgl-nocodec"
118-
"sof-tgl-rt711-i2s-rt1308\;sof-tgl-rt711-i2s-rt1308\;-DHDMI=1"
118+
"sof-tgl-rt711-i2s-rt1308\;sof-tgl-rt711-i2s-rt1308-2ch\;-DHDMI=1\;-DCHANNELS=2"
119+
"sof-tgl-rt711-i2s-rt1308\;sof-tgl-rt711-i2s-rt1308-4ch\;-DHDMI=1\;-DCHANNELS=4"
119120
"sof-tgl-rt711-i2s-rt1308\;sof-tgl-rt711-i2s-rt1308-nohdmi"
120121
"sof-tgl-rt711-rt1308\;sof-tgl-rt711-rt1308"
121122
"sof-tgl-rt5682\;sof-tgl-rt5682\;-DHDMI=1"

tools/topology/sof-tgl-rt711-i2s-rt1308.m4

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ include(`sof/tokens.m4')
1919
include(`platform/intel/tgl.m4')
2020
include(`platform/intel/dmic.m4')
2121

22+
define(DMIC_PDM_CONFIG, ifelse(CHANNELS, `4', ``FOUR_CH_PDM0_PDM1'',
23+
`ifelse(CHANNELS, `2', ``STEREO_PDM0'', `')'))
24+
2225
DEBUG_START
2326

2427
#
@@ -76,7 +79,7 @@ PIPELINE_PCM_ADD(sof/pipe-volume-capture.m4,
7679
# Passthrough capture pipeline 5 on PCM 4 using max 4 channels.
7780
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
7881
PIPELINE_PCM_ADD(sof/pipe-volume-capture-16khz.m4,
79-
5, 4, 4, s16le,
82+
5, 4, CHANNELS, s16le,
8083
1000, 0, 0,
8184
16000, 16000, 16000)
8285

@@ -233,7 +236,7 @@ DAI_CONFIG(DMIC, 0, 3, dmic01,
233236
DAI_CONFIG(DMIC, 1, 4, dmic16k,
234237
DMIC_CONFIG(1, 500000, 4800000, 40, 60, 16000,
235238
DMIC_WORD_LENGTH(s16le), 400, DMIC, 1,
236-
PDM_CONFIG(DMIC, 1, STEREO_PDM0)))
239+
PDM_CONFIG(DMIC, 1, DMIC_PDM_CONFIG)))
237240

238241
ifelse(HDMI, `1',
239242
`

0 commit comments

Comments
 (0)