[alsa-devel] snd_pcm_drop causing lockup with DMix

Jaroslav Kysela perex at perex.cz
Mon Mar 1 07:53:25 CET 2010


On Sun, 28 Feb 2010, John Lindgren wrote:

> Unfortunately, it doesn't make a difference.

And this one?

diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c
index d9e596e..ae32fab 100644
--- a/src/pcm/pcm_direct.c
+++ b/src/pcm/pcm_direct.c
@@ -540,7 +540,6 @@ void snd_pcm_direct_clear_timer_queue(snd_pcm_direct_t *dmix)
  int snd_pcm_direct_timer_stop(snd_pcm_direct_t *dmix)
  {
  	snd_timer_stop(dmix->timer);
-	snd_pcm_direct_clear_timer_queue(dmix);
  	return 0;
  }

@@ -1274,6 +1273,7 @@ int snd_pcm_direct_set_timer_params(snd_pcm_direct_t *dmix)
  	snd_timer_params_set_ticks(params, 1);
  	if (dmix->tread) {
  		filter = (1<<SND_TIMER_EVENT_TICK) |
+			 (1<<SND_TIMER_EVENT_STOP) |
  			 dmix->timer_event_suspend |
  			 dmix->timer_event_resume;
  		snd_timer_params_set_filter(params, filter);

-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list