Difference between revisions of "RidgeRun LeopardBoard SDK Hints"

From eLinux.org
Jump to: navigation, search
(Created page with '== Solutions to known issues == === 'division by zero in kernel' error when I try to use ALSA input === This is a known issue that has been discussed on the ASOC mailing list. …')
 
m
Line 1: Line 1:
 
== Solutions to known issues ==
 
== Solutions to known issues ==
  
=== 'division by zero in kernel' error when I try to use ALSA input ===
+
=== 'division by zero' in kernel error when I try to use ALSA input ===
  
 
This is a known issue that has been discussed on the ASOC mailing list. The problem is
 
This is a known issue that has been discussed on the ASOC mailing list. The problem is
Line 15: Line 15:
 
works after running arecord or aplay first.
 
works after running arecord or aplay first.
  
Apply the asoc-davinci-pcm.patch to the kernel 2.6.29 to resolve this issue.
+
Apply the [[Media:Asoc-davinci-pcm.patch]] to the kernel 2.6.29 to resolve this issue.

Revision as of 11:23, 10 December 2009

Solutions to known issues

'division by zero' in kernel error when I try to use ALSA input

This is a known issue that has been discussed on the ASOC mailing list. The problem is that the function davinci_pcm_enqueue_dma performs this operations:

data_type = prtd->params->data_type;
count = period_size / data_type;

The first time, data_type is set to zero, so we get the error Division by zero in kernel. This is the reason why the pipe arecord | aplay works after running arecord or aplay first.

Apply the Media:Asoc-davinci-pcm.patch to the kernel 2.6.29 to resolve this issue.