thesofproject / sof

Sound Open Firmware
Other
564 stars 320 forks source link

[FEATURE] static topology IPC builder #1556

Open lgirdwood opened 5 years ago

lgirdwood commented 5 years ago

Is your feature request related to a problem? Please describe. Static topology is currently hard coded into FW binaries as C code. This is inflexible and does not support reuse of existing tools. We need to be able to stitch in topology data as an array of IPC messages into the FW binary (as an ELF section).

Describe the solution you'd like 1) Small cmd line tool that converts native kernel topology binaries into IPC topology. 2) Kconfig option to pass in file name of IPC topology in 1) and stitch into FW image.

Additional context @lyakh @ranj063 and @singalsu have all coded parts of this for test bench, fuzzer etc. Needs to be consolidated and integrated as library code that can be used by fuzzer, test bench, and 1).

ranj063 commented 5 years ago

@lgirdwood @kv2019i the testbench only does the tplg binary parsing but skips the IPC. But the fuzzer branch has the complete code for this.

lgirdwood commented 5 years ago

@ranj063 great thanks, we can separate this code out and build as a library that can bus used by fuzzer, test bench and FW.

kv2019i commented 5 years ago

After discussion with @lgirdwood tagging with P3 and removing Notable for now.

lgirdwood commented 3 years ago

@ranj063 @singalsu I guess we can load topoies in testbench now ? Can we close ?

lgirdwood commented 3 years ago

@juimonen fyi - as you mentioned today - we also need to use in other places too.

lgirdwood commented 3 years ago

Static C topology removed from FW. Testbench uses topology library. Moved to v1.9 for completion of Testbench library in FW.

kv2019i commented 1 year ago

This is still a valid item, but currently no development is ongoing, so moving this to TBD milestone.

lgirdwood commented 1 year ago

WIP: See lrg/topic/plugin branch