Skip to contentSkip to conversation

Multi ice1712 .asoundrc problem

DISCUSSION John Rigg 3 participants 11 messages Nov 13, 2005 – Nov 16, 2005

lore
Share & tools
lore

John Rigg

author
#0 lore raw

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

author
#1 lore raw
Quoted 2 lines · John Rigg

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

#2 lore raw
Quoted 5 lines · John Rigg

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

author
#3 lore raw
Quoted 6 lines · Lee Revell
Quoted 2 lines · John Rigg

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

#4 lore raw
Quoted 16 lines · John Rigg
Quoted 6 lines · Lee Revell
Quoted 2 lines · John Rigg

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?

Quoted 2 lines

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

author
#5 lore raw
Quoted 7 lines · Lee Revell
Quoted 2 lines · John Rigg

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

#6 lore raw
Quoted 7 lines · John Rigg
Quoted 6 lines · Lee Revell
Quoted 2 lines · John Rigg

Is there another way, eg. a way to start multi_playback and multi_capture devices with a single jackd command?

Yes, for example:

Quoted 9 lines
Quoted 1 line

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

Quoted 8 lines

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

Quoted 9 lines

-------------------------------------------------------
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
[email protected]
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

author
#7 lore raw
Quoted 3 lines · Pasi Kärkkäinen

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

author
#8 lore raw
Quoted 6 lines · John Rigg
Quoted 3 lines · Pasi Kärkkäinen

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

#9 lore raw
Quoted 1 line · John Rigg

(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

author
#10 lore raw
Quoted 8 lines · Lee Revell
Quoted 1 line · John Rigg

(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