@@ -16,75 +16,40 @@ include(`sof/tokens.m4')
1616
1717# Include Apollolake DSP configuration
1818include ( `platform/intel/bxt.m4' )
19- include ( `platform/intel/dmic.m4' )
2019
2120#
2221# Define the pipelines
2322#
2423# PCM0 ----> volume -----> SSP5 (pcm512x)
25- # <---- volume <----- SSP5
26- # PCM1 <---- volume <----- DMIC0 (SSP3)
2724#
2825
29- # Low Latency playback pipeline 2 on PCM 1 using max 2 channels of s16le .
26+ # Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s32le .
3027# Schedule 48 frames per 1000us deadline on core 0 with priority 0
31- PIPELINE_PCM_DAI_ADD(sof/pipe-volume-playback.m4,
32- 1, 0, 2, s16le,
33- 48, 1000, 0, 0, SSP, 5, s16le, 2)
34-
35- # Low Latency capture pipeline 3 on PCM 1 using max 2 channels of s16le.
36- # Schedule 48 frames per 1000us deadline on core 0 with priority 0
37- PIPELINE_PCM_DAI_ADD(sof/pipe-volume-capture.m4,
38- 2, 0, 2, s16le,
39- 48, 1000, 0, 0, SSP, 5, s16le, 2)
40-
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)
28+ PIPELINE_PCM_ADD(sof/pipe-volume-playback.m4,
29+ 1, 0, 2, s32le,
30+ 48, 1000, 0, 0)
4631
4732#
4833# DAIs configuration
4934#
5035
5136# playback DAI is SSP5 using 2 periods
52- # Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
37+ # Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
5338DAI_ADD(sof/pipe-dai-playback.m4,
5439 1, SSP, 5, SSP5-Codec,
55- PIPELINE_SOURCE_1, 2, s16le,
56- 48, 1000, 0, 0)
57-
58- # capture DAI is SSP5 using 2 periods
59- # Buffers use s16le format, with 48 frame per 1000us on core 0 with priority 0
60- DAI_ADD(sof/pipe-dai-capture.m4,
61- 2, SSP, 5, SSP5-Codec,
62- PIPELINE_SINK_2, 2, s16le,
63- 48, 1000, 0, 0)
64-
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,
40+ PIPELINE_SOURCE_1, 2, s24le,
7041 48, 1000, 0, 0)
7142
7243# PCM Low Latency, id 0
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)
44+ PCM_PLAYBACK_ADD(Port5, 0, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
7545
7646#
7747# BE configurations - overrides config in ACPI if present
7848#
7949
8050DAI_CONFIG(SSP, 5, 0, SSP5-Codec,
8151 SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24576000, codec_mclk_in),
82- SSP_CLOCK(bclk, 1536000 , codec_slave),
52+ SSP_CLOCK(bclk, 3072000 , codec_slave),
8353 SSP_CLOCK(fsync, 48000, codec_slave),
84- SSP_TDM(2, 16, 3, 3),
85- SSP_CONFIG_DATA(SSP, 5, 16)))
86-
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)))
54+ SSP_TDM(2, 32, 3, 3),
55+ SSP_CONFIG_DATA(SSP, 5, 24)))
0 commit comments