From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: asym plugin in asoundrc causes "poll time out" errors in jackd Date: Thu, 3 Nov 2005 18:24:42 +0200 Message-ID: <20051103162442.GC10146@edu.joroinen.fi> References: <20051103161229.GB10146@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: 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: Takashi Iwai Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 03, 2005 at 05:20:46PM +0100, Takashi Iwai wrote: > At Thu, 3 Nov 2005 18:12:29 +0200, > Pasi K=E4rkk=E4inen wrote: > >=20 > > Hi list! > >=20 > > I've already sent this mail to jackd mailing list, but didn't got any > > helpful replies.. so I'm trying if somebody knows more about asym stu= ff > > here. > >=20 > > I'm trying to run jackd with multi + asym plugins in ~/.asoundrc, but= I get > > "ALSA: poll time out, polled for 17407547 usecs" messages all the tim= e from > > jackd.. > >=20 > > .asounrdc available here: > > http://nrg.joroinen.fi/asoundrc-asym.txt >=20 > Please post it instead of URL. >=20 Attached. >=20 > Takashi -- Pasi K=E4rkk=E4inen =20 ^ . . Linux / - \ Choice.of.the .Next.Generation. --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="asoundrc-asym.txt" # START OF .asoundrc # Alias for first Delta card pcm.delta1010_1 { type hw card 1 } ctl.delta1010_1 { type hw card 1 } # Alias for second Delta card pcm.delta1010_2 { type hw card 2 } ctl.delta1010_2 { type hw card 2 } # Create virtual device out of multiple soundcards. # This cannot be used by JACK, which will complain that it # cannot get mmap-based access. See jackmulti below. pcm.multi_playback { type multi # First soundcard associated with slave "a" slaves.a.pcm delta1010_1 # This must be specified, and MUST equal 12 for the Delta 1010LT # (otherwise "broken configuration" and "invalid argument" errors result) # I assume it must be equal to the correct number of channels on # other soundcards too slaves.a.channels 10 #slaves.b.pcm delta1010_2 #slaves.b.channels 10 # Read the lines below as follows: # bindings.x.slave y # bindings.x.channel z # The above example means: # "Bind channel z on slave y to channel x of the new multi device" # Check above to see which soundcard is associated with which slave # The first 8 channels of the first soundcard bindings.0.slave a bindings.0.channel 0 bindings.1.slave a bindings.1.channel 1 bindings.2.slave a bindings.2.channel 2 bindings.3.slave a bindings.3.channel 3 bindings.4.slave a bindings.4.channel 4 bindings.5.slave a bindings.5.channel 5 bindings.6.slave a bindings.6.channel 6 bindings.7.slave a bindings.7.channel 7 # The first 8 channels of the second soundcard # bindings.8.slave b # bindings.8.channel 0 # bindings.9.slave b # bindings.9.channel 1 # bindings.10.slave b # bindings.10.channel 2 # bindings.11.slave b # bindings.11.channel 3 # bindings.12.slave b # bindings.12.channel 4 # bindings.13.slave b # bindings.13.channel 5 # bindings.14.slave b # bindings.14.channel 6 # bindings.15.slave b # bindings.15.channel 7 } pcm.multi_capture { type multi # First soundcard associated with slave "a" slaves.a.pcm delta1010_1 # This must be specified, and MUST equal 12 for the Delta 1010LT # (otherwise "broken configuration" and "invalid argument" errors result) # I assume it must be equal to the correct number of channels on # other soundcards too slaves.a.channels 12 #slaves.b.pcm delta1010_2 #slaves.b.channels 12 # Read the lines below as follows: # bindings.x.slave y # bindings.x.channel z # The above example means: # "Bind channel z on slave y to channel x of the new multi device" # Check above to see which soundcard is associated with which slave # The first 8 channels of the first soundcard bindings.0.slave a bindings.0.channel 0 bindings.1.slave a bindings.1.channel 1 bindings.2.slave a bindings.2.channel 2 bindings.3.slave a bindings.3.channel 3 bindings.4.slave a bindings.4.channel 4 bindings.5.slave a bindings.5.channel 5 bindings.6.slave a bindings.6.channel 6 bindings.7.slave a bindings.7.channel 7 # The first 8 channels of the second soundcard # bindings.8.slave b # bindings.8.channel 0 # bindings.9.slave b # bindings.9.channel 1 # bindings.10.slave b # bindings.10.channel 2 # bindings.11.slave b # bindings.11.channel 3 # bindings.12.slave b # bindings.12.channel 4 # bindings.13.slave b # bindings.13.channel 5 # bindings.14.slave b # bindings.14.channel 6 # bindings.15.slave b # bindings.15.channel 7 } # JACK requires a ctl (mixer) interface for any pcm interface # it uses. A ctl interface for a multi device is a bit strange, # but set this to the mixer of the first soundcard to keep JACK happy. ctl.multi { type hw card 0 } pcm.multi_duplex { type asym playback.pcm multi_playback capture.pcm multi_capture } ctl.multi_duplex { type hw card 0 } # This creates a multi-channel interleaved PCM stream based on # the multi device. JACK will work with this one, as it can get # mmap access to the channels. pcm.jackmulti { type route slave.pcm multi_duplex # As I understand it, you read "ttable.x.y z" as "route channel y of # slave device specified above to channel x of the new (client) device, # and multiply signal along this route with factor z", where z is # between 0.0 and 1.0. A value of 1.0 therefore indicates no change to # the signal (a straight routing between channels). ttable.0.0 1.0 ttable.1.1 1.0 ttable.2.2 1.0 ttable.3.3 1.0 ttable.4.4 1.0 ttable.5.5 1.0 ttable.6.6 1.0 ttable.7.7 1.0 ttable.8.8 1.0 ttable.9.9 1.0 ttable.10.10 1.0 ttable.11.11 1.0 ttable.12.12 1.0 ttable.13.13 1.0 ttable.14.14 1.0 ttable.15.15 1.0 } # JACK requires a ctl (mixer) interface for any pcm interface # it uses. This is set to the first soundcard to keep JACK happy. ctl.jackmulti { type hw card 0 } # END OF .asoundrc --SUOF0GtieIMvvwua-- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php