Skip to content

Conversation

@checkupup
Copy link
Contributor

Added sof-ptl-cs42l43-agg-l3-cs35l56-l2-dax.tplg for PTL platform.

@checkupup checkupup changed the title Adapted to PTL platform Added sof-ptl-cs42l43-agg-l3-cs35l56-l2-dax.tplg for PTL platform Dec 3, 2025
@sofci
Copy link
Collaborator

sofci commented Dec 3, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

@johnylin76
Copy link
Contributor

I guess you could un-draft this PR to start the review then

@checkupup checkupup marked this pull request as ready for review December 4, 2025 08:18
@kv2019i kv2019i requested a review from bardliao December 4, 2025 13:44
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @checkupup , looks good! Some comments inline, but nothing really that would block this PR.


IncludeByKey.SDW_SPK_ENHANCED_PLAYBACK {
"true" {
IncludeByKey.USE_DAX {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation is a bit off here, but it seems there are indentation inconsistencies in this file already before, so no reason to block this PR. Somebody needs to clean this up and can be done in a separate PR.

@ranj063 @jsarha @bardliao @singalsu The "IncludeByKey" method is proving to be very useful, but we need to start thinking about how to scale this. Having four or more layers of nested conditional branches in the same alsaconf file, is getting out of hand. Not an issue for this PR, but something to put in our backlog for improvement.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I very much agree in general, maybe a little in this case too. Our nocodec topology is very good, or actually bad, example of this. It has two topologies written into one, the passthrough, and the one with all the bells and whistles we could not think a better place to put them in for testing. I tried to separate those two toplogies some time back to make it more manageable, but failed. It should be a straight forward job, but the nested IncludeByKey section with intersecting variables made it too big a task to accomplish in a day or two. We should avoid ending up in the similar situation with other topologies.

Added sof-ptl-cs42l43-agg-l3-cs35l56-l2-dax.tplg for
PTL platform.

Signed-off-by: Jun Lai <jun.lai@dolby.com>
Copy link
Contributor Author

@checkupup checkupup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this PR is ready for merging

# LLEXT
CONFIG_LLEXT_HEAP_SIZE=32

# For sof-ptl-cs42l43-agg-l3-cs35l56-l2-dax.tplg
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @johnylin76, the following modules are required for sof-ptl-cs42l43-agg-l3-cs35l56-l2-dax.tplg, but there is currently no commit that actively includes them. However, other standalone modules should not be introduced in dax_overlay.conf. Is there a suitable location to introduce the following modules to avoid missing dependencies when generating sof-ptl-cs42l43-agg-l3-cs35l56-l2-dax.tplg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed this modules in dax_overlay.conf.

# PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-ptl-cs42l43-agg-l3-cs35l56-l2-4ch.bin,\
# HDMI1_ID=7,HDMI2_ID=8,HDMI3_ID=9,DEEPBUFFER_FW_DMA_MS=10,DEEP_BUF_SPK=true,\
# BT_PCM_ID=20,BT_ID=10,BT_PCM_NAME=Bluetooth,ADD_BT=true,USE_DAX=true,DOLBY_DAX_CORE_ID=0"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @johnylin76 , I'm not inclined to keep this change because BT_ID changed from 10 to 8, and BT_ID=8 doesn't work on my device. I have no way of knowing about these physical connection changes. Can I just remove this modification outright?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK to keep this tplg in main branch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot use BT_ID=8 because you already set HDMI2_ID=8 in your config.

As this tplg build is based on sof-ptl-cs42l43-agg-l3-cs35l56-l2 (line111), you should align all configs with that except for DAX-related ones, i.e. +USE_DAX=true,DOLBY_DAX_CORE_ID=0

@lgirdwood
Copy link
Member

Seems like this PR is ready for merging

@johnylin76 if your testing on your end we can wait or we can merge and fix any issue incrementally ?

# PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-ptl-cs42l43-agg-l3-cs35l56-l2-4ch.bin,\
# HDMI1_ID=7,HDMI2_ID=8,HDMI3_ID=9,DEEPBUFFER_FW_DMA_MS=10,DEEP_BUF_SPK=true,\
# BT_PCM_ID=20,BT_ID=10,BT_PCM_NAME=Bluetooth,ADD_BT=true,USE_DAX=true,DOLBY_DAX_CORE_ID=0"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot use BT_ID=8 because you already set HDMI2_ID=8 in your config.

As this tplg build is based on sof-ptl-cs42l43-agg-l3-cs35l56-l2 (line111), you should align all configs with that except for DAX-related ones, i.e. +USE_DAX=true,DOLBY_DAX_CORE_ID=0

]

IncludeByKey.SDW_SPK_ENHANCED_PLAYBACK {
"true" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I feel that USE_DAX should not be conditioned under SDW_SPK_ENHANCED_PLAYBACK. It would be better if we use switch-case structure rather than nested if. e.g.

IncludeByKey.SDW_SPK_ENHANCED_PROC {
        "DRC" {
                ...
        }
        "DAX" {
                ...
        }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants