|
| 1 | +# |
| 2 | +# Topology for Tigerlake with rt1308 codec + DMIC + 4 HDMI |
| 3 | +# |
| 4 | + |
| 5 | +# Include topology builder |
| 6 | +include(`utils.m4') |
| 7 | +include(`dai.m4') |
| 8 | +include(`pipeline.m4') |
| 9 | +include(`ssp.m4') |
| 10 | + |
| 11 | +# Include TLV library |
| 12 | +include(`common/tlv.m4') |
| 13 | + |
| 14 | +# Include Token library |
| 15 | +include(`sof/tokens.m4') |
| 16 | + |
| 17 | +# Include Tigerlake DSP configuration |
| 18 | +include(`platform/intel/tgl.m4') |
| 19 | +include(`platform/intel/dmic.m4') |
| 20 | + |
| 21 | +DEBUG_START |
| 22 | + |
| 23 | +# |
| 24 | +# Define the pipelines |
| 25 | +# |
| 26 | +# PCM0 ----> volume -----> SSP2 |
| 27 | +# PCM1 <---- volume <----- DMIC01 (dmic0 capture) |
| 28 | +# |
| 29 | + |
| 30 | +dnl PIPELINE_PCM_ADD(pipeline, |
| 31 | +dnl pipe id, pcm, max channels, format, |
| 32 | +dnl frames, deadline, priority, core) |
| 33 | + |
| 34 | +# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s24le. |
| 35 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 36 | +PIPELINE_PCM_ADD(sof/pipe-volume-playback.m4, |
| 37 | + 1, 0, 2, s24le, |
| 38 | + 1000, 0, 0, |
| 39 | + 48000, 48000, 48000) |
| 40 | + |
| 41 | +# Passthrough capture pipeline 3 on PCM 1 using max 4 channels. |
| 42 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 43 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4, |
| 44 | + 2, 1, 4, s32le, |
| 45 | + 1000, 0, 0, |
| 46 | + 48000, 48000, 48000) |
| 47 | + |
| 48 | +# |
| 49 | +# DAIs configuration |
| 50 | +# |
| 51 | + |
| 52 | +dnl DAI_ADD(pipeline, |
| 53 | +dnl pipe id, dai type, dai_index, dai_be, |
| 54 | +dnl buffer, periods, format, |
| 55 | +dnl frames, deadline, priority, core) |
| 56 | + |
| 57 | +# playback DAI is SSP2 using 2 periods |
| 58 | +# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0 |
| 59 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 60 | + 1, SSP, 2, SSP2-Codec, |
| 61 | + PIPELINE_SOURCE_1, 2, s24le, |
| 62 | + 1000, 0, 0) |
| 63 | + |
| 64 | +# capture DAI is DMIC01 using 2 periods |
| 65 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 66 | +DAI_ADD(sof/pipe-dai-capture.m4, |
| 67 | + 2, DMIC, 0, dmic01, |
| 68 | + PIPELINE_SINK_2, 2, s32le, |
| 69 | + 1000, 0, 0) |
| 70 | + |
| 71 | +# PCM Low Latency, id 0 |
| 72 | +dnl PCM_PLAYBACK_ADD(name, pcm_id, playback) |
| 73 | +PCM_PLAYBACK_ADD(Speaker, 0, PIPELINE_PCM_1) |
| 74 | +PCM_CAPTURE_ADD(DMIC01, 1, PIPELINE_PCM_2) |
| 75 | + |
| 76 | +# |
| 77 | +# BE configurations - overrides config in ACPI if present |
| 78 | +# |
| 79 | +#SSP 2 (ID: 0) |
| 80 | +DAI_CONFIG(SSP, 2, 0, SSP2-Codec, |
| 81 | + SSP_CONFIG(I2S, SSP_CLOCK(mclk, 38400000, codec_mclk_in), |
| 82 | + SSP_CLOCK(bclk, 2400000, codec_slave), |
| 83 | + SSP_CLOCK(fsync, 48000, codec_slave), |
| 84 | + SSP_TDM(2, 25, 3, 3), |
| 85 | + SSP_CONFIG_DATA(SSP, 2, 24))) |
| 86 | + |
| 87 | +# dmic01 (ID: 1) |
| 88 | +DAI_CONFIG(DMIC, 0, 1, dmic01, |
| 89 | + DMIC_CONFIG(1, 500000, 4800000, 40, 60, 48000, |
| 90 | + DMIC_WORD_LENGTH(s32le), 400, DMIC, 0, |
| 91 | + PDM_CONFIG(DMIC, 0, FOUR_CH_PDM0_PDM1))) |
| 92 | + |
| 93 | +DEBUG_END |
0 commit comments