[alsa-devel] Interrupts and kmalloc in alsa modules

Lee Revell rlrevell at joe-job.com
Wed Apr 11 03:11:59 CEST 2007


On 4/10/07, Ciaccia <ciacciax at yahoo.com> wrote:
> Hi Lee,
> Your guess is correct. The buffers are allocated in
> the trigger callback, I attached the module source to
> the my email but it got lost...?!?
>
> Sorry for that, maybe this time it's better:
> http://www.pecore.ch/test/ep93xx-i2s.c.txt

OK so allocate them in the prepare callback instead, problem solved.
See "Writing an ALSA driver" doc for details.

BTW why does your driver do all that sample format conversion, rather
than just exposing the HW supported format and letting alsa-lib do the
conversion for you?

Lee


More information about the Alsa-devel mailing list