From: John Rigg Subject: pcm_multi poll timeout error Date: Thu, 08 Dec 2005 19:13:40 +0000 Message-ID: Return-path: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Sat, Dec 03, 2005 at 03:23:18PM +0000, John Rigg wrote: > 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 I got my two Delta 1010s working with jackd and pcm_multi in duplex mode by removing three functions that were added in pcm_multi.c rev 1.89: snd_pcm_multi_link_fd_failed() snd_pcm_multi_link_fd() snd_pcm_multi_unlink() along with two associated members of snd_pcm_multi_fast_ops structure: .link_fd = snd_pcm_multi_link_fd .unlink = snd_pcm_multi_unlink I then started trying to debug the code causing the problem. Adding extra printf's showed that none of the extra functions executed unless jackd was started with both -C and -P devices (ie. duplex), and then only snd_pcm_multi_link_fd(). This executed twice (once for capture and once for playback presumably). Neither of the two other new functions was used when the poll time out occurred. Unfortunately I'm now getting a little out of my depth. I've been studying the docs and the source code, but the source is a little sparse on comments and hard to follow for someone of my limited programming experience. Does anyone have any pointers for a dumb sound engineer/musician trying to understand what this extra linking code in pcm_multi.c is supposed to be doing? 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