mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
The Advanced Linux Sound Architecture (ALSA) - library
From: Sascha Sommer <saschasommer@freenet.de> this is a fix for bug 0001559. Unlike my first guesses the real problem is not in the kernel driver but in alsa-lib. Whenever the current dmix status is xrun and snd_pcm_dmix_drain gets called the process will hang forever in the poll function. The reason is that poll gets called even though the timer already stopped. As described in the bugtracking system this bug was not noticable with alsa versions that used the old IOCTLS because the SNDRV_TIMER_IOCTL_STOP ioctl never reached the timer kernel module. Attached patch fixes this problem for alsa-lib 1.0.10 by simply calling snd_pcm_dmix_drop when snd_pcm_dmix_drain gets called in the state SND_PCM_STATE_XRUN. |
||
|---|---|---|
| alsalisp | ||
| aserver | ||
| doc | ||
| include | ||
| modules | ||
| src | ||
| test | ||
| utils | ||
| acinclude.m4 | ||
| ChangeLog | ||
| configure.in | ||
| COPYING | ||
| cvscompile | ||
| INSTALL | ||
| Makefile.am | ||
| MEMORY-LEAK | ||
| NOTES | ||
| TODO | ||