On Fri, Jun 15, 2018 at 9:28 PM, Liam Girdwood liam.r.girdwood@linux.intel.com wrote:
On Fri, 2018-06-15 at 18:42 +0300, Daniel Baluta wrote:
Hi,
Does SOF firmware/driver supports loading a library and executing code from it?
Yes, this can currently done by :-
- Building the library (source or binary) into the base firmware image like
SRC, mixer etc is today.
- Building the library as a separate module that is stitched into the FW image
and loaded with base FW (like boot loader on APL/CNL).
and step 3 is work in progress (in module branch)
- Building the library as a separate module that is loaded and linked at
runtime (like Linux kernel modules).
Thanks Liam. Another question:
After implementing 3) how one can use the DSP to decode for example an mp3 file back into a pcm file.
I have some libraries that DSP can use to decode mp3 into pcm.
So, I assume I can use cplay to stream an mp3 file into a compress device then create a pipeline of components and buffers, but i'm not sure how do I get the pcm decoded bytes back. Ideally, would be to use crecord.
I'm still reading sof code. Any ideas would be great!
thanks, daniel.