[LAD] [PATCH] lash: robustify alsa-sequencer event reception
Karsten Wiese
annabellesgarden at yahoo.de
Tue Aug 21 19:29:13 UTC 2007
Hi,
trying lash-0.5.3 here, weired things happened:
I set up a simple project with only 1 lash_synth, the lash_synth
was connected to an alsa-sequencer keyboard port and to jack.
After saving, closing and restarting that lash-project,
the alsa-sequencer connection wasn't restored, until I launched an
innocent "aconnect -il" in an other terminal.
Funny, no?
Reason is I think, that after polling for alsa-seq events, always
only 1 event was red via snd_seq_event_input().
Attached patch cures & simplifies things by avoiding the poll() call
and using pthread_cancel() to stop the thread.
Karsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lash-alsa_seq.patch
Type: text/x-diff
Size: 4216 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20070821/d416b631/attachment.patch>
More information about the Linux-audio-dev
mailing list