2017-07-06 23:49:37 +08:00
|
|
|
#
|
|
|
|
# Topology for generic Broadwell board with no codec.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Include topology builder
|
2018-03-06 06:17:12 +08:00
|
|
|
include(`pipeline.m4')
|
|
|
|
include(`utils.m4')
|
|
|
|
include(`dai.m4')
|
2018-06-25 15:04:27 +08:00
|
|
|
include(`ssp.m4')
|
2017-07-06 23:49:37 +08:00
|
|
|
|
|
|
|
# Include TLV library
|
|
|
|
include(`common/tlv.m4')
|
|
|
|
|
|
|
|
# Include Token library
|
|
|
|
include(`sof/tokens.m4')
|
|
|
|
|
|
|
|
# Include Broadwell DSP configuration
|
2018-06-25 14:42:07 +08:00
|
|
|
include(`platform/intel/bdw.m4')
|
2017-07-06 23:49:37 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Define the pipelines
|
|
|
|
#
|
2017-08-09 22:01:06 +08:00
|
|
|
# PCM0 ----> volume ---------------+
|
|
|
|
# |--low latency mixer ----> volume ----> SSP2
|
|
|
|
# PCM2 ----> SRC -----> volume ----+
|
|
|
|
# |
|
|
|
|
# Tone -----> volume ----+
|
|
|
|
#
|
|
|
|
# PCM1 <---- Volume <---- SSP0
|
|
|
|
#
|
2017-07-06 23:49:37 +08:00
|
|
|
|
2017-08-09 22:01:06 +08:00
|
|
|
# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s32le.
|
|
|
|
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
|
2017-09-13 08:07:50 +08:00
|
|
|
PIPELINE_PCM_ADD(sof/pipe-low-latency-playback.m4,
|
|
|
|
1, 0, 2, s32le,
|
2018-06-13 04:01:56 +08:00
|
|
|
48, 1000, 0, 0)
|
2017-07-06 23:49:37 +08:00
|
|
|
|
2017-10-02 22:28:24 +08:00
|
|
|
# Low Latency capture pipeline 2 on PCM 0 using max 2 channels of s32le.
|
2017-08-09 22:01:06 +08:00
|
|
|
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
|
2017-09-13 08:07:50 +08:00
|
|
|
PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4,
|
2017-10-02 22:28:24 +08:00
|
|
|
2, 0, 2, s32le,
|
2018-06-13 04:01:56 +08:00
|
|
|
48, 1000, 0, 0)
|
2017-07-06 23:49:37 +08:00
|
|
|
|
2017-10-02 22:28:24 +08:00
|
|
|
# PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le.
|
2017-08-09 22:01:06 +08:00
|
|
|
# Schedule 96 frames per 2000us deadline on core 0 with priority 1
|
2017-09-13 08:07:50 +08:00
|
|
|
PIPELINE_PCM_ADD(sof/pipe-pcm-media.m4,
|
2017-10-02 22:28:24 +08:00
|
|
|
3, 1, 2, s32le,
|
2018-06-13 04:01:56 +08:00
|
|
|
96, 2000, 1, 0)
|
2017-07-06 23:49:37 +08:00
|
|
|
|
2017-08-09 22:01:06 +08:00
|
|
|
# Tone Playback pipeline 5 using max 2 channels of s32le.
|
|
|
|
# Schedule 192 frames per 4000us deadline on core 0 with priority 2
|
2017-09-13 08:07:50 +08:00
|
|
|
PIPELINE_ADD(sof/pipe-tone.m4,
|
|
|
|
5, 2, s32le,
|
|
|
|
192, 4000, 2, 0)
|
2017-07-06 23:49:37 +08:00
|
|
|
|
|
|
|
# Connect pipelines together
|
|
|
|
SectionGraph."pipe-bdw-rt286" {
|
|
|
|
index "0"
|
|
|
|
|
|
|
|
lines [
|
|
|
|
# media 0
|
2017-08-09 22:01:06 +08:00
|
|
|
dapm(PIPELINE_MIXER_1, PIPELINE_SOURCE_3)
|
2017-07-06 23:49:37 +08:00
|
|
|
#tone
|
2017-08-09 22:01:06 +08:00
|
|
|
dapm(PIPELINE_MIXER_1, PIPELINE_SOURCE_5)
|
2017-07-06 23:49:37 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-08-09 22:01:06 +08:00
|
|
|
#
|
|
|
|
# DAI configuration
|
|
|
|
#
|
|
|
|
# SSP port 0 is our only pipeline DAI
|
|
|
|
#
|
|
|
|
|
2017-12-07 09:41:05 +08:00
|
|
|
# playback DAI is SSP0 using 2 periods
|
2017-09-13 08:07:50 +08:00
|
|
|
# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
|
|
|
|
DAI_ADD(sof/pipe-dai-playback.m4,
|
2018-03-14 04:18:19 +08:00
|
|
|
1, SSP, 0, Codec,
|
2017-09-13 08:07:50 +08:00
|
|
|
PIPELINE_SOURCE_1, 2, s24le,
|
|
|
|
48, 1000, 0, 0)
|
2017-08-09 22:01:06 +08:00
|
|
|
|
2017-12-07 09:41:05 +08:00
|
|
|
# capture DAI is SSP0 using 2 periods
|
2017-09-13 08:07:50 +08:00
|
|
|
# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
|
|
|
|
DAI_ADD(sof/pipe-dai-capture.m4,
|
2018-03-14 04:18:19 +08:00
|
|
|
2, SSP, 0, Codec,
|
2017-09-13 08:07:50 +08:00
|
|
|
PIPELINE_SINK_2, 2, s24le,
|
|
|
|
48, 1000, 0, 0)
|
2017-07-06 23:49:37 +08:00
|
|
|
|
2017-10-02 22:28:24 +08:00
|
|
|
# PCM Low Latency
|
2018-07-30 23:32:40 +08:00
|
|
|
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
2017-10-02 22:28:24 +08:00
|
|
|
|
2017-07-06 23:49:37 +08:00
|
|
|
#
|
|
|
|
# BE configurations - overrides config in ACPI if present
|
|
|
|
#
|
2018-06-01 01:34:43 +08:00
|
|
|
DAI_CONFIG(SSP, 0, 0, Codec,
|
2018-06-25 15:04:27 +08:00
|
|
|
SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24000000, codec_mclk_in),
|
|
|
|
SSP_CLOCK(bclk, 2400000, codec_slave),
|
|
|
|
SSP_CLOCK(fsync, 48000, codec_slave),
|
|
|
|
SSP_TDM(2, 25, 3, 3),
|
2018-06-25 13:03:16 +08:00
|
|
|
SSP_CONFIG_DATA(SSP, 0, 24)))
|