[alsa-devel] pcm timer resolution out of range (rate = 0, period_size = 1), Division by zero in kernel

Raymond Yau superquad.vortex2 at gmail.com
Fri Dec 23 03:06:05 CET 2011


2011/12/22, Appalayagari Sreedhar <sreecha01 at gmail.com>:
> Hi,
>
> We are working with 2.6.32 kernel. we are working with ALSA model
> codec driver for conexant chipset. we are using OSS emulation for
> audio playback and recording.
>
> we are not setting the fragmenttaion block using OSS ioctl function
> (SNDCTL_DSP_SETFRAGMENT) , assuming that it will be taken care by the
> ALSA framework based on the sampling rate, bits per sample etc.
>
> we are facing the below issue randomly.
>
> ALSA sound/core/pcm_timer.c:71: -calling VIDIOC_pcm timer resolution
> out of range (rate = 0, period_size = 1)
> Division by zero in kernel.

Do your controller really support 1 frame per period (period_size = 1) ?

What is the value of .period_bytes_min and other parameters in
snd_pcm_hardware and format supported ?

>
> We tried to program the fragmentation block after the sampling rate,
> bits per sample etc are configured. it is working fine for 5 or 6
> iterations for recording and playback.
>
> after that the audio quality is gone bad. the audio is not smooth and
> it is sharp.
>
> could you please help to resolve this problem.
>


More information about the Alsa-devel mailing list