From a438feb7243e3f889af25d9d3fce666d1fc2fe41 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 07:57:54 +0200 Subject: [PATCH 01/14] topology: intel-generic-dmic.m4: fix dai parameters Fix errorneous parameters in DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/platform/intel/intel-generic-dmic.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/topology/platform/intel/intel-generic-dmic.m4 b/tools/topology/platform/intel/intel-generic-dmic.m4 index 31dd7fa61b30..125300b070f5 100644 --- a/tools/topology/platform/intel/intel-generic-dmic.m4 +++ b/tools/topology/platform/intel/intel-generic-dmic.m4 @@ -46,14 +46,14 @@ dnl deadline, priority, core, time_domain) DAI_ADD(sof/pipe-dai-capture.m4, DMIC_PIPELINE_48k_ID, DMIC, 0, dmic01, concat(`PIPELINE_SINK_', DMIC_PIPELINE_48k_ID), 2, s32le, - 1000, 0, 0, 48000, 48000, 48000) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER) # capture DAI is DMIC 1 using 2 periods # Buffers use s32le format, with 16 frame per 1000us on core 0 with priority 0 DAI_ADD(sof/pipe-dai-capture.m4, DMIC_PIPELINE_16k_ID, DMIC, 1, dmic16k, concat(`PIPELINE_SINK_', DMIC_PIPELINE_16k_ID), 2, s32le, - 1000, 0, 0, 16000, 16000, 16000) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER) dnl PCM_DUPLEX_ADD(name, pcm_id, playback, capture) dnl PCM_CAPTURE_ADD(name, pipeline, capture) From 46afa5ab983fcf0c482badad9d5a327db414bf1b Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 07:58:20 +0200 Subject: [PATCH 02/14] topology: sof-bdw-codec.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-bdw-codec.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/topology/sof-bdw-codec.m4 b/tools/topology/sof-bdw-codec.m4 index d660e5dd7f20..f678879c2f62 100644 --- a/tools/topology/sof-bdw-codec.m4 +++ b/tools/topology/sof-bdw-codec.m4 @@ -73,14 +73,14 @@ SectionGraph."PIPE_NAME" { DAI_ADD(sof/pipe-dai-playback.m4, 1, SSP, 0, Codec, PIPELINE_SOURCE_1, 2, s24le, - 1000, 1, 0) + 1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) # capture DAI is SSP0 using 2 periods # Buffers use s24le format, 1000us deadline on core 0 with priority 0 DAI_ADD(sof/pipe-dai-capture.m4, 2, SSP, 0, Codec, PIPELINE_SINK_2, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Low Latency PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) From 13c2de76ad21e724e3c90a686755c7e771305080 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 07:58:41 +0200 Subject: [PATCH 03/14] topology: sof-cht-nocodec.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD and pipeline. Signed-off-by: Jaska Uimonen --- tools/topology/sof-cht-nocodec.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/topology/sof-cht-nocodec.m4 b/tools/topology/sof-cht-nocodec.m4 index 3c5c0ce74beb..8d7758c55a66 100644 --- a/tools/topology/sof-cht-nocodec.m4 +++ b/tools/topology/sof-cht-nocodec.m4 @@ -56,7 +56,7 @@ PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4, DAI_ADD(sof/pipe-dai-playback.m4, 1, SSP, 2, NoCodec-2, PIPELINE_SOURCE_1, 2, s24le, - 1000, 1, 0) + 1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le. # 4000us deadline on core 0 with priority 0 @@ -64,7 +64,7 @@ PIPELINE_PCM_ADD(sof/pipe-pcm-media.m4, 3, 1, 2, s32le, 4000, 0, 0, 8000, 48000, 48000, - 0, PIPELINE_PLAYBACK_SCHED_COMP_1) + SCHEDULE_TIME_DOMAIN_DMA, PIPELINE_PLAYBACK_SCHED_COMP_1) # Connect pipelines together SectionGraph."media-pipe" { @@ -81,7 +81,7 @@ SectionGraph."media-pipe" { DAI_ADD(sof/pipe-dai-capture.m4, 2, SSP, 2, NoCodec-2, PIPELINE_SINK_2, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Low Latency PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) From a8c73eab4173b8a36f1364f6aeb400fb625de1b8 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 07:58:54 +0200 Subject: [PATCH 04/14] topology: sof-cht-rt5682.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-cht-rt5682.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/topology/sof-cht-rt5682.m4 b/tools/topology/sof-cht-rt5682.m4 index 3b3a4462fb17..24cde320fe8c 100644 --- a/tools/topology/sof-cht-rt5682.m4 +++ b/tools/topology/sof-cht-rt5682.m4 @@ -48,14 +48,14 @@ PIPELINE_PCM_ADD(sof/pipe-volume-capture.m4, DAI_ADD(sof/pipe-dai-playback.m4, 1, SSP, 2, SSP2-Codec, PIPELINE_SOURCE_1, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # capture DAI is SSP2 using 2 periods # Buffers use s24le format, 1000us deadline on core 0 with priority 0 DAI_ADD(sof/pipe-dai-capture.m4, 2, SSP, 2, SSP2-Codec, PIPELINE_SINK_2, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Low Latency PCM_DUPLEX_ADD(SSP2, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) From d5422585cff4155c77fb0e759b63947de1af850a Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 07:59:48 +0200 Subject: [PATCH 05/14] topology: sof-byt-codec.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD and pipeline. Signed-off-by: Jaska Uimonen --- tools/topology/sof-byt-codec.m4 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/topology/sof-byt-codec.m4 b/tools/topology/sof-byt-codec.m4 index be27101b9894..91039ec25771 100644 --- a/tools/topology/sof-byt-codec.m4 +++ b/tools/topology/sof-byt-codec.m4 @@ -62,7 +62,7 @@ PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4, DAI_ADD(sof/pipe-dai-playback.m4, 1, SSP, 2, SSP2-Codec, PIPELINE_SOURCE_1, 2, s24le, - 1000, 1, 0) + 1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le. # 4000us deadline on core 0 with priority 0 @@ -70,7 +70,8 @@ PIPELINE_PCM_ADD(sof/pipe-pcm-media.m4, 3, 1, 2, s16le, 4000, 0, 0, 8000, 96000, 48000, - 0, PIPELINE_PLAYBACK_SCHED_COMP_1) + SCHEDULE_TIME_DOMAIN_DMA, + PIPELINE_PLAYBACK_SCHED_COMP_1) # Connect pipelines together SectionGraph."PIPE_NAME" { @@ -87,7 +88,7 @@ SectionGraph."PIPE_NAME" { DAI_ADD(sof/pipe-dai-capture.m4, 2, SSP, 2, SSP2-Codec, PIPELINE_SINK_2, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Low Latency PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) From 5f4aaf446834f70d17cb1c82443c41e30a202524 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:00:06 +0200 Subject: [PATCH 06/14] topology: sof-cht-max98090.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-cht-max98090.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/topology/sof-cht-max98090.m4 b/tools/topology/sof-cht-max98090.m4 index ec1c7e2a105e..067c12aeacd7 100644 --- a/tools/topology/sof-cht-max98090.m4 +++ b/tools/topology/sof-cht-max98090.m4 @@ -52,7 +52,7 @@ PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4, DAI_ADD(sof/pipe-dai-playback.m4, 1, SSP, 2, SSP2-Codec, PIPELINE_SOURCE_1, 2, s16le, - 1000, 1, 0) + 1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le. # 4000us deadline on core 0 with priority 0 @@ -77,7 +77,7 @@ SectionGraph."pipe-cht-max98090" { DAI_ADD(sof/pipe-dai-capture.m4, 2, SSP, 2, SSP2-Codec, PIPELINE_SINK_2, 2, s16le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM Low Latency PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) From e0f67a640071b7c6f7072624e0b70d268d030e7f Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:00:23 +0200 Subject: [PATCH 07/14] topology: sof-cht-src-50khz-pcm512x.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-cht-src-50khz-pcm512x.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/sof-cht-src-50khz-pcm512x.m4 b/tools/topology/sof-cht-src-50khz-pcm512x.m4 index 2e3ff32c36dd..2791dfb985eb 100644 --- a/tools/topology/sof-cht-src-50khz-pcm512x.m4 +++ b/tools/topology/sof-cht-src-50khz-pcm512x.m4 @@ -53,7 +53,7 @@ dnl deadline, priority, core) DAI_ADD(sof/pipe-dai-playback.m4, 1, SSP, 2, SSP2-Codec, PIPELINE_SOURCE_1, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # PCM, id 0 dnl PCM_PLAYBACK_ADD(name, pcm_id, playback) From 5b9e6f7fcee57ed003846c88e931f1cfe57f8408 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:01:04 +0200 Subject: [PATCH 08/14] topology: sof-imx8qxp-cs42888.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-imx8qxp-cs42888.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/sof-imx8qxp-cs42888.m4 b/tools/topology/sof-imx8qxp-cs42888.m4 index 60f97bb8ca0d..85fe43fadc40 100644 --- a/tools/topology/sof-imx8qxp-cs42888.m4 +++ b/tools/topology/sof-imx8qxp-cs42888.m4 @@ -59,7 +59,7 @@ dnl period, priority, core, time_domain) DAI_ADD(sof/pipe-dai-playback.m4, 1, ESAI, 0, ESAI0-Codec, PIPELINE_SOURCE_1, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # capture DAI is ESAI0 using 2 periods # Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0 From b4b66b8ada7b2a45c8e47cb9f26a4d608ac2455f Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:01:26 +0200 Subject: [PATCH 09/14] topology: sof-imx8qxp-nocodec-sai.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-imx8qxp-nocodec-sai.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/sof-imx8qxp-nocodec-sai.m4 b/tools/topology/sof-imx8qxp-nocodec-sai.m4 index a68649632620..0bb539453158 100644 --- a/tools/topology/sof-imx8qxp-nocodec-sai.m4 +++ b/tools/topology/sof-imx8qxp-nocodec-sai.m4 @@ -52,7 +52,7 @@ dnl deadline, priority, core) DAI_ADD(sof/pipe-dai-playback.m4, 1, SAI, 1, NoCodec-0, PIPELINE_SOURCE_1, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) dnl PCM_PLAYBACK_ADD(name, pcm_id, playback) From 64cf2dcee2e39c580bdb596e2b928f43115352d0 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:01:38 +0200 Subject: [PATCH 10/14] topology: sof-imx8qxp-nocodec.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-imx8qxp-nocodec.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/sof-imx8qxp-nocodec.m4 b/tools/topology/sof-imx8qxp-nocodec.m4 index 464650fe828f..db979a74d4c9 100644 --- a/tools/topology/sof-imx8qxp-nocodec.m4 +++ b/tools/topology/sof-imx8qxp-nocodec.m4 @@ -52,7 +52,7 @@ dnl deadline, priority, core) DAI_ADD(sof/pipe-dai-playback.m4, 1, ESAI, 0, NoCodec-0, PIPELINE_SOURCE_1, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) dnl PCM_PLAYBACK_ADD(name, pcm_id, playback) From 912459b20751443cecb769a709eb54f88e177c87 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:01:53 +0200 Subject: [PATCH 11/14] topology: sof-imx8qxp-wm8960.m4: add time domain DMA Add time domain DMA explicitly to DAI_ADD. Signed-off-by: Jaska Uimonen --- tools/topology/sof-imx8qxp-wm8960.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/sof-imx8qxp-wm8960.m4 b/tools/topology/sof-imx8qxp-wm8960.m4 index fd3a92ab8e09..cc8245bb4c50 100644 --- a/tools/topology/sof-imx8qxp-wm8960.m4 +++ b/tools/topology/sof-imx8qxp-wm8960.m4 @@ -58,7 +58,7 @@ dnl period, priority, core, time_domain) DAI_ADD(sof/pipe-dai-playback.m4, 1, SAI, 1, be.wm8960-hifi, PIPELINE_SOURCE_1, 2, s24le, - 1000, 0, 0) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) # capture DAI is SAI1 using 2 periods # Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0 From 6bccee48cd6ae54358f71c7e8c9a7175e8fb88b2 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Thu, 14 Nov 2019 19:33:38 +0200 Subject: [PATCH 12/14] topology: sof-cml-rt5682.m4: remove extra parameters sof-cml-rt5682 dmic definition has some extra parameters that should be removed. Signed-off-by: Jaska Uimonen --- tools/topology/sof-cml-rt5682.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/sof-cml-rt5682.m4 b/tools/topology/sof-cml-rt5682.m4 index a45de3c8b555..a6b4e7cd26bd 100644 --- a/tools/topology/sof-cml-rt5682.m4 +++ b/tools/topology/sof-cml-rt5682.m4 @@ -159,7 +159,7 @@ DAI_ADD(sof/pipe-dai-playback.m4, DAI_ADD(sof/pipe-dai-capture.m4, 8, DMIC, 1, dmic16k, PIPELINE_SINK_8, 2, s32le, - 16, 1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER) + 1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER) # PCM Low Latency, id 0 From 1ec17c976a14822abe34d1fa63ee4fad1a947abe Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 15 Nov 2019 08:30:05 +0200 Subject: [PATCH 13/14] topology: sof-bdw-codec.m4: add scheduling dai to media pipe Media pipe is missing the scheduling component, so move it after the dai definition and add the scheduling component. Signed-off-by: Jaska Uimonen --- tools/topology/sof-bdw-codec.m4 | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tools/topology/sof-bdw-codec.m4 b/tools/topology/sof-bdw-codec.m4 index f678879c2f62..5310a75c0307 100644 --- a/tools/topology/sof-bdw-codec.m4 +++ b/tools/topology/sof-bdw-codec.m4 @@ -45,12 +45,27 @@ PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4, 1000, 0, 0, 48000, 48000, 48000) +# +# DAI configuration +# +# SSP port 0 is our only pipeline DAI +# + +# playback DAI is SSP0 using 2 periods +# Buffers use s24le format, 1000us deadline on core 0 with priority 0 +DAI_ADD(sof/pipe-dai-playback.m4, + 1, SSP, 0, Codec, + PIPELINE_SOURCE_1, 2, s24le, + 1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) + # PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le. # 2000us deadline on core 0 with priority 0 PIPELINE_PCM_ADD(sof/pipe-pcm-media.m4, 3, 1, 2, s32le, 2000, 0, 0, - 8000, 96000, 48000) + 8000, 96000, 48000, + SCHEDULE_TIME_DOMAIN_DMA, + PIPELINE_PLAYBACK_SCHED_COMP_1) # Connect pipelines together SectionGraph."PIPE_NAME" { @@ -62,19 +77,6 @@ SectionGraph."PIPE_NAME" { ] } -# -# DAI configuration -# -# SSP port 0 is our only pipeline DAI -# - -# playback DAI is SSP0 using 2 periods -# Buffers use s24le format, 1000us deadline on core 0 with priority 1 -DAI_ADD(sof/pipe-dai-playback.m4, - 1, SSP, 0, Codec, - PIPELINE_SOURCE_1, 2, s24le, - 1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) - # capture DAI is SSP0 using 2 periods # Buffers use s24le format, 1000us deadline on core 0 with priority 0 DAI_ADD(sof/pipe-dai-capture.m4, From 68824612ac9e5ffb2d95a375dbbbfa8fbaccef96 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Mon, 25 Nov 2019 11:20:40 +0200 Subject: [PATCH 14/14] topology: sof-hsw-rt5640.m4: remove topology Remove as unsupported platform. Signed-off-by: Jaska Uimonen --- tools/topology/CMakeLists.txt | 1 - tools/topology/sof-hsw-rt5640.m4 | 92 -------------------------------- 2 files changed, 93 deletions(-) delete mode 100644 tools/topology/sof-hsw-rt5640.m4 diff --git a/tools/topology/CMakeLists.txt b/tools/topology/CMakeLists.txt index d32ae8702d18..1150c74d4830 100644 --- a/tools/topology/CMakeLists.txt +++ b/tools/topology/CMakeLists.txt @@ -38,7 +38,6 @@ set(TPLGS "sof-byt-codec\;sof-byt-rt5682\;-DCODEC=RT5682" "sof-byt-codec\;sof-byt-da7213\;-DCODEC=DA7213" "sof-cnl-rt274\;sof-cnl-rt274" - "sof-hsw-rt5640\;sof-hsw-rt5640" "sof-apl-tdf8532\;sof-apl-tdf8532" "sof-apl-pcm512x\;sof-apl-pcm512x" "sof-apl-pcm512x-nohdmi\;sof-apl-pcm512x-nohdmi" diff --git a/tools/topology/sof-hsw-rt5640.m4 b/tools/topology/sof-hsw-rt5640.m4 deleted file mode 100644 index 70ae401bb41d..000000000000 --- a/tools/topology/sof-hsw-rt5640.m4 +++ /dev/null @@ -1,92 +0,0 @@ -# -# Topology for generic Haswell board with RT5640. -# - -# Include topology builder -include(`utils.m4') -include(`dai.m4') -include(`pipeline.m4') -include(`ssp.m4') - -# Include TLV library -include(`common/tlv.m4') - -# Include Token library -include(`sof/tokens.m4') - -# Include Haswell DSP configuration -include(`platform/intel/hsw.m4') - -# -# Define the pipelines -# -# PCM0 ----> volume ---------------+ -# |--low latency mixer ----> volume ----> SSP0 -# PCM1 -----> volume ----> SRC ----+ -# -# PCM0 <---- Volume <---- SSP0 -# - -# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s32le. -# 1000us deadline on core 0 with priority 1 -PIPELINE_PCM_ADD(sof/pipe-low-latency-playback.m4, - 1, 0, 2, s32le, - 1000, 1, 0, - 48000, 48000, 48000) - -# Low Latency capture pipeline 2 on PCM 0 using max 2 channels of s32le. -# 1000us deadline on core 0 with priority 0 -PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4, - 2, 0, 2, s32le, - 1000, 0, 0, - 48000, 48000, 48000) - -# PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le. -# 4000us deadline on core 0 with priority 0 -PIPELINE_PCM_ADD(sof/pipe-pcm-media.m4, - 3, 1, 2, s32le, - 4000, 0, 0, - 8000, 96000, 48000) - -# Connect pipelines together -SectionGraph."pipe-hsw-rt5640" { - index "0" - - lines [ - # media 0 - dapm(PIPELINE_MIXER_1, PIPELINE_SOURCE_3) - ] -} - -# -# DAI configuration -# -# SSP port 0 is our only pipeline DAI -# - -# playback DAI is SSP0 using 2 periods -# Buffers use s24le format, 1000us deadline on core 0 with priority 1 -DAI_ADD(sof/pipe-dai-playback.m4, - 1, SSP, 0, Codec, - PIPELINE_SOURCE_1, 2, s24le, - 1000, 1, 0) - -# capture DAI is SSP0 using 2 periods -# Buffers use s24le format, 1000us deadline on core 0 with priority 0 -DAI_ADD(sof/pipe-dai-capture.m4, - 2, SSP, 0, Codec, - PIPELINE_SINK_2, 2, s24le, - 1000, 0, 0) - -# PCM Low Latency -PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) - -# -# BE configurations - overrides config in ACPI if present -# -DAI_CONFIG(SSP, 0, 0, Codec, - SSP_CONFIG(I2S, SSP_CLOCK(mclk, 24000000, codec_mclk_in), - SSP_CLOCK(bclk, 2400000, codec_slave), - SSP_CLOCK(fsync, 48000, codec_slave), - SSP_TDM(2, 25, 3, 3), - SSP_CONFIG_DATA(SSP, 0, 24)))