Skip to content

Commit 1e3a4cf

Browse files
brentlulgirdwood
authored andcommitted
topology: sof-adl-nau8825: support RT1015P amplifier
Add new topology sof-adl-rt1015-nau8825 which implements Realtek ALC1015 on SSP1. Signed-off-by: Brent Lu <[email protected]>
1 parent 74a1a35 commit 1e3a4cf

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

‎tools/topology/topology1/CMakeLists.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ set(TPLGS
184184
"sof-adl-nau8825\;sof-adl-nau8825\;-DNO_AMP\;-DBT_OFFLOAD"
185185
"sof-adl-nau8825\;sof-adl-max98373-nau8825\;-DAMP_SSP=1\;-DSMART_AMP\;-DBT_OFFLOAD"
186186
"sof-adl-nau8825\;sof-adl-max98373-nau8825-dts\;-DAMP_SSP=1\;-DSMART_AMP\;-DBT_OFFLOAD\;-DDTS=`DTS'"
187-
"sof-adl-nau8825\;sof-adl-max98360a-nau8825\;-DAMP_SSP=1\;-DBT_OFFLOAD"
188-
"sof-adl-nau8825\;sof-adl-rt1019-nau8825\;-DAMP_SSP=2"
187+
"sof-adl-nau8825\;sof-adl-max98360a-nau8825\;-DCODEC=MAX98360A\;-DFMT=s16le\;-DAMP_SSP=1\;-DBT_OFFLOAD"
188+
"sof-adl-nau8825\;sof-adl-rt1019-nau8825\;-DCODEC=RT1019P\;-DFMT=s16le\;-DAMP_SSP=2"
189+
"sof-adl-nau8825\;sof-adl-rt1015-nau8825\;-DCODEC=RT1015P\;-DFMT=s32le\;-DAMP_SSP=1\;-DBT_OFFLOAD"
189190
"sof-tgl-sdw-max98373-rt5682\;sof-tgl-sdw-max98373-rt5682\;-DCHANNELS=4\;-DPLATFORM=tgl"
190191
"sof-tgl-sdw-max98373-rt5682\;sof-adl-sdw-max98373-rt5682\;-DCHANNELS=4\;-DPLATFORM=adl"
191192
"sof-jsl-da7219\;sof-jsl-da7219\;-DPLATFORM=jsl"

‎tools/topology/topology1/sof-adl-nau8825.m4‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ ifdef(`SMART_AMP',,`
273273
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
274274
DAI_ADD(sof/pipe-dai-playback.m4,
275275
1, SSP, SPK_SSP_INDEX, SPK_SSP_NAME,
276-
PIPELINE_SOURCE_1, 2, s16le,
276+
PIPELINE_SOURCE_1, 2, FMT,
277277
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
278278

279279
# The echo refenrence pipeline has no connections in it,
280280
# it is used for the capture DAI widget to dock.
281281
DAI_ADD(sof/pipe-echo-ref-dai-capture.m4,
282282
29, SSP, SPK_SSP_INDEX, SPK_SSP_NAME,
283-
PIPELINE_SINK_29, 3, s16le,
283+
PIPELINE_SINK_29, 3, FMT,
284284
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
285285

286286
# Capture pipeline 9 from demux on PCM 6 using max 2 channels of s32le.
@@ -357,10 +357,25 @@ ifdef(`NO_AMP',,`
357357
ifdef(`SMART_AMP',,`
358358
`# SSP' SPK_SSP_INDEX `(ID: 7)'
359359
DAI_CONFIG(SSP, SPK_SSP_INDEX, SPK_BE_ID, SPK_SSP_NAME,
360+
ifelse(
361+
CODEC, `MAX98360A', `
360362
SSP_CONFIG(I2S, SSP_CLOCK(mclk, SSP_MCLK, codec_mclk_in),
361363
SSP_CLOCK(bclk, 1536000, codec_slave),
362364
SSP_CLOCK(fsync, 48000, codec_slave),
363365
SSP_TDM(2, 16, 3, 3),
364-
SSP_CONFIG_DATA(SSP, SPK_SSP_INDEX, 16)))')')
366+
SSP_CONFIG_DATA(SSP, SPK_SSP_INDEX, 16)))',
367+
CODEC, `RT1019P', `
368+
SSP_CONFIG(I2S, SSP_CLOCK(mclk, SSP_MCLK, codec_mclk_in),
369+
SSP_CLOCK(bclk, 1536000, codec_slave),
370+
SSP_CLOCK(fsync, 48000, codec_slave),
371+
SSP_TDM(2, 16, 3, 3),
372+
SSP_CONFIG_DATA(SSP, SPK_SSP_INDEX, 16)))',
373+
CODEC, `RT1015P', `
374+
SSP_CONFIG(I2S, SSP_CLOCK(mclk, SSP_MCLK, codec_mclk_in),
375+
SSP_CLOCK(bclk, 3072000, codec_slave),
376+
SSP_CLOCK(fsync, 48000, codec_slave),
377+
SSP_TDM(2, 32, 3, 3),
378+
SSP_CONFIG_DATA(SSP, SPK_SSP_INDEX, 32)))',
379+
)')')
365380

366381
DEBUG_END

0 commit comments

Comments
 (0)