Skip to content

ASoC: SOF: keep the topology module parameter on DT platforms - #6078

Open
ursus161 wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ursus161:fix/sof-dt-tplg-param
Open

ursus161 wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ursus161:fix/sof-dt-tplg-param

Conversation

@ursus161

@ursus161 ursus161 commented Dec 3, 2026

Copy link
Copy Markdown

A topology name given with the tplg_filename module parameter is saved in sof_pdata->tplg_filename before the machine is selected. On DT platforms sof_of_machine_select() then overwrites it unconditionally with the machine table entry, so the parameter is ignored.

With an IPC type override this also breaks the IPC selection: the file check looks for the machine's default topology in the IPC4 topology directory, does not find it and falls back to IPC3, e.g. on i.MX8MP:

sof-audio-of-imx8 3b6e8000.dsp: Using fallback IPC type 0 (requested type was 1)

Only take the machine's topology name when none was given, as the HDA machine selection already does.

Fixes: d0ae9dc ("ASoC: SOF: Move sof_of_machine_select() to core.c from sof-of-dev.c")

A topology name given with the tplg_filename module parameter is saved
in sof_pdata->tplg_filename before the machine is selected. On DT
platforms sof_of_machine_select() then overwrites it unconditionally
with the machine table entry, so the parameter is ignored.

With an IPC type override this also breaks the IPC selection: the file
check looks for the machine's default topology in the IPC4 topology
directory, does not find it and falls back to IPC3, e.g. on i.MX8MP:

  sof-audio-of-imx8 3b6e8000.dsp: Using fallback IPC type 0 (requested type was 1)

Only take the machine's topology name when none was given, as the HDA
machine selection already does.

Fixes: d0ae9dc ("ASoC: SOF: Move sof_of_machine_select() to core.c from sof-of-dev.c")
Signed-off-by: Stefan Ghetu <stefan.ghetu@nxp.com>
@sofci

sofci commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

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.

2 participants