alsa problem with stopping playback
Mike Gorse
mgorse at mgorse.dhs.org
Sat Dec 22 11:22:12 UTC 2007
Hi Rynhardt,
I ran into a similar problem with eflite and speech-dispatcher a while
ago. There is a bug in alsa-lib that you might be running into. You
could try building alsa-lib with the following patch:
--- alsa-lib-1.0.15/src/pcm/pcm_dmix.c 2007-10-15 04:45:26.000000000 -0400
+++ alsa-lib-hg20071222/src/pcm/pcm_dmix.c 2007-12-10 20:00:04.000000000 -0500
@@ -652,9 +614,10 @@
if (dmix->client)
snd_pcm_direct_client_discard(dmix);
shm_sum_discard(dmix);
- if (snd_pcm_direct_shm_discard(dmix))
- snd_pcm_direct_semaphore_discard(dmix);
- else
+ if (snd_pcm_direct_shm_discard(dmix)) {
+ if (snd_pcm_direct_semaphore_discard(dmix))
+ snd_pcm_direct_semaphore_up(dmix, DIRECT_IPC_SEM_CLIENT);
+ } else
snd_pcm_direct_semaphore_up(dmix, DIRECT_IPC_SEM_CLIENT);
free(dmix->bindings);
pcm->private_data = NULL;
or just downloading a recent alsa-lib snapshot from
ftp://ftp.suse.de/pub/projects/alsa/snapshot/lib and building it (the fix
is in their hg tree, but it was made post-1.0.15, so there is no release
that includes it yet.)
Hth,
-- Mike Gorse / AIM:linvortex / http://mgorse.freeshell.org --
On Sat, 22 Dec 2007, Rynhardt P Kruger wrote:
> Hi,
>
> I have a strange problem with alsa on my grml (debian unstable) machine.
> When ever I play some music in a player and press the stop button, the
> player and speech-dispatcher locks up and I have to kill the music
> player by hand.
>
> I have tested this with audacious, rhythmbox, and mpd (with mpc and
> other clients).
>
> I have search google for people with this problem before me, but with no
> sucsess.
>
> I hope someone can help me.
>
> Thanks in advance.
>
> Take care,
> Rynhardt
>
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
>
More information about the Blinux-list
mailing list