* Multi ice1712 .asoundrc problem
@ 2005-11-13 14:10 John Rigg
2005-11-13 22:31 ` John Rigg
0 siblings, 1 reply; 11+ messages in thread
From: John Rigg @ 2005-11-13 14:10 UTC (permalink / raw)
To: alsa-devel
Hi
I've been trying for some time to get two ice1712 cards (M-Audio Delta 1010) to
work together, so far unsuccessfully. There's been a long-running thread on
jackit-devel about this, and I know there are other users of these cards with
the same problem. AFAIK one of the ALSA developers has succeeded in getting
three ice1712's to work with jack, namely Frank van de Pol who wrote a patch
to add MMAP_COMPLEX support to jack (necessary with multi ice1712).
I've tried his email address but my mail just gets bounced back.
Does anyone else have a working .asoundrc for two or more of these cards?
John
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-13 14:10 Multi ice1712 .asoundrc problem John Rigg
@ 2005-11-13 22:31 ` John Rigg
2005-11-13 23:08 ` Lee Revell
0 siblings, 1 reply; 11+ messages in thread
From: John Rigg @ 2005-11-13 22:31 UTC (permalink / raw)
To: alsa-devel
On Sun, Nov 13, 2005 at 02:10:03PM +0000, John Rigg wrote:
> I've been trying for some time to get two ice1712 cards (M-Audio Delta 1010)
> to work together, so far unsuccessfully.
The .asoundrc below _almost_ works. I get 16 channels of playback
or 16 channels of capture, but not both. I'm using jack with
MMAP_COMPLEX support added, so the usual route plugin/ttable isn't
needed.
I'm using the following command to start jack:
jackd -d alsa -d multi_duplex -p 128
This fails with a poll time out. If I add the -C or -P option to start
in capture- or playback-only mode, it starts and runs.
Setup is 2.6.14-rt6 x86_64 SMP kernel (alsa-driver-1.0.10rc1),
alsa-lib-1.0-10rc2, jack-0.100.7 + MMAP_COMPLEX patch,
Debian unstable amd64.
It looks to me like the asym plugin isn't working (or I'm not using it
correctly). Any ideas?
John
__________________________________
# .asoundrc for two Delta 1010s
# Alias for first card
pcm.delta1010_0 {
type hw
card 0
}
ctl.delta1010_0 {
type hw
card 0
}
# Alias for second card
pcm.delta1010_1 {
type hw
card 1
}
ctl.delta1010_1 {
type hw
card 1
}
# Create virtual devices out of multiple soundcards.
# JACK will need MMAP_COMPLEX support to use this.
# ICE1712 chip has 12 capture channels and 10 playback channels
# so separate playback and capture devices need to be created.
# No. of channels in slaves must equal 12 for capture and 10 for playback
# otherwise "broken configuration" and "invalid argument" errors result.
pcm.multi_playback {
type multi
slaves.a.pcm delta1010_0
slaves.a.channels 10
slaves.b.pcm delta1010_1
slaves.b.channels 10
# First 8 channels of 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
# First 8 channels of 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
}
ctl.multi_playback {
type hw
card 0
}
pcm.multi_capture {
type multi
slaves.a.pcm delta1010_0
slaves.a.channels 12
slaves.b.pcm delta1010_1
slaves.b.channels 12
# First 8 channels of 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
# First 8 channels of 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
}
ctl.multi_capture {
type hw
card 0
}
# ICE1712 has 10 channels for playback and 12 for capture so asym
# plugin must be used
pcm.multi_duplex {
type asym
playback.pcm multi_playback
capture.pcm multi_capture
}
ctl.multi_duplex {
type hw
card 0
}
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Multi ice1712 .asoundrc problem
2005-11-13 22:31 ` John Rigg
@ 2005-11-13 23:08 ` Lee Revell
2005-11-14 0:37 ` John Rigg
0 siblings, 1 reply; 11+ messages in thread
From: Lee Revell @ 2005-11-13 23:08 UTC (permalink / raw)
To: John Rigg; +Cc: alsa-devel
On Sun, 2005-11-13 at 22:31 +0000, John Rigg wrote:
> This fails with a poll time out. If I add the -C or -P option to start
> in capture- or playback-only mode, it starts and runs.
> Setup is 2.6.14-rt6 x86_64 SMP kernel (alsa-driver-1.0.10rc1),
> alsa-lib-1.0-10rc2, jack-0.100.7 + MMAP_COMPLEX patch,
> Debian unstable amd64.
What happens if you supply both the -P and -C options? That will give
you full duplex without the need to use the asym plugin.
Lee
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-13 23:08 ` Lee Revell
@ 2005-11-14 0:37 ` John Rigg
2005-11-14 9:30 ` Lee Revell
0 siblings, 1 reply; 11+ messages in thread
From: John Rigg @ 2005-11-14 0:37 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
On Sun, Nov 13, 2005 at 06:08:12PM -0500, Lee Revell wrote:
> On Sun, 2005-11-13 at 22:31 +0000, John Rigg wrote:
> > This fails with a poll time out. If I add the -C or -P option to start
> > in capture- or playback-only mode, it starts and runs.
>
> What happens if you supply both the -P and -C options? That will give
> you full duplex without the need to use the asym plugin.
Exactly the same poll time out occurs.
I have separate multi devices defined for playback and capture.
If the number of slave channels is not specified as 12 for capture and 10
for playback, neither works. To start both I assumed I'd need to combine them
into another multi device - I tried asym as it seemed the only possibility.
Is there another way, eg. a way to start multi_playback and
multi_capture devices with a single jackd command?
John
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-14 0:37 ` John Rigg
@ 2005-11-14 9:30 ` Lee Revell
2005-11-14 12:17 ` John Rigg
0 siblings, 1 reply; 11+ messages in thread
From: Lee Revell @ 2005-11-14 9:30 UTC (permalink / raw)
To: John Rigg; +Cc: alsa-devel
On Mon, 2005-11-14 at 00:37 +0000, John Rigg wrote:
> On Sun, Nov 13, 2005 at 06:08:12PM -0500, Lee Revell wrote:
> > On Sun, 2005-11-13 at 22:31 +0000, John Rigg wrote:
> > > This fails with a poll time out. If I add the -C or -P option to start
> > > in capture- or playback-only mode, it starts and runs.
> >
> > What happens if you supply both the -P and -C options? That will give
> > you full duplex without the need to use the asym plugin.
>
> Exactly the same poll time out occurs.
> I have separate multi devices defined for playback and capture.
> If the number of slave channels is not specified as 12 for capture and 10
> for playback, neither works. To start both I assumed I'd need to combine them
> into another multi device - I tried asym as it seemed the only possibility.
> Is there another way, eg. a way to start multi_playback and
> multi_capture devices with a single jackd command?
>
> John
>
Yes, for example:
jackd -d alsa -C hw:0,2 -P hw:0,3
Lee
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-14 9:30 ` Lee Revell
@ 2005-11-14 12:17 ` John Rigg
2005-11-14 15:55 ` Pasi Kärkkäinen
0 siblings, 1 reply; 11+ messages in thread
From: John Rigg @ 2005-11-14 12:17 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
On Mon, Nov 14, 2005 at 04:30:34AM -0500, Lee Revell wrote:
> On Mon, 2005-11-14 at 00:37 +0000, John Rigg wrote:
> > Is there another way, eg. a way to start multi_playback and
> > multi_capture devices with a single jackd command?
>
> Yes, for example:
>
> jackd -d alsa -C hw:0,2 -P hw:0,3
I tried the following:
jackd -d alsa -C multi_capture -P multi_playback -p 128
This gives the same poll time out. I tried different values of -p
but it just changes the length of the time out.
Starting capture-only using the following works:
jackd -d alsa -C multi_capture -p 128
Likewise for playback:
jackd -d alsa -C multi_playback -p 128
John
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-14 12:17 ` John Rigg
@ 2005-11-14 15:55 ` Pasi Kärkkäinen
2005-11-14 19:06 ` John Rigg
0 siblings, 1 reply; 11+ messages in thread
From: Pasi Kärkkäinen @ 2005-11-14 15:55 UTC (permalink / raw)
To: John Rigg; +Cc: Lee Revell, alsa-devel
On Mon, Nov 14, 2005 at 12:17:01PM +0000, John Rigg wrote:
> On Mon, Nov 14, 2005 at 04:30:34AM -0500, Lee Revell wrote:
> > On Mon, 2005-11-14 at 00:37 +0000, John Rigg wrote:
> > > Is there another way, eg. a way to start multi_playback and
> > > multi_capture devices with a single jackd command?
> >
> > Yes, for example:
> >
> > jackd -d alsa -C hw:0,2 -P hw:0,3
>
> I tried the following:
>
> jackd -d alsa -C multi_capture -P multi_playback -p 128
>
> This gives the same poll time out. I tried different values of -p
> but it just changes the length of the time out.
>
I was reading jackd alsa-driver source, and found out, that the "poll time
out" messages come from poll() system call while jackd is waiting for data
from alsa.. so the problem is most propably in alsa.. multi plugin?
- Pasi Kärkkäinen
> Starting capture-only using the following works:
> jackd -d alsa -C multi_capture -p 128
> Likewise for playback:
> jackd -d alsa -C multi_playback -p 128
>
> John
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-14 15:55 ` Pasi Kärkkäinen
@ 2005-11-14 19:06 ` John Rigg
2005-11-15 15:16 ` John Rigg
0 siblings, 1 reply; 11+ messages in thread
From: John Rigg @ 2005-11-14 19:06 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: alsa-devel
On Mon, Nov 14, 2005 at 05:55:13PM +0200, Pasi Kärkkäinen wrote:
> I was reading jackd alsa-driver source, and found out, that the "poll time
> out" messages come from poll() system call while jackd is waiting for data
> from alsa.. so the problem is most propably in alsa.. multi plugin?
A reasonable assumption. The symptoms are exactly the same whether or not asym
plugin is used, so it's unlikely to be that, and the cards work individually
in duplex mode. All that's left is the multi plugin. Either it's being used
incorrectly or it doesn't allow what we're trying to do.
John
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-14 19:06 ` John Rigg
@ 2005-11-15 15:16 ` John Rigg
2005-11-15 19:18 ` Lee Revell
0 siblings, 1 reply; 11+ messages in thread
From: John Rigg @ 2005-11-15 15:16 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: alsa-devel
On Mon, Nov 14, 2005 at 07:06:47PM +0000, John Rigg wrote:
> On Mon, Nov 14, 2005 at 05:55:13PM +0200, Pasi Kärkkäinen wrote:
> > I was reading jackd alsa-driver source, and found out, that the "poll time
> > out" messages come from poll() system call while jackd is waiting for data
> > from alsa.. so the problem is most propably in alsa.. multi plugin?
>
> A reasonable assumption.
On second thoughts I think it's driver related. It appears to be impossible to
set the channel count. eg.:
jackd -d alsa -d -C -i8 hw:0
results in the following message:
ALSA: cannot set channel count to 8 for capture
(the code that generates this message is in drivers/alsa/alsa_driver.c)
The docs say that channel count can be set to anything up to maximum
(which is default). They also say that the number of slaves channels in
multi definition can be set to any number up to maximum.
We should be able to define one multi device with say 10 slaves channels
per card, and one set of bindings, and have it work in duplex mode.
What we actually have is a slaves channel count which can only be set to the
maximum, ie. 12 for capture or 10 for playback.
The multi plugin requires the number of slaves channels to be explicitly
defined, but doesn't allow separate definition for capture and playback
(unlike jackd, eg. `jackd -d alsa -d -C -i12 -P -o10 hw:0').
John
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-15 15:16 ` John Rigg
@ 2005-11-15 19:18 ` Lee Revell
2005-11-16 15:14 ` John Rigg
0 siblings, 1 reply; 11+ messages in thread
From: Lee Revell @ 2005-11-15 19:18 UTC (permalink / raw)
To: John Rigg; +Cc: Pasi Kärkkäinen, alsa-devel
On Tue, 2005-11-15 at 15:16 +0000, John Rigg wrote:
> (unlike jackd, eg. `jackd -d alsa -d -C -i12 -P -o10 hw:0').
I think your jackd syntax is wrong. The -P and -C arguments are
supposed to be immediately followed by the capture/playback device.
Like:
jackd -d alsa -C hw:0,2 -P hw:0,3 -i12 -o10
Lee
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Multi ice1712 .asoundrc problem
2005-11-15 19:18 ` Lee Revell
@ 2005-11-16 15:14 ` John Rigg
0 siblings, 0 replies; 11+ messages in thread
From: John Rigg @ 2005-11-16 15:14 UTC (permalink / raw)
To: Lee Revell; +Cc: Pasi Kärkkäinen, alsa-devel
On Tue, Nov 15, 2005 at 02:18:47PM -0500, Lee Revell wrote:
> On Tue, 2005-11-15 at 15:16 +0000, John Rigg wrote:
> > (unlike jackd, eg. `jackd -d alsa -d -C -i12 -P -o10 hw:0').
>
> I think your jackd syntax is wrong. The -P and -C arguments are
> supposed to be immediately followed by the capture/playback device.
> Like:
>
> jackd -d alsa -C hw:0,2 -P hw:0,3 -i12 -o10
Thanks for the correction. Unfortunately the results with correct syntax
are exactly the same. Any values other than -i12 and -o10 result
in `ALSA: cannot set channel count' errors.
BTW the ice1712 appears to have only hw:0,0 (ie. no subdevices).
John
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-11-16 15:14 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13 14:10 Multi ice1712 .asoundrc problem John Rigg
2005-11-13 22:31 ` John Rigg
2005-11-13 23:08 ` Lee Revell
2005-11-14 0:37 ` John Rigg
2005-11-14 9:30 ` Lee Revell
2005-11-14 12:17 ` John Rigg
2005-11-14 15:55 ` Pasi Kärkkäinen
2005-11-14 19:06 ` John Rigg
2005-11-15 15:16 ` John Rigg
2005-11-15 19:18 ` Lee Revell
2005-11-16 15:14 ` John Rigg
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.