2021-12-03 01:12:54 +08:00
|
|
|
#
|
|
|
|
# Topology for generic Renoir with I2S SP and DMIC.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Include topology builder
|
|
|
|
include(`utils.m4')
|
|
|
|
include(`dai.m4')
|
|
|
|
include(`pipeline.m4')
|
|
|
|
include(`acp-sp.m4')
|
|
|
|
include(`acp-dmic.m4')
|
|
|
|
|
|
|
|
# Include TLV library
|
|
|
|
include(`common/tlv.m4')
|
|
|
|
|
|
|
|
# Include Token library
|
|
|
|
include(`sof/tokens.m4')
|
|
|
|
|
|
|
|
# Include ACP DSP configuration
|
|
|
|
include(`platform/amd/acp.m4')
|
|
|
|
|
|
|
|
# Playback pipeline 1 on PCM 0 using max 2 channels of s16le.
|
|
|
|
# Schedule 96 frames per 2000us deadline on core 0 with priority 0
|
2022-05-11 14:14:32 +08:00
|
|
|
PIPELINE_PCM_ADD(
|
2022-09-15 13:07:25 +08:00
|
|
|
ifdef(`DTS', sof/pipe-eq-iir-dts-codec-playback.m4, sof/pipe-passthrough-playback.m4),
|
2021-12-03 01:12:54 +08:00
|
|
|
1, 0, 2, s16le,
|
2022-09-15 13:07:25 +08:00
|
|
|
1000, 0, 0,
|
2021-12-03 01:12:54 +08:00
|
|
|
48000, 48000, 48000)
|
|
|
|
|
|
|
|
# playback DAI is ACPSP using 2 periods
|
|
|
|
DAI_ADD(sof/pipe-dai-playback.m4,
|
|
|
|
1, ACPSP, 0, acp-headset-codec,
|
|
|
|
PIPELINE_SOURCE_1, 2, s16le,
|
2022-09-15 13:07:25 +08:00
|
|
|
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
|
2021-12-03 01:12:54 +08:00
|
|
|
|
|
|
|
DAI_CONFIG(ACPSP, 0, 0, acp-headset-codec,
|
|
|
|
ACPSP_CONFIG(I2S, ACP_CLOCK(mclk, 49152000, codec_mclk_in),
|
2022-01-12 09:43:56 +08:00
|
|
|
ACP_CLOCK(bclk, 3072000, codec_slave),
|
|
|
|
ACP_CLOCK(fsync, 48000, codec_slave),
|
2021-12-03 01:12:54 +08:00
|
|
|
ACP_TDM(2, 32, 3, 3),
|
|
|
|
ACPSP_CONFIG_DATA(ACPSP, 0, 48000, 2)))
|
|
|
|
|
|
|
|
# Capture pipeline 2 on PCM 0 using max 2 channels of s16le.
|
|
|
|
PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4,
|
|
|
|
2, 0, 2, s16le,
|
2022-09-15 13:07:25 +08:00
|
|
|
1000, 0, 0,
|
2021-12-03 01:12:54 +08:00
|
|
|
48000, 48000, 48000)
|
|
|
|
|
|
|
|
# Capture DAI is ACPSP using 2 periods
|
|
|
|
DAI_ADD(sof/pipe-dai-capture.m4,
|
|
|
|
2, ACPSP, 0, acp-headset-codec,
|
|
|
|
PIPELINE_SINK_2, 2, s16le,
|
2022-09-15 13:07:25 +08:00
|
|
|
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
|
2021-12-03 01:12:54 +08:00
|
|
|
|
|
|
|
# PCM id 0
|
|
|
|
PCM_DUPLEX_ADD(I2SSP, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|
|
|
|
|
|
|
# Capture pipeline 3 on PCM 1 using max 2 channels of s32le.
|
|
|
|
PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4,
|
|
|
|
3, 1, 2, s32le,
|
2022-09-15 13:07:25 +08:00
|
|
|
1000, 0, 0,
|
2022-03-11 00:24:35 +08:00
|
|
|
48000, 48000, 48000)
|
2021-12-03 01:12:54 +08:00
|
|
|
|
|
|
|
DAI_ADD(sof/pipe-dai-capture.m4,
|
|
|
|
3, ACPDMIC, 0, acp-dmic-codec,
|
|
|
|
PIPELINE_SINK_3, 2, s32le,
|
2022-09-15 13:07:25 +08:00
|
|
|
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
|
2021-12-03 01:12:54 +08:00
|
|
|
|
|
|
|
dnl DAI_CONFIG(type, dai_index, link_id, name, acpdmic_config)
|
|
|
|
DAI_CONFIG(ACPDMIC, 3, 2, acp-dmic-codec,
|
2022-03-11 00:24:35 +08:00
|
|
|
ACPDMIC_CONFIG(ACPDMIC_CONFIG_DATA(ACPDMIC, 3, 48000, 2)))
|
2021-12-03 01:12:54 +08:00
|
|
|
|
|
|
|
# PCM id 1
|
|
|
|
PCM_CAPTURE_ADD(DMIC, 1, PIPELINE_PCM_3)
|