All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Rigg <ad@sound-man.co.uk>
Cc: alsa-devel@lists.sourceforge.net,
	"Pasi Kärkkäinen" <pasik@iki.fi>,
	Achim_Kuntz <achim.kuntz@gmx.net>,
	"Lee Revell" <rlrevell@joe-job.com>,
	"Frank van de Pol" <fvdpol@coil.demon.nl>
Subject: Re: multi_pcm poll timeout error
Date: Sat, 3 Dec 2005 21:04:09 +0000	[thread overview]
Message-ID: <20051203210409.GA5015@localhost.localdomain> (raw)
In-Reply-To: <20051203152318.GA4386@localhost.localdomain>

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

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

--- src/pcm/pcm_multi.c.orig	2005-12-03 20:10:58.000000000 +0000
+++ src/pcm/pcm_multi.c	2005-12-03 20:20:56.000000000 +0000
@@ -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

      reply	other threads:[~2005-12-03 21:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-03 15:23 multi_pcm poll timeout error John Rigg
2005-12-03 21:04 ` John Rigg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051203210409.GA5015@localhost.localdomain \
    --to=ad@sound-man.co.uk \
    --cc=achim.kuntz@gmx.net \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=fvdpol@coil.demon.nl \
    --cc=pasik@iki.fi \
    --cc=rlrevell@joe-job.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.