11 Apr
2007
11 Apr
'07
3:11 a.m.
On 4/10/07, Ciaccia ciacciax@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