Skip to contentSkip to conversation

quattro multi plugin.

DISCUSSION Patrick Shirkey 4 participants 13 messages Jul 19, 2002 – Jul 28, 2002

lore
Share & tools
lore
#0 lore raw

I have had some luck with getting 4 channels to register using the multi plugin.

I have the following in .asoundrc.

----

pcm.quattro {
        type multi;

        slaves.a.pcm "hw:2,0";
        slaves.a.channels 3;


        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave a;
        bindings.2.channel 2;

}

ctl.quattro {
        type hw;
        card 0;
}
pcm.q4 {
        type route;
        slave.pcm "quattro";
        ttable.1.1 1;
        ttable.2.2 1;

}
----

When I run jackd I get this output though:

----
jackd -v -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details

611 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
new client: alsa_pcm, id = 1 type 1 @ 0x8067930 fd = 14
port alsa_pcm:in_1 buf shm key 0x164398c5 at offset 4096 bi = 0x8066d00 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x164398c5 at offset 8192 bi = 0x8066d10 registered port alsa_pcm:in_2, offset = 8192
port alsa_pcm:in_3 buf shm key 0x164398c5 at offset 12288 bi = 0x8066d20 registered port alsa_pcm:in_3, offset = 12288
port alsa_pcm:in_4 buf shm key 0x164398c5 at offset 16384 bi = 0x8066d30 registered port alsa_pcm:in_4, offset = 16384
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
registered port alsa_pcm:out_3, offset = 0
registered port alsa_pcm:out_4, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
ALSA: poll time out polled for 45558.694314
driver wait function failed, exiting
telling signal thread that the engine is done
jack main caught signal 1
----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw

Ah that should be....

----

pcm.quattro {
        type multi;

        slaves.a.pcm "hw:2,0";
        slaves.a.channels 3;


        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave a;
        bindings.2.channel 2;

}

ctl.quattro {
        type hw;
        card 0;
}
pcm.q4 {
        type route;
        slave.pcm "quattro";
        ttable.1.1 1;
        ttable.2.2 1;

}

ctl.q4 {
        type hw;
        card 2;
}

----

When I run jackd I get this output though:

----
jackd -v -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details

611 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
new client: alsa_pcm, id = 1 type 1 @ 0x8067930 fd = 14
port alsa_pcm:in_1 buf shm key 0x164398c5 at offset 4096 bi = 0x8066d00 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x164398c5 at offset 8192 bi = 0x8066d10 registered port alsa_pcm:in_2, offset = 8192
port alsa_pcm:in_3 buf shm key 0x164398c5 at offset 12288 bi = 0x8066d20 registered port alsa_pcm:in_3, offset = 12288
port alsa_pcm:in_4 buf shm key 0x164398c5 at offset 16384 bi = 0x8066d30 registered port alsa_pcm:in_4, offset = 16384
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
registered port alsa_pcm:out_3, offset = 0
registered port alsa_pcm:out_4, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
ALSA: poll time out polled for 45558.694314
driver wait function failed, exiting
telling signal thread that the engine is done
jack main caught signal 1
----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#2 lore raw

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

----
jackd -v -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details

1068 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
ALSA: no playback configurations available
ALSA: cannot configure capture channel cannot load driver module alsa
jack main caught signal 15
----

This is after a reboot due to jackd hanging the machine after accidentally loading the hw plugin after having semi success with the code below.

Quoted 70 lines · Patrick Shirkey

Ah that should be....

----

pcm.quattro {
        type multi;

        slaves.a.pcm "hw:2,0";
        slaves.a.channels 3;


        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave a;
        bindings.2.channel 2;

}

ctl.quattro {
        type hw;
        card 0;
}
pcm.q4 {
        type route;
        slave.pcm "quattro";
        ttable.1.1 1;
        ttable.2.2 1;

}

ctl.q4 {
        type hw;
        card 2;
}

----

When I run jackd I get this output though:

----
jackd -v -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details

611 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
new client: alsa_pcm, id = 1 type 1 @ 0x8067930 fd = 14
port alsa_pcm:in_1 buf shm key 0x164398c5 at offset 4096 bi = 0x8066d00 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x164398c5 at offset 8192 bi = 0x8066d10 registered port alsa_pcm:in_2, offset = 8192
port alsa_pcm:in_3 buf shm key 0x164398c5 at offset 12288 bi = 0x8066d20 registered port alsa_pcm:in_3, offset = 12288
port alsa_pcm:in_4 buf shm key 0x164398c5 at offset 16384 bi = 0x8066d30 registered port alsa_pcm:in_4, offset = 16384
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
registered port alsa_pcm:out_3, offset = 0
registered port alsa_pcm:out_4, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
ALSA: poll time out polled for 45558.694314
driver wait function failed, exiting
telling signal thread that the engine is done
jack main caught signal 1
----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#3 lore raw

At Fri, 19 Jul 2002 22:56:15 +0900,

Quoted 3 lines · Patrick Shirkey

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

how about the asoundrc attached below?
this will map hw:2,1 and hw:2,2 as 4 channels pcm.
i thought that these two devices correspond to 96kHz, so you need to specify other frequency for jackd.

Takashi

#4 lore raw

uhm, do I get you right; it is now possible to record from usb-quattro using FOUR channels simultanously?

Am Freitag, 19. Juli 2002 19:51 schrieb Takashi Iwai:

Quoted 13 lines

At Fri, 19 Jul 2002 22:56:15 +0900,

Quoted 2 lines · Patrick Shirkey

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

how about the asoundrc attached below?
this will map hw:2,1 and hw:2,2 as 4 channels pcm.
i thought that these two devices correspond to 96kHz, so you need to specify other frequency for jackd.

Takashi

Signature · 8 lines
mailto:[email protected]
http://www.thorstenhaas.de 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#5 lore raw
In reply to Takashi Iwai

Nope. I have tried something very similar to this before with no luck. It is extremely annoying that I now cannot reproduce the previous message. I don't understand why it can almost work once but seemingly never again ??? It's very strange.

Quoted 6 lines · Takashi Iwai

At Fri, 19 Jul 2002 22:56:15 +0900,

Quoted 1 line · Patrick Shirkey

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

Quoted 7 lines

how about the asoundrc attached below?
this will map hw:2,1 and hw:2,2 as 4 channels pcm.
i thought that these two devices correspond to 96kHz, so you need to specify other frequency for jackd.

Takashi

----

# jackd -R -v -a -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

507 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

new client: alsa_pcm, id = 1 type 1 @ 0x8067490 fd = 14
port alsa_pcm:in_1 buf shm key 0x28441bd5 at offset 4096 bi = 0x8066860 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x28441bd5 at offset 8192 bi = 0x8066870 registered port alsa_pcm:in_2, offset = 8192
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
jackd: pcm.c:1925: snd_pcm_area_silence: Assertion `0' failed.

# jackd watchdog: timeout - killing jackd
# jackd -R -v -a -d alsa -d quattro
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

creating alsa driver ... quattro|1024|2|48000|swmon
ALSA: mmap-based access is not possible for the capture stream of this audio int erface514 waiting for signals

ALSA: cannot configure capture channel
cannot load driver module alsa
jack main caught signal 15

----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#6 lore raw
Quoted 2 lines · Patrick Shirkey

Nope. I have tried something very similar to this before with no luck. It is extremely annoying that I now cannot reproduce the previous message. I don't understand why it can almost work once but seemingly never again ??? It's very strange.

I guess I spoke too soon. After a hard reeboot and starting the box after I had Linux up. I could get similar output to the original message except htis time I got an instant hang once kackd had found the i/o ports.

I will of course test some more :)

Quoted 70 lines
Quoted 7 lines · Takashi Iwai

At Fri, 19 Jul 2002 22:56:15 +0900,

Quoted 1 line · Patrick Shirkey

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

Quoted 7 lines

how about the asoundrc attached below?
this will map hw:2,1 and hw:2,2 as 4 channels pcm.
i thought that these two devices correspond to 96kHz, so you need to specify other frequency for jackd.

Takashi

----

# jackd -R -v -a -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

507 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

new client: alsa_pcm, id = 1 type 1 @ 0x8067490 fd = 14
port alsa_pcm:in_1 buf shm key 0x28441bd5 at offset 4096 bi = 0x8066860 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x28441bd5 at offset 8192 bi = 0x8066870 registered port alsa_pcm:in_2, offset = 8192
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
jackd: pcm.c:1925: snd_pcm_area_silence: Assertion `0' failed.

# jackd watchdog: timeout - killing jackd
# jackd -R -v -a -d alsa -d quattro
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

creating alsa driver ... quattro|1024|2|48000|swmon
ALSA: mmap-based access is not possible for the capture stream of this audio int erface514 waiting for signals

ALSA: cannot configure capture channel
cannot load driver module alsa
jack main caught signal 15

----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#7 lore raw

Sorry.

Not quite clear enough. The below happened using this in .asoundrc, not the code you sent Takashi.

----

pcm.quattro5 {
        type multi;

        slaves.a.pcm "hw:2,0";
        slaves.a.channels 3;


        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave a;
        bindings.2.channel 2;

}

ctl.quattro5 {
        type hw;
        card 0;
}
pcm.q4b {
        type route;
        slave.pcm "quattro";
        ttable.1.1 1;
        ttable.2.2 1;

}

ctl.q4b {
        type hw;
        card 0;
}

----

Quoted 84 lines · Patrick Shirkey
Quoted 2 lines · Patrick Shirkey

Nope. I have tried something very similar to this before with no luck. It is extremely annoying that I now cannot reproduce the previous message. I don't understand why it can almost work once but seemingly never again ??? It's very strange.

I guess I spoke too soon. After a hard reeboot and starting the box after I had Linux up. I could get similar output to the original message except htis time I got an instant hang once kackd had found the i/o ports.

I will of course test some more :)

Quoted 72 lines
Quoted 8 lines · Takashi Iwai

At Fri, 19 Jul 2002 22:56:15 +0900,

Quoted 1 line · Patrick Shirkey

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

Quoted 7 lines

how about the asoundrc attached below?
this will map hw:2,1 and hw:2,2 as 4 channels pcm.
i thought that these two devices correspond to 96kHz, so you need to specify other frequency for jackd.

Takashi

----

# jackd -R -v -a -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

507 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

new client: alsa_pcm, id = 1 type 1 @ 0x8067490 fd = 14
port alsa_pcm:in_1 buf shm key 0x28441bd5 at offset 4096 bi = 0x8066860 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x28441bd5 at offset 8192 bi = 0x8066870 registered port alsa_pcm:in_2, offset = 8192
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
jackd: pcm.c:1925: snd_pcm_area_silence: Assertion `0' failed.

# jackd watchdog: timeout - killing jackd
# jackd -R -v -a -d alsa -d quattro
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

creating alsa driver ... quattro|1024|2|48000|swmon
ALSA: mmap-based access is not possible for the capture stream of this audio int erface514 waiting for signals

ALSA: cannot configure capture channel
cannot load driver module alsa
jack main caught signal 15

----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#8 lore raw
In reply to Patrick Shirkey
Quoted 43 lines · Patrick Shirkey

Nope. I have tried something very similar to this before with no luck. It is extremely annoying that I now cannot reproduce the previous message. I don't understand why it can almost work once but seemingly never again ??? It's very strange.

Quoted 7 lines · Takashi Iwai

At Fri, 19 Jul 2002 22:56:15 +0900,

Quoted 2 lines · Patrick Shirkey

This is wierd. Using the exact same commands I cannot get jackd to load now. The card still, ahem, works, cough, with a single pcm device.

Quoted 7 lines

how about the asoundrc attached below?
this will map hw:2,1 and hw:2,2 as 4 channels pcm.
i thought that these two devices correspond to 96kHz, so you need to specify other frequency for jackd.

Takashi

----

# jackd -R -v -a -d alsa -d q4
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

507 waiting for signals
creating alsa driver ... q4|1024|2|48000|swmon
You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a ~/.asoundrc file to define a hardware audio device rather than using the plug layer

Quoted 10 lines

new client: alsa_pcm, id = 1 type 1 @ 0x8067490 fd = 14
port alsa_pcm:in_1 buf shm key 0x28441bd5 at offset 4096 bi = 0x8066860 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x28441bd5 at offset 8192 bi = 0x8066870 registered port alsa_pcm:in_2, offset = 8192
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
jackd: pcm.c:1925: snd_pcm_area_silence: Assertion `0' failed.

Please, try again. I've just added missing support for 24-bit samples to one alsa-lib's function.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#9 lore raw
Quoted 4 lines · Jaroslav Kysela

Please, try again. I've just added missing support for 24-bit samples to one alsa-lib's function.

Things seem to be getting worse with jack at least. I cannot use the 96000hz setting because that requires jack to have 24 bit support which it doesn't yet. 32 or 16bit are supported.

So If I use the .asoundrc that takashi sent I get an instant hang with only two channels being found and if I use my one I get the same but with four channels being found.

By instant hang I mean:

----
jackd -v -d alsa -d q4b
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details

611 waiting for signals
creating alsa driver ... q4b|1024|2|48000|swmon
new client: alsa_pcm, id = 1 type 1 @ 0x8067930 fd = 14
port alsa_pcm:in_1 buf shm key 0x164398c5 at offset 4096 bi = 0x8066d00 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x164398c5 at offset 8192 bi = 0x8066d10 registered port alsa_pcm:in_2, offset = 8192
port alsa_pcm:in_3 buf shm key 0x164398c5 at offset 12288 bi = 0x8066d20 registered port alsa_pcm:in_3, offset = 12288
port alsa_pcm:in_4 buf shm key 0x164398c5 at offset 16384 bi = 0x8066d30 registered port alsa_pcm:in_4, offset = 16384
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
registered port alsa_pcm:out_3, offset = 0
registered port alsa_pcm:out_4, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
----

Then my system locks hard.

I will do some testing with ecasound and the native alsa drivers.

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#10 lore raw

At Mon, 22 Jul 2002 18:58:56 +0900,

Quoted 10 lines · Patrick Shirkey
Quoted 4 lines · Jaroslav Kysela

Please, try again. I've just added missing support for 24-bit samples to one alsa-lib's function.

Things seem to be getting worse with jack at least. I cannot use the 96000hz setting because that requires jack to have 24 bit support which it doesn't yet. 32 or 16bit are supported.

you can use 32bit if it's accessed via plug layer. alsa-lib converts from 32 to 24bit.
(you need anyway route layer, so the latency stays as before.)

Quoted 33 lines

So If I use the .asoundrc that takashi sent I get an instant hang with only two channels being found and if I use my one I get the same but with four channels being found.

By instant hang I mean:

----
jackd -v -d alsa -d q4b
jackd 0.37.1
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details

611 waiting for signals
creating alsa driver ... q4b|1024|2|48000|swmon
new client: alsa_pcm, id = 1 type 1 @ 0x8067930 fd = 14
port alsa_pcm:in_1 buf shm key 0x164398c5 at offset 4096 bi = 0x8066d00 registered port alsa_pcm:in_1, offset = 4096
port alsa_pcm:in_2 buf shm key 0x164398c5 at offset 8192 bi = 0x8066d10 registered port alsa_pcm:in_2, offset = 8192
port alsa_pcm:in_3 buf shm key 0x164398c5 at offset 12288 bi = 0x8066d20 registered port alsa_pcm:in_3, offset = 12288
port alsa_pcm:in_4 buf shm key 0x164398c5 at offset 16384 bi = 0x8066d30 registered port alsa_pcm:in_4, offset = 16384
registered port alsa_pcm:out_1, offset = 0
registered port alsa_pcm:out_2, offset = 0
registered port alsa_pcm:out_3, offset = 0
registered port alsa_pcm:out_4, offset = 0
-- jack_rechain_graph():
client alsa_pcm: inprocess client, execution_order=0.
----

Quoted 1 line

Then my system locks hard.

hmm... could you simply try playback of 4 channels? you can find a sample wav in
http://www.tsp.ece.mcgill.ca/Docs/AudioFormats/WAVE/WAVE.html

or, try 4 channel recording via aplay.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.
http://thinkgeek.com/sf

#11 lore raw
In reply to Patrick Shirkey
Quoted 2 lines · Patrick Shirkey

I will do some testing with ecasound and the native alsa drivers.

Using both arecord and ecasound I can get two channels with Takashi's .asoundrc and 4 channels with my .asoundrc.

Both of them record two different mono streams. With my one the streams appear as 2 and 3 out of 4 in audacity. Stream 1 and 4 have a null signal. ie applying an amplification effect to the signal does nothing.

Wtih Takashis' the streams appear as 1 and 2 out of 2.

So we can still only record stereo streams and I have a funny feeling that the reason jack is locking is because stream 1 and 4 have no real signal.

If you want the soundfiles I will put them up.

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#12 lore raw

quattro multi plugin - 4 channel recording

I have now got 4 channel recording using arecord.

It seemed the alias for the ctl was throwing the equation.

Use the following in your .asoundrc file.

#----

#

# compose 4 channels from two channel x two devices, hw:2,1 and hw:2,2
# assuming that hw:2,1 and hw:2,2 give the same condition, 24_3LE/96k
#
pcm.quattro {
        type multi;

        slaves.a.pcm "hw:2,1";
        slaves.a.channels 2;
        slaves.b.pcm "hw:2,2";
        slaves.b.channels 2;

        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave b;
        bindings.2.channel 0;
        bindings.3.slave b;
        bindings.3.channel 1;
}
ctl.quattro {
        type hw;
        card 2;
}

#

# remap 4 channels as interleaved.
# use plug instead of route here, since 24_3LE is unlikely supported by
# applications.
#
# arecord -r 44100 -c 4 -f s16_le -D q4 -d 5 /home/xxx/q4.wav
pcm.q4 {
        type plug;
        slave.pcm "quattro";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;
}
ctl.q4 {
        type hw;
        card 2;
}

#
# Use route plugin for applications that do support 24_3LE # This lowers latency which the plug plugin introduces due to

# resampling.
#
# arecord -r 44100 -c 4 -f s16_le -D q41 -d 5 /home/xxx/q41.wav
pcm.q41 {
        type route;
        slave.pcm "quattro";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;

}

ctl.q41 {
        type hw;
        card 2;
}

#----

Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf