[Sound-open-firmware] Zephyr memory allocation from heap

Daniel Baluta daniel.baluta at gmail.com
Mon Aug 22 16:07:32 CEST 2022


+ Andy, as he also worked on the initial zephyr with SOF.

On Mon, Aug 22, 2022 at 5:04 PM Daniel Baluta <daniel.baluta at gmail.com> wrote:
>
> Hi guys,
>
> Did you encountered any problems with memory allocations when
> switching to Zephyr?
>
> I'm facing a very strange issue with a playback pipeline with module
> adapter (MP3) where
> it looks like the DAI hits underruns as soon as I start the pipeline.
>
> With normal PCM playback everything works fine.
>
> I think it might be a problem in the sense Zephyr allocates memory
> and/or Cadence
> memory alignment requirements?
>
> Looks like as soon as I change this:
>
> -#define PLATFORM_DCACHE_ALIGN  sizeof(void *)
> +#define PLATFORM_DCACHE_ALIGN  32
>
>
> everything seems to work.
>
> But I cannot find any logical explanation.


More information about the Sound-open-firmware mailing list