On Thu, 14 Feb 2002, Kai Vehmanen wrote: > On Thu, 14 Feb 2002, Paul Davis wrote: > > >>- no xruns are detected even though after the timeout > >> alsa_driver_wait() took 56.4msec which is more than > > cards, i am starting to suspect part of jack's design rather than > > ALSA, but i have not yet managed to figure out what it could be. when > > i check the channel_area_t addresses used by jack, they also appear to > > be just as one would expect. > > It seems that the problem is: > > - engine->process() is possibly a slow operation > - ALSA is unable to detect xruns inside mmap_begin()->mmap_commit() > code block
I wonder why you say this. There is really very short time period in which the hardware pointer can cross the application pointer and PCM code won't react on this situation. There are no locks for the xrun detection between mmap_begin() and mmap_commit(). If you want to debug the real problem, try to print hw_ptr and appl_ptr pointers when sound is garbled. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel