Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

Commit 9aa6193

Browse files
authored
Merge pull request #12 from zhigang-wu/master
ssp2 should be 8-channel
2 parents 2c786e9 + 707d6d6 commit 9aa6193

1 file changed

Lines changed: 37 additions & 38 deletions

File tree

topology/sof-apl-tdf8532.m4

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,6 @@ PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
9797
# DAIs configuration
9898
#
9999

100-
# playback DAI is SSP4 using 2 periods
101-
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
102-
DAI_ADD(sof/pipe-dai-playback.m4,
103-
1, SSP, 4, SSP4-Codec,
104-
PIPELINE_SOURCE_1, 2, s32le,
105-
48, 1000, 0, 0)
106-
107-
# playback DAI is SSP2 using 2 periods
108-
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
109-
DAI_ADD(sof/pipe-dai-playback.m4,
110-
2, SSP, 2, SSP2-Codec,
111-
PIPELINE_SOURCE_2, 2, s32le,
112-
48, 1000, 0, 0)
113-
114-
# capture DAI is SSP2 using 2 periods
115-
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
116-
DAI_ADD(sof/pipe-dai-capture.m4,
117-
3, SSP, 2, SSP2-Codec,
118-
PIPELINE_SINK_3, 2, s32le,
119-
48, 1000, 0, 0)
120-
121100
# playback DAI is SSP0 using 2 periods
122101
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
123102
DAI_ADD(sof/pipe-dai-playback.m4,
@@ -139,6 +118,20 @@ DAI_ADD(sof/pipe-dai-capture.m4,
139118
PIPELINE_SINK_6, 2, s16le,
140119
48, 1000, 0, 0)
141120

121+
# playback DAI is SSP2 using 2 periods
122+
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
123+
DAI_ADD(sof/pipe-dai-playback.m4,
124+
2, SSP, 2, SSP2-Codec,
125+
PIPELINE_SOURCE_2, 2, s32le,
126+
48, 1000, 0, 0)
127+
128+
# capture DAI is SSP2 using 2 periods
129+
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
130+
DAI_ADD(sof/pipe-dai-capture.m4,
131+
3, SSP, 2, SSP2-Codec,
132+
PIPELINE_SINK_3, 2, s32le,
133+
48, 1000, 0, 0)
134+
142135
# playback DAI is SSP3 using 2 periods
143136
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
144137
DAI_ADD(sof/pipe-dai-playback.m4,
@@ -153,6 +146,13 @@ DAI_ADD(sof/pipe-dai-capture.m4,
153146
PIPELINE_SINK_8, 2, s16le,
154147
48, 1000, 0, 0)
155148

149+
# playback DAI is SSP4 using 2 periods
150+
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
151+
DAI_ADD(sof/pipe-dai-playback.m4,
152+
1, SSP, 4, SSP4-Codec,
153+
PIPELINE_SOURCE_1, 2, s32le,
154+
48, 1000, 0, 0)
155+
156156
# playback DAI is SSP5 using 2 periods
157157
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
158158
DAI_ADD(sof/pipe-dai-playback.m4,
@@ -168,31 +168,16 @@ DAI_ADD(sof/pipe-dai-capture.m4,
168168
48, 1000, 0, 0)
169169

170170
# PCM Low Latency, id 0
171-
PCM_PLAYBACK_ADD(Port4, 0, 0, 0, PIPELINE_PCM_1)
172-
PCM_DUPLEX_ADD(Port2, 1, 1, 1, PIPELINE_PCM_2, PIPELINE_PCM_3)
173171
PCM_DUPLEX_ADD(Port0, 2, 2, 2, PIPELINE_PCM_4, PIPELINE_PCM_5)
174172
PCM_CAPTURE_ADD(Port1, 3, 3, 3, PIPELINE_PCM_6)
173+
PCM_DUPLEX_ADD(Port2, 1, 1, 1, PIPELINE_PCM_2, PIPELINE_PCM_3)
175174
PCM_DUPLEX_ADD(Port3, 4, 4, 4, PIPELINE_PCM_7, PIPELINE_PCM_8)
175+
PCM_PLAYBACK_ADD(Port4, 0, 0, 0, PIPELINE_PCM_1)
176176
PCM_DUPLEX_ADD(Port5, 5, 5, 5, PIPELINE_PCM_9, PIPELINE_PCM_10)
177177

178178
#
179179
# BE configurations - overrides config in ACPI if present
180180
#
181-
182-
DAI_CONFIG(SSP, 4, 4, SSP4-Codec,
183-
SSP_CONFIG(DSP_B, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
184-
SSP_CLOCK(bclk, 12288000, codec_slave),
185-
SSP_CLOCK(fsync, 48000, codec_slave),
186-
SSP_TDM(8, 32, 15, 15),
187-
SSP_CONFIG_DATA(SSP, 4, 32)))
188-
189-
DAI_CONFIG(SSP, 2, 2, SSP2-Codec,
190-
SSP_CONFIG(DSP_B, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
191-
SSP_CLOCK(bclk, 12288000, codec_slave),
192-
SSP_CLOCK(fsync, 48000, codec_slave),
193-
SSP_TDM(2, 32, 255, 255),
194-
SSP_CONFIG_DATA(SSP, 2, 32)))
195-
196181
DAI_CONFIG(SSP, 0, 0, SSP0-Codec,
197182
SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
198183
SSP_CLOCK(bclk, 1536000, codec_slave),
@@ -207,13 +192,27 @@ DAI_CONFIG(SSP, 1, 1, SSP1-Codec,
207192
SSP_TDM(2, 16, 3, 3),
208193
SSP_CONFIG_DATA(SSP, 1, 16)))
209194

195+
DAI_CONFIG(SSP, 2, 2, SSP2-Codec,
196+
SSP_CONFIG(DSP_B, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
197+
SSP_CLOCK(bclk, 12288000, codec_slave),
198+
SSP_CLOCK(fsync, 48000, codec_slave),
199+
SSP_TDM(8, 32, 255, 255),
200+
SSP_CONFIG_DATA(SSP, 2, 32)))
201+
210202
DAI_CONFIG(SSP, 3, 3, SSP3-Codec,
211203
SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
212204
SSP_CLOCK(bclk, 1536000, codec_slave),
213205
SSP_CLOCK(fsync, 48000, codec_slave),
214206
SSP_TDM(2, 16, 3, 3),
215207
SSP_CONFIG_DATA(SSP, 3, 16)))
216208

209+
DAI_CONFIG(SSP, 4, 4, SSP4-Codec,
210+
SSP_CONFIG(DSP_B, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
211+
SSP_CLOCK(bclk, 12288000, codec_slave),
212+
SSP_CLOCK(fsync, 48000, codec_slave),
213+
SSP_TDM(8, 32, 15, 15),
214+
SSP_CONFIG_DATA(SSP, 4, 32)))
215+
217216
DAI_CONFIG(SSP, 5, 5, SSP5-Codec,
218217
SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
219218
SSP_CLOCK(bclk, 1536000, codec_slave),

0 commit comments

Comments
 (0)