|
| 1 | +# |
| 2 | +# HDA passthrough topology for WHL |
| 3 | +# |
| 4 | + |
| 5 | +# Include topology builder |
| 6 | +include(`utils.m4') |
| 7 | +include(`dai.m4') |
| 8 | +include(`pipeline.m4') |
| 9 | +include(`hda.m4') |
| 10 | + |
| 11 | +# Include TLV library |
| 12 | +include(`common/tlv.m4') |
| 13 | + |
| 14 | +# Include Token library |
| 15 | +include(`sof/tokens.m4') |
| 16 | + |
| 17 | +# Include bxt DSP configuration |
| 18 | +include(`platform/intel/bxt.m4') |
| 19 | + |
| 20 | +# |
| 21 | +# Define the pipelines |
| 22 | +# |
| 23 | +# PCM0 <---> passthrough (pipe 1,2) <----> HDA Analog (HDA Analog playback/capture) |
| 24 | +# PCM1 <---> passthrough (pipe 3,4) <----> HDA Digital (HDA Digital playback/capture) |
| 25 | +# PCM3 ----> passthrough (pipe 7) -----> iDisp1 (HDMI/DP playback, BE link 3) |
| 26 | +# PCM4 ----> passthrough (pipe 8) -----> iDisp2 (HDMI/DP playback, BE link 4) |
| 27 | +# PCM5 ----> passthrough (pipe 9) -----> iDisp3 (HDMI/DP playback, BE link 5) |
| 28 | +# |
| 29 | + |
| 30 | +# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s32le. |
| 31 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 32 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4, |
| 33 | + 1, 0, 2, s32le, |
| 34 | + 48, 1000, 0, 0) |
| 35 | + |
| 36 | +# Low Latency capture pipeline 2 on PCM 0 using max 2 channels of s32le. |
| 37 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 38 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4, |
| 39 | + 2, 0, 2, s32le, |
| 40 | + 48, 1000, 0, 0) |
| 41 | + |
| 42 | +# Low Latency playback pipeline 3 on PCM 1 using max 2 channels of s32le. |
| 43 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 44 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4, |
| 45 | + 3, 1, 2, s32le, |
| 46 | + 48, 1000, 0, 0) |
| 47 | + |
| 48 | +# Low Latency capture pipeline 4 on PCM 1 using max 2 channels of s32le. |
| 49 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 50 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4, |
| 51 | + 4, 1, 2, s32le, |
| 52 | + 48, 1000, 0, 0) |
| 53 | + |
| 54 | +# Low Latency playback pipeline 7 on PCM 3 using max 2 channels of s32le. |
| 55 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 56 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4, |
| 57 | + 7, 3, 2, s32le, |
| 58 | + 48, 1000, 0, 0) |
| 59 | + |
| 60 | +# Low Latency playback pipeline 8 on PCM 4 using max 2 channels of s32le. |
| 61 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 62 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4, |
| 63 | + 8, 4, 2, s32le, |
| 64 | + 48, 1000, 0, 0) |
| 65 | + |
| 66 | +# Low Latency playback pipeline 9 on PCM 5 using max 2 channels of s32le. |
| 67 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 68 | +PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4, |
| 69 | + 9, 5, 2, s32le, |
| 70 | + 48, 1000, 0, 0) |
| 71 | + |
| 72 | +# |
| 73 | +# DAIs configuration |
| 74 | +# |
| 75 | + |
| 76 | +# playback DAI is HDA Analog using 2 periods |
| 77 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 78 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 79 | + 1, HDA, 0, Analog Playback and Capture, |
| 80 | + PIPELINE_SOURCE_1, 2, s32le, |
| 81 | + 48, 1000, 0, 0) |
| 82 | + |
| 83 | +# capture DAI is HDA Analog using 2 periods |
| 84 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 85 | +DAI_ADD(sof/pipe-dai-capture.m4, |
| 86 | + 2, HDA, 0, Analog Playback and Capture, |
| 87 | + PIPELINE_SINK_2, 2, s32le, |
| 88 | + 48, 1000, 0, 0) |
| 89 | + |
| 90 | +# playback DAI is HDA Digital using 2 periods |
| 91 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 92 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 93 | + 3, HDA, 1, Digital Playback and Capture, |
| 94 | + PIPELINE_SOURCE_3, 2, s32le, |
| 95 | + 48, 1000, 0, 0) |
| 96 | + |
| 97 | +# capture DAI is HDA Digital using 2 periods |
| 98 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 99 | +DAI_ADD(sof/pipe-dai-capture.m4, |
| 100 | + 4, HDA, 1, Digital Playback and Capture, |
| 101 | + PIPELINE_SINK_4, 2, s32le, |
| 102 | + 48, 1000, 0, 0) |
| 103 | + |
| 104 | +# playback DAI is iDisp1 using 2 periods |
| 105 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 106 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 107 | + 7, HDA, 3, iDisp1, |
| 108 | + PIPELINE_SOURCE_7, 2, s32le, |
| 109 | + 48, 1000, 0, 0) |
| 110 | + |
| 111 | +# playback DAI is iDisp2 using 2 periods |
| 112 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 113 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 114 | + 8, HDA, 4, iDisp2, |
| 115 | + PIPELINE_SOURCE_8, 2, s32le, |
| 116 | + 48, 1000, 0, 0) |
| 117 | + |
| 118 | +# playback DAI is iDisp3 using 2 periods |
| 119 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 120 | +DAI_ADD(sof/pipe-dai-playback.m4, |
| 121 | + 9, HDA, 5, iDisp3, |
| 122 | + PIPELINE_SOURCE_9, 2, s32le, |
| 123 | + 48, 1000, 0, 0) |
| 124 | + |
| 125 | +PCM_DUPLEX_ADD(HDA Analog, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) |
| 126 | +PCM_DUPLEX_ADD(HDA Digital, 1, PIPELINE_PCM_3, PIPELINE_PCM_4) |
| 127 | +PCM_PLAYBACK_ADD(HDMI1, 3, PIPELINE_PCM_7) |
| 128 | +PCM_PLAYBACK_ADD(HDMI2, 4, PIPELINE_PCM_8) |
| 129 | +PCM_PLAYBACK_ADD(HDMI3, 5, PIPELINE_PCM_9) |
| 130 | + |
| 131 | +# |
| 132 | +# BE configurations - overrides config in ACPI if present |
| 133 | +# |
| 134 | + |
| 135 | +# HDA outputs |
| 136 | +HDA_DAI_CONFIG(0, 4, Analog Playback and Capture) |
| 137 | +HDA_DAI_CONFIG(1, 5, Digital Playback and Capture) |
| 138 | +# 3 HDMI/DP outputs (ID: 3,4,5) |
| 139 | +HDA_DAI_CONFIG(3, 1, iDisp1) |
| 140 | +HDA_DAI_CONFIG(4, 2, iDisp2) |
| 141 | +HDA_DAI_CONFIG(5, 3, iDisp3) |
| 142 | + |
| 143 | + |
| 144 | +VIRTUAL_DAPM_ROUTE_IN(codec0_in, HDA, 0, IN, 1) |
| 145 | +VIRTUAL_DAPM_ROUTE_IN(codec1_in, HDA, 1, IN, 2) |
| 146 | +VIRTUAL_DAPM_ROUTE_OUT(codec0_out, HDA, 0, OUT, 3) |
| 147 | +VIRTUAL_DAPM_ROUTE_OUT(codec1_out, HDA, 1, OUT, 4) |
| 148 | + |
| 149 | +# codec2 is not supported in dai links but it exists |
| 150 | +# in dapm routes, so hack this one to HDA1 |
| 151 | +VIRTUAL_DAPM_ROUTE_IN(codec2_in, HDA, 1, IN, 5) |
| 152 | +VIRTUAL_DAPM_ROUTE_OUT(codec2_out, HDA, 1, OUT, 6) |
| 153 | + |
| 154 | +VIRTUAL_DAPM_ROUTE_OUT(iDisp1_out, HDA, 3, OUT, 7) |
| 155 | +VIRTUAL_DAPM_ROUTE_OUT(iDisp2_out, HDA, 4, OUT, 8) |
| 156 | +VIRTUAL_DAPM_ROUTE_OUT(iDisp3_out, HDA, 5, OUT, 9) |
0 commit comments