[Sound-open-firmware] Loading external library

Daniel Baluta daniel.baluta at gmail.com
Wed Jun 20 16:52:42 CEST 2018


On Fri, Jun 15, 2018 at 9:28 PM, Liam Girdwood
<liam.r.girdwood at 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 :-
>
> 1) Building the library (source or binary) into the base firmware image like
> SRC, mixer etc is today.
>
> 2) 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)
>
> 3) 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.


More information about the Sound-open-firmware mailing list