Skip to content

Commit

Permalink
topology: Add Waves codec to MT8188 topology
Browse files Browse the repository at this point in the history
Modify sof-mt8188-mt6359 topology so Waves codec can be added
to playback in case 'WAVES' is defined.

Signed-off-by: barry.jan <[email protected]>
  • Loading branch information
barry-waves authored and lgirdwood committed Nov 29, 2023
1 parent 2ce1f9e commit 5cf1c9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/arch/xtensa/configs/override/mt8188_chrome_waves.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_COMP_MODULE_ADAPTER=y
CONFIG_WAVES_CODEC=y
1 change: 1 addition & 0 deletions tools/topology/topology1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ set(TPLGS
"sof-mt8186-mt6366\;sof-mt8186-dts\;-DDTS=`DTS'"
"sof-mt8186-mt6366\;sof-mt8186-mt6366-rt1019-rt5682s-waves\;-DWAVES=1"
"sof-mt8188-mt6359\;sof-mt8188"
"sof-mt8188-mt6359\;sof-mt8188-waves\;-DWAVES=1"

"sof-acp-renoir\;sof-acp"
"sof-rn-rt5682-rt1019\;sof-rn-rt5682-rt1019"
Expand Down
8 changes: 6 additions & 2 deletions tools/topology/topology1/sof-mt8188-mt6359.m4
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,23 @@ dnl period, priority, core,
dnl pcm_min_rate, pcm_max_rate, pipeline_rate,
dnl time_domain, sched_comp)

define(`ENDPOINT_NAME', `Speakers')
# Low Latency playback pipeline 1 on PCM 16 using max 2 channels of s16le
# Set 1000us deadline with priority 0 on core 0
PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4,
PIPELINE_PCM_ADD(ifdef(`WAVES', sof/pipe-waves-codec-playback.m4, sof/pipe-passthrough-playback.m4),
1, 16, 2, s16le,
1000, 0, 0,
48000, 48000, 48000)
undefine(`ENDPOINT_NAME')

define(`ENDPOINT_NAME', `Headphones')
# Low Latency playback pipeline 2 on PCM 17 using max 2 channels of s16le
# Set 1000us deadline with priority 0 on core 0
PIPELINE_PCM_ADD(sof/pipe-passthrough-playback.m4,
PIPELINE_PCM_ADD(ifdef(`WAVES', sof/pipe-waves-codec-playback.m4, sof/pipe-passthrough-playback.m4),
2, 17, 2, s16le,
1000, 0, 0,
48000, 48000, 48000)
undefine(`ENDPOINT_NAME')

# Low Latency capture pipeline 3 on PCM 18 using max 2 channels of s16le
# Set 2000us deadline with priority 0 on core 0
Expand Down

0 comments on commit 5cf1c9c

Please sign in to comment.