DMIC memory issue (NCS 3.2.2)

Hello,

I'm using dmic module for sampling audio data from microphone. Recently I updated NCS to 3.2.2 and I started observing the following log: "Failed to allocate buffer: -12".
If I understand dmic sample correctly, I don't have to free the slab memory myself in case reading fails but only after a successful reading. I handled it this way on NCS 3.1.0 and it worked perfectly fine.

Regards
Filip

  • Hello,

    I do believe there are some dmic test and sample examples between the two ncs releases that potentially may show any difference or can be used as reference, but to comment on your problem in specific, here are a few things you can try:

    - increase block count

    - increase queue-size property in device tree for the pdm node

    - read dmic_read() more frequently

    Kenneth

Related