Skip to content

Commit ce21997

Browse files
plbossartlrgirdwo
authored andcommitted
topology: sof-apl-wm8804: add capture support
Add duplex capture - tested w/ HifiBerry Digi+ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 640ff3f commit ce21997

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tools/topology/sof-apl-wm8804.m4

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ include(`platform/intel/bxt.m4')
2020
#
2121
# Define the pipelines
2222
#
23-
# PCM0 ----> volume -----> SSP5 (wm8804)
23+
# PCM0 <----> volume <-----> SSP5 (wm8804)
2424
#
2525

2626
dnl PIPELINE_PCM_ADD(pipeline,
@@ -36,6 +36,13 @@ PIPELINE_PCM_ADD(sof/pipe-volume-playback.m4,
3636
1000, 0, 0,
3737
48000, 48000, 48000)
3838

39+
# Low Latency capture pipeline 2 on PCM 0 using max 2 channels of s32le.
40+
# 1000us deadline on core 0 with priority 0
41+
PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4,
42+
2, 0, 2, s32le,
43+
1000, 0, 0,
44+
48000, 48000, 48000)
45+
3946
#
4047
# DAIs configuration
4148
#
@@ -52,8 +59,15 @@ DAI_ADD(sof/pipe-dai-playback.m4,
5259
PIPELINE_SOURCE_1, 2, s24le,
5360
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
5461

62+
# capture DAI is SSP5 using 2 periods
63+
# Buffers use s24le format, 1000us deadline on core 0 with priority 0
64+
DAI_ADD(sof/pipe-dai-capture.m4,
65+
2, SSP, 5, SSP5-Codec,
66+
PIPELINE_SINK_2, 2, s24le,
67+
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
68+
5569
# PCM Low Latency, id 0
56-
PCM_PLAYBACK_ADD(Port5, 0, PIPELINE_PCM_1)
70+
PCM_DUPLEX_ADD(Port5, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
5771

5872
#
5973
# BE configurations - overrides config in ACPI if present

0 commit comments

Comments
 (0)