On Thu, 11 Dec 2003, Alfons Adriaensen wrote:
> On Thu, Dec 11, 2003 at 09:21:01AM +0100, Jaroslav Kysela wrote:
>
> > To be 100% correct, in the driver, there is very small window where the
> > hardware might be in xrun state, but we cannot detect this situation:
> >
> > disable_interrupts();
> > pos = get_current_position();
> > <--- DMA transfer occured here and position (pos) was
> > on last valid sample -->
> > if (xrun(pos))
> > do_xrun_handling();
> > enable_interrupts();
>
> I'm involved in the development of an application (sonar) where the
> continuity of the signal is essential, but a few corrupted samples
> every now and then won't do any harm (the S/N ratio is -60 dB anyway).
> Is it possible in ALSA to make the driver just ignore short xruns,
> and continue without the need to restart ?
Yes, stop_threshold is what you want to set. If this value is equal to
boundary (sw_params) no xruns are detected. If this value is above ring
buffer size, then xruns will be detected later.
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel