[LAD] [PATCH] lash: robustify alsa-sequencer event reception

From: Karsten Wiese <annabellesgarden@email-addr-hidden>
Date: Tue Aug 21 2007 - 22:29:13 EEST

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

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev

Received on Wed Aug 22 00:15:07 2007

This archive was generated by hypermail 2.1.8 : Wed Aug 22 2007 - 00:15:07 EEST