|
| 1 | +# |
| 2 | +# Topology for generic Icelake board with nocodec |
| 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 Icelake DSP configuration |
| 18 | +include(`platform/intel/icl.m4') |
| 19 | + |
| 20 | +# |
| 21 | +# Define the pipelines |
| 22 | +# |
| 23 | +# PCM0 ----> Volume ----> SSP0 |
| 24 | +# |
| 25 | +# PCM1 <---- Volume <---- SSP0 |
| 26 | +# |
| 27 | + |
| 28 | +# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s24le. |
| 29 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 30 | +PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4, |
| 31 | + 1, 0, 2, s24le, |
| 32 | + 48, 1000, 0, 0, SSP, 0, s24le, 2) |
| 33 | + |
| 34 | +# Low Latency capture pipeline 2 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_DAI_ADD(sof/pipe-volume-capture.m4, |
| 37 | + 2, 0, 2, s24le, |
| 38 | + 48, 1000, 0, 0, SSP, 0, s24le, 2) |
| 39 | + |
| 40 | +# |
| 41 | +# DAI configuration |
| 42 | +# |
| 43 | +# SSP port 0 is our only pipeline DAI |
| 44 | +# |
| 45 | + |
| 46 | +# playback DAI is SSP0 using 2 periods |
| 47 | +# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0 |
| 48 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 49 | + 1, SSP, 0, NoCodec-0, |
| 50 | + PIPELINE_SOURCE_1, 2, s24le, |
| 51 | + 48, 1000, 0, 0) |
| 52 | + |
| 53 | +# capture DAI is SSP0 using 2 periods |
| 54 | +# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0 |
| 55 | +DAI_ADD(sof/pipe-dai-capture.m4, |
| 56 | + 2, SSP, 0, NoCodec-0, |
| 57 | + PIPELINE_SINK_2, 2, s24le, |
| 58 | + 48, 1000, 0, 0) |
| 59 | + |
| 60 | +# PCM Low Latency |
| 61 | +PCM_DUPLEX_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) |
| 62 | + |
| 63 | +# |
| 64 | +# BE configurations - overrides config in ACPI if present |
| 65 | +# |
| 66 | +DAI_CONFIG(SSP, 0, 0, NoCodec-0, |
| 67 | + SSP_CONFIG(DSP_B, SSP_CLOCK(mclk, 38400000, codec_mclk_in), |
| 68 | + SSP_CLOCK(bclk, 2400000, codec_slave), |
| 69 | + SSP_CLOCK(fsync, 48000, codec_slave), |
| 70 | + SSP_TDM(2, 25, 3, 3), |
| 71 | + SSP_CONFIG_DATA(SSP, 0, 24))) |
0 commit comments