[alsa-devel] my driver can't reproduce continuously
broonie at opensource.wolfsonmicro.com
Thu Jul 23 12:06:40 CEST 2009
On Thu, Jul 23, 2009 at 06:58:59PM +0900, Kuninori Morimoto wrote:
> o why aplay say underrun!!! ?
> where should I check ?
Underrun means that the driver is consuming data more quickly than aplay
is able to provide it. This may mean that there's some system
performance problem or it may be due to your driver is consuming data
more quickly than it should and causing problems further up the stack.
> o sometimes BUG_ON is called when I use kmalloc on
> snd_soc_dai_ops :: trigger.
> This BUG_ON came frome cache_alloc_refill.
> Should I not use kmalloc on trigger function ?
You shouldn't be using kmalloc() there, no - the trigger function is
called from an atomic context where only very limited memory allocation
I'll have a look at your code, but it's likely to be a few days before I
have time to do so.
More information about the Alsa-devel