1#
2# Topology for i.MX8QXP board with nocodec
3#
4
5# Include topology builder
6include(`utils.m4')
7include(`dai.m4')
8include(`pipeline.m4')
9include(`sai.m4')
10include(`pcm.m4')
11include(`buffer.m4')
12
13# Include TLV library
14include(`common/tlv.m4')
15
16# Include Token library
17include(`sof/tokens.m4')
18
19# Include DSP configuration
20include(`platform/imx/imx8.m4')
21
22#
23# Define the pipelines
24#
25# PCM0 ---> Volume ---> SAI1 (NoCodec)
26#
27
28dnl PIPELINE_PCM_ADD(pipeline,
29dnl     pipe id, pcm, max channels, format,
30dnl     period, priority, core,
31dnl     pcm_min_rate, pcm_max_rate, pipeline_rate,
32dnl     time_domain, sched_comp)
33
34# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s24le
35# Set 1000us deadline on core 0 with priority 0
36PIPELINE_PCM_ADD(sof/pipe-volume-playback.m4,
37	1, 0, 2, s24le,
38	1000, 0, 0,
39	8000, 96000, 48000)
40
41#
42# DAIs configuration
43#
44
45dnl DAI_ADD(pipeline,
46dnl     pipe id, dai type, dai_index, dai_be,
47dnl     buffer, periods, format,
48dnl     deadline, priority, core)
49
50# playback DAI is SAI1 using 2 periods
51# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
52DAI_ADD(sof/pipe-dai-playback.m4,
53	1, SAI, 1, NoCodec-0,
54	PIPELINE_SOURCE_1, 2, s24le,
55	1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
56
57dnl PCM_PLAYBACK_ADD(name, pcm_id, playback)
58
59# PCM Low Latency, id 0
60PCM_PLAYBACK_ADD(Port0, 0, PIPELINE_PCM_1)
61
62dnl DAI_CONFIG(type, dai_index, link_id, name, sai_config)
63DAI_CONFIG(SAI, 1, 0, NoCodec-0,
64	SAI_CONFIG(I2S, SAI_CLOCK(mclk, 49152000, codec_mclk_in),
65		SAI_CLOCK(bclk, 3072000, codec_slave),
66		SAI_CLOCK(fsync, 48000, codec_slave),
67		SAI_TDM(2, 32, 3, 3),
68		SAI_CONFIG_DATA(SAI, 1, 0)))
69