Skip to content

Commit

Permalink
topology: topology1: switch all imx8 topologies to timer domain
Browse files Browse the repository at this point in the history
imx8 and imx8x now use timer domain with Zephyr native
drivers so switch all topologies to timer domain.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 committed Feb 22, 2024
1 parent 4639d7c commit 2c0b416
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-capture.m4,
1, SAI, 1, sai1-wm8960-hifi,
PIPELINE_SINK_1, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# PCM Low Latency, id 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, SAI, 1, sai1-wm8960-hifi,
PIPELINE_SOURCE_1, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# PCM Low Latency, id 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, SAI, 1, DAI_BE_NAME,
PIPELINE_SOURCE_1, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


# PCM Low Latency, id 0
Expand Down
4 changes: 2 additions & 2 deletions tools/topology/topology1/development/sof-imx8-src-cs42888.m4
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, ESAI, 0, esai0-cs42888,
PIPELINE_SOURCE_1, 2, s24le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# capture DAI is ESAI0 using 2 periods
# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
2, ESAI, 0, esai0-cs42888,
PIPELINE_SINK_2, 2, s24le,
1000, 0, 0)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# PCM Low Latency, id 0

Expand Down
4 changes: 2 additions & 2 deletions tools/topology/topology1/development/sof-imx8-src-wm8960.m4
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, SAI, SAI_INDEX, DAI_BE_NAME,
PIPELINE_SOURCE_1, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# capture DAI is SAI_SAI_INDEX using 2 periods
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
2, SAI, SAI_INDEX, DAI_BE_NAME,
PIPELINE_SINK_2, 2, s32le,
1000, 0, 0)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


# PCM Low Latency, id 0
Expand Down
8 changes: 4 additions & 4 deletions tools/topology/topology1/sof-imx8-compr-wm8960-mixer.m4
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ define(`DAI_BE_NAME', concat(concat(`sai', SAI_INDEX), STREAM_NAME))
DAI_ADD(sof/pipe-mixer-volume-dai-playback.m4,
1, SAI, SAI_INDEX, DAI_BE_NAME,
NOT_USED_IGNORED, 2, s32le,
1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA,
1000, 1, 0, SCHEDULE_TIME_DOMAIN_TIMER,
2, 48000)

# PCM Playback pipeline 3 on PCM 0 using max 2 channels of s32le.
Expand All @@ -88,7 +88,7 @@ PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4,
3, 0, 2, s32le,
1000, 0, 0,
48000, 48000, 48000,
SCHEDULE_TIME_DOMAIN_DMA,
SCHEDULE_TIME_DOMAIN_TIMER,
PIPELINE_PLAYBACK_SCHED_COMP_1)

# Compress Playback pipeline 4 on Compr 1 using max 2 channels of s32le.
Expand All @@ -98,7 +98,7 @@ PIPELINE_PCM_ADD(sof/pipe-host-codec-adapter-playback.m4,
4, 1, 2, s32le,
5000, 0, 0,
48000, 48000, 48000,
SCHEDULE_TIME_DOMAIN_DMA,
SCHEDULE_TIME_DOMAIN_TIMER,
PIPELINE_PLAYBACK_SCHED_COMP_1)

# Connect pipelines together
Expand All @@ -120,7 +120,7 @@ SectionGraph."PIPE_NAME" {
DAI_ADD(sof/pipe-dai-capture.m4,
2, SAI, SAI_INDEX, DAI_BE_NAME,
PIPELINE_SINK_2, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


# PCM definitions
Expand Down
8 changes: 4 additions & 4 deletions tools/topology/topology1/sof-imx8-cs42888-mixer.m4
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4,
DAI_ADD(sof/pipe-mixer-volume-dai-playback.m4,
1, ESAI, 0, esai0-cs42888,
NOT_USED_IGNORED, 2, s24le,
1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA,
1000, 1, 0, SCHEDULE_TIME_DOMAIN_TIMER,
2, 48000)

# PCM Playback pipeline 3 on PCM 0 using max 2 channels of s24le.
Expand All @@ -56,7 +56,7 @@ PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4,
3, 0, 2, s24le,
1000, 0, 0,
48000, 48000, 48000,
SCHEDULE_TIME_DOMAIN_DMA,
SCHEDULE_TIME_DOMAIN_TIMER,
PIPELINE_PLAYBACK_SCHED_COMP_1)

# PCM Playback pipeline 4 on PCM 1 using max 2 channels of s24le.
Expand All @@ -66,7 +66,7 @@ PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4,
4, 1, 2, s24le,
5000, 0, 0,
48000, 48000, 48000,
SCHEDULE_TIME_DOMAIN_DMA,
SCHEDULE_TIME_DOMAIN_TIMER,
PIPELINE_PLAYBACK_SCHED_COMP_1)

# Connect pipelines together
Expand All @@ -88,7 +88,7 @@ SectionGraph."PIPE_NAME" {
DAI_ADD(sof/pipe-dai-capture.m4,
2, ESAI, 0, esai0-cs42888,
PIPELINE_SINK_2, 2, s24le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


# PCM definitions
Expand Down
4 changes: 2 additions & 2 deletions tools/topology/topology1/sof-imx8-cs42888.m4
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, ESAI, 0, esai0-cs42888,
PIPELINE_SOURCE_1, 2, s24le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# capture DAI is ESAI0 using 2 periods
# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
2, ESAI, 0, esai0-cs42888,
PIPELINE_SINK_2, 2, s24le,
1000, 0, 0)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# PCM Low Latency, id 0

Expand Down
2 changes: 1 addition & 1 deletion tools/topology/topology1/sof-imx8-nocodec-sai.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

dnl PCM_PLAYBACK_ADD(name, pcm_id, playback)

Expand Down
2 changes: 1 addition & 1 deletion tools/topology/topology1/sof-imx8-nocodec.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

dnl PCM_PLAYBACK_ADD(name, pcm_id, playback)

Expand Down
8 changes: 4 additions & 4 deletions tools/topology/topology1/sof-imx8-wm8960-cs42888.m4
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,28 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, ESAI, 0, esai0-cs42888,
PIPELINE_SOURCE_1, 2, s24le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# capture DAI is ESAI0 using 2 periods
# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
2, ESAI, 0, esai0-cs42888,
PIPELINE_SINK_2, 2, s24le,
1000, 0, 0)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# playback DAI is SAI1 using 2 periods
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-playback.m4,
3, SAI, 1, sai1-wm8960-hifi,
PIPELINE_SOURCE_3, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# capture DAI is SAI1 using 2 periods
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
4, SAI, 1, sai1-wm8960-hifi,
PIPELINE_SINK_4, 2, s32le,
1000, 0, 0)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


dnl PCM_DUPLEX_ADD(name, pcm_id, playback, capture)
Expand Down
2 changes: 1 addition & 1 deletion tools/topology/topology1/sof-imx8-wm8960-kwd.m4
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
1, SAI, 1, sai1-wm8960-hifi,
PIPELINE_SINK_1, 2, s32le,
KWD_PIPE_SCH_DEADLINE_US,
0, 0, SCHEDULE_TIME_DOMAIN_DMA)
0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# keyword detector pipe
dnl PIPELINE_PCM_ADD(pipeline,
Expand Down
8 changes: 4 additions & 4 deletions tools/topology/topology1/sof-imx8-wm8960-mixer.m4
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define(`DAI_BE_NAME', concat(concat(`sai', SAI_INDEX), STREAM_NAME))
DAI_ADD(sof/pipe-mixer-volume-dai-playback.m4,
1, SAI, SAI_INDEX, DAI_BE_NAME,
NOT_USED_IGNORED, 2, s32le,
1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA,
1000, 1, 0, SCHEDULE_TIME_DOMAIN_TIMER,
2, `RATE')

# PCM Playback pipeline 3 on PCM 0 using max 2 channels of s32le.
Expand All @@ -67,7 +67,7 @@ PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4,
3, 0, 2, s32le,
1000, 0, 0,
`RATE', `RATE', `RATE',
SCHEDULE_TIME_DOMAIN_DMA,
SCHEDULE_TIME_DOMAIN_TIMER,
PIPELINE_PLAYBACK_SCHED_COMP_1)

# PCM Playback pipeline 4 on PCM 1 using max 2 channels of s32le.
Expand All @@ -77,7 +77,7 @@ PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4,
4, 1, 2, s32le,
5000, 0, 0,
`RATE', `RATE', `RATE',
SCHEDULE_TIME_DOMAIN_DMA,
SCHEDULE_TIME_DOMAIN_TIMER,
PIPELINE_PLAYBACK_SCHED_COMP_1)

# Connect pipelines together
Expand All @@ -99,7 +99,7 @@ SectionGraph."PIPE_NAME" {
DAI_ADD(sof/pipe-dai-capture.m4,
2, SAI, SAI_INDEX, DAI_BE_NAME,
PIPELINE_SINK_2, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


# PCM definitions
Expand Down
4 changes: 2 additions & 2 deletions tools/topology/topology1/sof-imx8-wm8960.m4
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ dnl period, priority, core, time_domain)
DAI_ADD(sof/pipe-dai-playback.m4,
1, SAI, SAI_INDEX, DAI_BE_NAME,
PIPELINE_SOURCE_1, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# capture DAI is SAI_SAI_INDEX using 2 periods
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
2, SAI, SAI_INDEX, DAI_BE_NAME,
PIPELINE_SINK_2, 2, s32le,
1000, 0, 0)
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)


# PCM Low Latency, id 0
Expand Down

0 comments on commit 2c0b416

Please sign in to comment.