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

Commit 812c15c

Browse files
committed
topology: sof-apl-nocodec: enable all 6 SSPs
For some reason parts of the topology were commented out. Make sure all 6 SSPs are enabled. Tested on Up2 with a LogicPro-based check on SSP5 (only interface accessive on the HAT connector) Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 576d15b commit 812c15c

1 file changed

Lines changed: 44 additions & 44 deletions

File tree

topology/sof-apl-nocodec.m4

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include(`platform/intel/bxt.m4')
2222
#
2323
# PCM0 ----> volume -----> SSP0
2424
# <---- volume <----- SSP0
25-
# PCM1 <---- Volume <----- SSP1
25+
# PCM1 ----> Volume <----- SSP1
2626
# <---- Volume <----- SSP1
2727
# PCM2 ----> volume -----> SSP2
2828
# <---- Volume <----- SSP2
@@ -84,27 +84,27 @@ PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
8484

8585
# Low Latency playback pipeline 9 on PCM 4 using max 2 channels of s16le.
8686
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
87-
#PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4,
88-
# 9, 4, 2, s16le,
89-
# 48, 1000, 0, 0, SSP, 4, s16le, 2)
87+
PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4,
88+
9, 4, 2, s16le,
89+
48, 1000, 0, 0, SSP, 4, s16le, 2)
9090

9191
# Low Latency capture pipeline 10 on PCM 4 using max 2 channels of s16le.
9292
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
93-
#PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
94-
# 10, 4, 2, s16le,
95-
# 48, 1000, 0, 0, SSP, 4, s16le, 2)
93+
PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
94+
10, 4, 2, s16le,
95+
48, 1000, 0, 0, SSP, 4, s16le, 2)
9696

9797
# Low Latency playback pipeline 11 on PCM 5 using max 2 channels of s16le.
9898
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
99-
#PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4,
100-
# 11, 5, 2, s16le,
101-
# 48, 1000, 0, 0, SSP, 5, s16le, 2)
99+
PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4,
100+
11, 5, 2, s16le,
101+
48, 1000, 0, 0, SSP, 5, s16le, 2)
102102

103103
# Low Latency capture pipeline 12 on PCM 5 using max 2 channels of s16le.
104104
# Schedule 48 frames per 1000us deadline on core 0 with priority 0
105-
#PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
106-
# 12, 5, 2, s16le,
107-
# 48, 1000, 0, 0, SSP, 5, s16le, 2)
105+
PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
106+
12, 5, 2, s16le,
107+
48, 1000, 0, 0, SSP, 5, s16le, 2)
108108

109109

110110
#
@@ -169,39 +169,39 @@ DAI_ADD(sof/pipe-dai-capture.m4,
169169

170170
# playback DAI is SSP4 using 2 periods
171171
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
172-
#DAI_ADD(sof/pipe-dai-playback.m4,
173-
# 9, SSP, 4, NoCodec,
174-
# PIPELINE_SOURCE_9, 2, s16le,
175-
# 48, 1000, 0, 0)
172+
DAI_ADD(sof/pipe-dai-playback.m4,
173+
9, SSP, 4, NoCodec-4,
174+
PIPELINE_SOURCE_9, 2, s16le,
175+
48, 1000, 0, 0)
176176

177177
# capture DAI is SSP4 using 2 periods
178178
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
179-
#DAI_ADD(sof/pipe-dai-capture.m4,
180-
# 10, SSP, 4, NoCodec,
181-
# PIPELINE_SINK_10, 2, s16le,
182-
# 48, 1000, 0, 0)
179+
DAI_ADD(sof/pipe-dai-capture.m4,
180+
10, SSP, 4, NoCodec-4,
181+
PIPELINE_SINK_10, 2, s16le,
182+
48, 1000, 0, 0)
183183

184184
# playback DAI is SSP5 using 2 periods
185185
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
186-
#DAI_ADD(sof/pipe-dai-playback.m4,
187-
# 11, SSP, 5, NoCodec,
188-
# PIPELINE_SOURCE_11, 2, s16le,
189-
# 48, 1000, 0, 0)
186+
DAI_ADD(sof/pipe-dai-playback.m4,
187+
11, SSP, 5, NoCodec-5,
188+
PIPELINE_SOURCE_11, 2, s16le,
189+
48, 1000, 0, 0)
190190

191191
# capture DAI is SSP5 using 2 periods
192192
# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
193-
#DAI_ADD(sof/pipe-dai-capture.m4,
194-
# 12, SSP, 5, NoCdec,
195-
# PIPELINE_SINK_12, 2, s16le,
196-
# 48, 1000, 0, 0)
193+
DAI_ADD(sof/pipe-dai-capture.m4,
194+
12, SSP, 5, NoCodec-5,
195+
PIPELINE_SINK_12, 2, s16le,
196+
48, 1000, 0, 0)
197197

198198
# PCM Low Latency, id 0
199199
PCM_DUPLEX_ADD(Port0, 0, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
200200
PCM_DUPLEX_ADD(Port1, 1, 1, 1, PIPELINE_PCM_3, PIPELINE_PCM_4)
201201
PCM_DUPLEX_ADD(Port2, 2, 2, 2, PIPELINE_PCM_5, PIPELINE_PCM_6)
202202
PCM_DUPLEX_ADD(Port3, 3, 3, 3, PIPELINE_PCM_7, PIPELINE_PCM_8)
203-
#PCM_DUPLEX_ADD(Port4, 4, 4, 4, PIPELINE_PCM_9, PIPELINE_PCM_10)
204-
#PCM_DUPLEX_ADD(Port5, 5, 5, 5, PIPELINE_PCM_11, PIPELINE_PCM_12)
203+
PCM_DUPLEX_ADD(Port4, 4, 4, 4, PIPELINE_PCM_9, PIPELINE_PCM_10)
204+
PCM_DUPLEX_ADD(Port5, 5, 5, 5, PIPELINE_PCM_11, PIPELINE_PCM_12)
205205

206206
#
207207
# BE configurations - overrides config in ACPI if present
@@ -235,17 +235,17 @@ DAI_CONFIG(SSP, 3, 3, NoCodec-3,
235235
SSP_TDM(2, 16, 3, 3),
236236
SSP_CONFIG_DATA(SSP, 3, 16)))
237237

238-
#DAI_CONFIG(SSP, 4, 0, NoCodec,
239-
# SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
240-
# SSP_CLOCK(bclk, 1536000, codec_slave),
241-
# SSP_CLOCK(fsync, 48000, codec_slave),
242-
# SSP_TDM(2, 16, 3, 3),
243-
# SSP_CONFIG_DATA(SSP, 4, 16)))
244-
245-
#DAI_CONFIG(SSP, 5, 0, NoCodec,
246-
# SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
247-
# SSP_CLOCK(bclk, 1536000, codec_slave),
248-
# SSP_CLOCK(fsync, 48000, codec_slave),
249-
# SSP_TDM(2, 16, 3, 3),
250-
# SSP_CONFIG_DATA(SSP, 5, 16)))
238+
DAI_CONFIG(SSP, 4, 4, NoCodec-4,
239+
SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
240+
SSP_CLOCK(bclk, 1536000, codec_slave),
241+
SSP_CLOCK(fsync, 48000, codec_slave),
242+
SSP_TDM(2, 16, 3, 3),
243+
SSP_CONFIG_DATA(SSP, 4, 16)))
244+
245+
DAI_CONFIG(SSP, 5, 5, NoCodec-5,
246+
SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
247+
SSP_CLOCK(bclk, 1536000, codec_slave),
248+
SSP_CLOCK(fsync, 48000, codec_slave),
249+
SSP_TDM(2, 16, 3, 3),
250+
SSP_CONFIG_DATA(SSP, 5, 16)))
251251

0 commit comments

Comments
 (0)