multi_pcm poll timeout error
The pcm_multi plugin doesn't work currently with jackd in duplex mode. It's OK for either capture or playback with multi cards, but a poll time out occurs in duplex mode. Several users have experienced this problem with multiple ice1712 and RME cards.
After some testing I found the following:
alsa-lib-1.0.8 works
alsa-lib-1.0.9rc1 onwards gives poll time out
These were both tested with a recent version of jackd (0.100.7 with MMAP_COMPLEX patch) on Debian 3.1.
Don't know if it's relevant, but this appears to be about the time pcm_generic.h was added.
John
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Quoted 8 lines · John Rigg
The
pcm_multiplugin doesn't work currently with jackd in duplex mode. It's OK for either capture or playback with multi cards, but a poll time out occurs in duplex mode. Several users have experienced this problem with multiple ice1712 and RME cards.
After some testing I found the following:alsa-lib-1.0.8 works
alsa-lib-1.0.9rc1 onwards gives poll time out
The following patch comments out the offending code in alsa-lib-1.0.10/src/pcm/pcm_multi.c and allows jackd to run in duplex mode with multiple cards.
Obviously this isn't a proper fix (the code must have been added for a reason) but it's working so far on my system.
John
pcm/pcm_multi.c renamed from pcm/pcm_multi.c.orig +4 -4
@@ -597,7 +597,7 @@ static int snd_pcm_multi_resume(snd_pcm_return err; } -static int snd_pcm_multi_link_fd_failed (snd_pcm_t *pcm,int fd) +/* static int snd_pcm_multi_link_fd_failed(snd_pcm_t *pcm, int fd) { snd_pcm_multi_t *multi = pcm->private_data; unsigned int i;
@@ -638,7 +638,7 @@ static int snd_pcm_multi_unlink(snd_pcm_multi->slaves[i].linked = 0; } return 0; -} +} */ static snd_pcm_sframes_t snd_pcm_multi_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset,
@@ -726,9 +726,9 @@ static snd_pcm_fast_ops_t snd_pcm_multi_ .rewind = snd_pcm_multi_rewind, .forward = snd_pcm_multi_forward, .resume = snd_pcm_multi_resume, - .link_fd = snd_pcm_multi_link_fd, +// .link_fd = snd_pcm_multi_link_fd, .link = snd_pcm_generic_link2, - .unlink = snd_pcm_multi_unlink, +// .unlink = snd_pcm_multi_unlink, .avail_update = snd_pcm_multi_avail_update, .mmap_commit = snd_pcm_multi_mmap_commit, .poll_descriptors_count = snd_pcm_multi_poll_descriptors_count,
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click