2019-03-18 20:10:06 +08:00
|
|
|
#
|
|
|
|
# Topology for Cometlake with rt5682 headset on SSP0, max98357a spk on SSP1
|
|
|
|
#
|
|
|
|
# Adding max98357a spk on SSP1 on top of sof-cml-rt5682.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Include SOF CML RT5682 Topology
|
|
|
|
# This includes topology for RT5682, DMIC and 3 HDMI Pass through pipeline
|
2019-07-10 16:50:26 +08:00
|
|
|
include(`sof-cml-rt5682-kwd.m4')
|
2019-09-24 01:26:48 +08:00
|
|
|
include(`abi.h')
|
2019-03-18 20:10:06 +08:00
|
|
|
|
|
|
|
DEBUG_START
|
|
|
|
#
|
|
|
|
# Define the Speaker pipeline
|
|
|
|
#
|
|
|
|
# PCM5 ----> volume (pipe 7) ----> SSP1 (speaker - maxim98357a, BE link 5)
|
|
|
|
#
|
|
|
|
|
2019-10-22 15:09:58 +08:00
|
|
|
dnl PIPELINE_PCM_ADD(pipeline,
|
2019-03-18 20:10:06 +08:00
|
|
|
dnl pipe id, pcm, max channels, format,
|
2019-01-03 20:11:21 +08:00
|
|
|
dnl period, priority, core,
|
2019-10-22 15:09:58 +08:00
|
|
|
dnl pcm_min_rate, pcm_max_rate, pipeline_rate,
|
|
|
|
dnl time_domain, sched_comp)
|
2019-03-18 20:10:06 +08:00
|
|
|
|
2020-03-12 05:02:10 +08:00
|
|
|
PIPELINE_PCM_ADD(PIPE_VOLUME_PLAYBACK,
|
2019-03-18 20:10:06 +08:00
|
|
|
7, 5, 2, s32le,
|
2019-10-22 15:09:58 +08:00
|
|
|
1000, 0, 0,
|
2020-03-12 05:02:10 +08:00
|
|
|
48000, 48000, 48000)
|
2019-03-18 20:10:06 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Speaker DAIs configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
dnl DAI_ADD(pipeline,
|
|
|
|
dnl pipe id, dai type, dai_index, dai_be,
|
|
|
|
dnl buffer, periods, format,
|
2019-09-20 16:18:36 +08:00
|
|
|
dnl deadline, priority, core, time_domain)
|
2019-03-18 20:10:06 +08:00
|
|
|
|
2019-09-24 01:26:48 +08:00
|
|
|
|
2020-03-12 05:02:10 +08:00
|
|
|
DAI_ADD(sof/pipe-dai-playback.m4,
|
|
|
|
7, SSP, SSP1_INDEX, SSP1_NAME,
|
|
|
|
PIPELINE_SOURCE_7, 2, SSP1_VALID_BITS_STR,
|
|
|
|
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
|
2019-03-18 20:10:06 +08:00
|
|
|
|
|
|
|
# PCM Low Latency, id 0
|
|
|
|
dnl PCM_PLAYBACK_ADD(name, pcm_id, playback)
|
|
|
|
PCM_PLAYBACK_ADD(Speakers, 5, PIPELINE_PCM_7)
|
|
|
|
|
|
|
|
#
|
|
|
|
# BE configurations for Speakers - overrides config in ACPI if present
|
|
|
|
#
|
|
|
|
|
2019-07-10 15:49:46 +08:00
|
|
|
#SSP 1 (ID: 6)
|
2019-09-24 01:26:48 +08:00
|
|
|
# Use BCLK derived using m/n divider only on later versions
|
|
|
|
|
2020-03-12 05:02:10 +08:00
|
|
|
DAI_CONFIG(SSP, SSP1_INDEX, 6, SSP1_NAME,
|
|
|
|
SSP_CONFIG(I2S, SSP_CLOCK(mclk, SSP1_MCLK_RATE, codec_mclk_in),
|
2022-01-12 09:43:56 +08:00
|
|
|
SSP_CLOCK(bclk, SSP1_BCLK, codec_slave),
|
|
|
|
SSP_CLOCK(fsync, SSP1_FSYNC, codec_slave),
|
2020-03-12 05:02:10 +08:00
|
|
|
SSP_TDM(2, SSP1_VALID_BITS, 3, 3),
|
|
|
|
SSP_CONFIG_DATA(SSP, SSP1_INDEX, SSP1_VALID_BITS)))
|
2019-03-18 20:10:06 +08:00
|
|
|
|
|
|
|
DEBUG_END
|