@@ -21,73 +21,70 @@ include(`platform/intel/dmic.m4')
2121#
2222# Define the pipelines
2323#
24- # PCM0 <---- volume <----- DMIC0 (SSP3)
25- # PCM1 ----> volume -----> SSP5 (pcm512x)
24+ # PCM0 ----> volume -----> SSP5 (pcm512x)
2625# <---- volume <----- SSP5
26+ # PCM1 <---- volume <----- DMIC0 (SSP3)
2727#
2828
29- # Low Latency capture pipeline 1 on PCM 0 using max 4 channels of s32le.
30- # Schedule 48 frames per 1000us deadline on core 0 with priority 0
31- PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
32- 1, 0, 4, s32le,
33- 48, 1000, 0, 0, DMIC, 0, s32le, 2)
34-
3529# Low Latency playback pipeline 2 on PCM 1 using max 2 channels of s16le.
3630# Schedule 48 frames per 1000us deadline on core 0 with priority 0
3731PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4,
38- 2, 1 , 2, s16le,
32+ 1, 0 , 2, s16le,
3933 48, 1000, 0, 0, SSP, 5, s16le, 2)
4034
4135# Low Latency capture pipeline 3 on PCM 1 using max 2 channels of s16le.
4236# Schedule 48 frames per 1000us deadline on core 0 with priority 0
4337PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
44- 3, 1 , 2, s16le,
38+ 2, 0 , 2, s16le,
4539 48, 1000, 0, 0, SSP, 5, s16le, 2)
4640
41+ # Low Latency capture pipeline 1 on PCM 0 using max 4 channels of s32le.
42+ # Schedule 48 frames per 1000us deadline on core 0 with priority 0
43+ PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
44+ 3, 1, 4, s32le,
45+ 48, 1000, 0, 0, DMIC, 0, s32le, 2)
4746
4847#
4948# DAIs configuration
5049#
5150
52- # capture DAI is DMIC0 using 2 periods
53- # Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
54- DAI_ADD(sof/pipe-dai-capture.m4,
55- 1, DMIC, 0, DMIC0,
56- PIPELINE_SINK_1, 2, s32le,
57- 48, 1000, 0, 0)
58-
5951# playback DAI is SSP5 using 2 periods
6052# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
6153DAI_ADD(sof/pipe-dai-playback.m4,
62- 2 , SSP, 5, SSP5-Codec,
63- PIPELINE_SOURCE_2 , 2, s16le,
54+ 1 , SSP, 5, SSP5-Codec,
55+ PIPELINE_SOURCE_1 , 2, s16le,
6456 48, 1000, 0, 0)
6557
6658# capture DAI is SSP5 using 2 periods
6759# Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
6860DAI_ADD(sof/pipe-dai-capture.m4,
69- 3 , SSP, 5, SSP5-Codec,
70- PIPELINE_SINK_3 , 2, s16le,
61+ 2 , SSP, 5, SSP5-Codec,
62+ PIPELINE_SINK_2 , 2, s16le,
7163 48, 1000, 0, 0)
7264
65+ # capture DAI is DMIC0 using 2 periods
66+ # Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
67+ DAI_ADD(sof/pipe-dai-capture.m4,
68+ 3, DMIC, 0, DMIC0,
69+ PIPELINE_SINK_3, 2, s32le,
70+ 48, 1000, 0, 0)
7371
7472# PCM Low Latency, id 0
75- PCM_CAPTURE_ADD(Dmic0 , 0, 0, 0, PIPELINE_PCM_1)
76- PCM_DUPLEX_ADD(Port5 , 1, 1, 1, PIPELINE_PCM_2 , PIPELINE_PCM_3)
73+ PCM_DUPLEX_ADD(Port5 , 0, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2 )
74+ PCM_CAPTURE_ADD(Dmic0 , 1, 1, 1, PIPELINE_PCM_3)
7775
7876#
7977# BE configurations - overrides config in ACPI if present
8078#
8179
82- DAI_CONFIG(DMIC, 0, 0, DMIC0,
83- DMIC_CONFIG(1, 500000, 4800000, 40, 60, 48000,
84- DMIC_WORD_LENGTH(s32le), DMIC, 0,
85- PDM_CONFIG(DMIC, 0, FOUR_CH_PDM0_PDM1)))
86-
87- DAI_CONFIG(SSP, 5, 1, SSP5-Codec,
80+ DAI_CONFIG(SSP, 5, 0, SSP5-Codec,
8881 SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
8982 SSP_CLOCK(bclk, 1536000, codec_slave),
9083 SSP_CLOCK(fsync, 48000, codec_slave),
9184 SSP_TDM(2, 16, 3, 3),
9285 SSP_CONFIG_DATA(SSP, 5, 16)))
9386
87+ DAI_CONFIG(DMIC, 0, 1, DMIC0,
88+ DMIC_CONFIG(1, 500000, 4800000, 40, 60, 48000,
89+ DMIC_WORD_LENGTH(s32le), DMIC, 0,
90+ PDM_CONFIG(DMIC, 0, FOUR_CH_PDM0_PDM1)))
0 commit comments