* quattro multi plugin.
@ 2002-07-19 7:11 Patrick Shirkey
2002-07-19 8:42 ` Patrick Shirkey
0 siblings, 1 reply; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-19 7:11 UTC (permalink / raw)
To: alsa-devel
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
----
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-19 7:11 quattro multi plugin Patrick Shirkey
@ 2002-07-19 8:42 ` Patrick Shirkey
2002-07-19 13:56 ` Patrick Shirkey
0 siblings, 1 reply; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-19 8:42 UTC (permalink / raw)
Cc: alsa-devel
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
----
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-19 8:42 ` Patrick Shirkey
@ 2002-07-19 13:56 ` Patrick Shirkey
2002-07-19 17:51 ` Takashi Iwai
0 siblings, 1 reply; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-19 13:56 UTC (permalink / raw)
Cc: alsa-devel, jackit-devel
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.
Patrick Shirkey wrote:
> 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
> ----
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-19 13:56 ` Patrick Shirkey
@ 2002-07-19 17:51 ` Takashi Iwai
2002-07-19 23:44 ` Thorsten Haas
2002-07-20 16:09 ` Patrick Shirkey
0 siblings, 2 replies; 13+ messages in thread
From: Takashi Iwai @ 2002-07-19 17:51 UTC (permalink / raw)
To: Patrick Shirkey; +Cc: alsa-devel, jackit-devel
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
At Fri, 19 Jul 2002 22:56:15 +0900,
Patrick Shirkey wrote:
>
> 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
[-- Attachment #2: quatro-asoundrc --]
[-- Type: application/octet-stream, Size: 788 bytes --]
#
# 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;
}
#
# remap 4 channels as interleaved.
# use plug instead of route here, since 24_3LE is unlikely supported by
# applications.
#
pcm.q4 {
type plug;
slave.pcm "quattro";
ttable.0.0 1;
ttable.1.1 1;
ttable.2.2 1;
ttable.3.3 1;
}
#
# define the control
#
ctl.quattro {
type hw;
card 2;
}
# alias
ctl.q4 ctl.quattro
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-19 17:51 ` Takashi Iwai
@ 2002-07-19 23:44 ` Thorsten Haas
2002-07-20 16:09 ` Patrick Shirkey
1 sibling, 0 replies; 13+ messages in thread
From: Thorsten Haas @ 2002-07-19 23:44 UTC (permalink / raw)
To: alsa-devel
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:
> At Fri, 19 Jul 2002 22:56:15 +0900,
>
> Patrick Shirkey wrote:
> > 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
--
mailto:mail@thorstenhaas.de
http://www.thorstenhaas.de
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-19 17:51 ` Takashi Iwai
2002-07-19 23:44 ` Thorsten Haas
@ 2002-07-20 16:09 ` Patrick Shirkey
2002-07-20 16:22 ` Patrick Shirkey
2002-07-21 8:20 ` Jaroslav Kysela
1 sibling, 2 replies; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-20 16:09 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
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.
Takashi Iwai wrote:
> At Fri, 19 Jul 2002 22:56:15 +0900,
> Patrick Shirkey wrote:
>
>>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
----
# 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
----
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-20 16:09 ` Patrick Shirkey
@ 2002-07-20 16:22 ` Patrick Shirkey
2002-07-20 16:41 ` Patrick Shirkey
2002-07-21 8:20 ` Jaroslav Kysela
1 sibling, 1 reply; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-20 16:22 UTC (permalink / raw)
Cc: Takashi Iwai, alsa-devel, jackit-devel
Patrick Shirkey wrote:
> 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 :)
>
>
> Takashi Iwai wrote:
>
>> At Fri, 19 Jul 2002 22:56:15 +0900,
>> Patrick Shirkey wrote:
>>
>>> 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
>
>
> ----
> # 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
>
> ----
>
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-20 16:22 ` Patrick Shirkey
@ 2002-07-20 16:41 ` Patrick Shirkey
0 siblings, 0 replies; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-20 16:41 UTC (permalink / raw)
Cc: Takashi Iwai, alsa-devel, jackit-devel
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;
}
----
Patrick Shirkey wrote:
> Patrick Shirkey wrote:
>
>> 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 :)
>
>>
>>
>> Takashi Iwai wrote:
>>
>>> At Fri, 19 Jul 2002 22:56:15 +0900,
>>> Patrick Shirkey wrote:
>>>
>>>> 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
>>
>>
>>
>> ----
>> # 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
>>
>> ----
>>
>
>
>
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-20 16:09 ` Patrick Shirkey
2002-07-20 16:22 ` Patrick Shirkey
@ 2002-07-21 8:20 ` Jaroslav Kysela
2002-07-22 9:58 ` Patrick Shirkey
1 sibling, 1 reply; 13+ messages in thread
From: Jaroslav Kysela @ 2002-07-21 8:20 UTC (permalink / raw)
To: Patrick Shirkey; +Cc: Takashi Iwai, alsa-devel@lists.sourceforge.net
On Sun, 21 Jul 2002, Patrick Shirkey wrote:
> 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.
>
>
>
> Takashi Iwai wrote:
> > At Fri, 19 Jul 2002 22:56:15 +0900,
> > Patrick Shirkey wrote:
> >
> >>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
>
> ----
> # 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.
Please, try again. I've just added missing support for 24-bit samples to
one alsa-lib's function.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-21 8:20 ` Jaroslav Kysela
@ 2002-07-22 9:58 ` Patrick Shirkey
2002-07-22 11:10 ` Takashi Iwai
2002-07-22 11:21 ` Patrick Shirkey
0 siblings, 2 replies; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-22 9:58 UTC (permalink / raw)
To: Jaroslav Kysela
Cc: Takashi Iwai, alsa-devel@lists.sourceforge.net, jackit-devel
Jaroslav Kysela wrote:
>
> 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.
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-22 9:58 ` Patrick Shirkey
@ 2002-07-22 11:10 ` Takashi Iwai
2002-07-22 11:21 ` Patrick Shirkey
1 sibling, 0 replies; 13+ messages in thread
From: Takashi Iwai @ 2002-07-22 11:10 UTC (permalink / raw)
To: Patrick Shirkey
Cc: Jaroslav Kysela, alsa-devel@lists.sourceforge.net, jackit-devel
At Mon, 22 Jul 2002 18:58:56 +0900,
Patrick Shirkey wrote:
>
> Jaroslav Kysela wrote:
> >
> > 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.)
> 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.
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: quattro multi plugin.
2002-07-22 9:58 ` Patrick Shirkey
2002-07-22 11:10 ` Takashi Iwai
@ 2002-07-22 11:21 ` Patrick Shirkey
2002-07-28 8:14 ` quattro multi plugin - 4 channel recording Patrick Shirkey
1 sibling, 1 reply; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-22 11:21 UTC (permalink / raw)
Cc: alsa-devel@lists.sourceforge.net, jackit-devel
Patrick Shirkey wrote:
> 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.
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* quattro multi plugin - 4 channel recording
2002-07-22 11:21 ` Patrick Shirkey
@ 2002-07-28 8:14 ` Patrick Shirkey
0 siblings, 0 replies; 13+ messages in thread
From: Patrick Shirkey @ 2002-07-28 8:14 UTC (permalink / raw)
Cc: alsa-devel@lists.sourceforge.net, linux-audio-user, Thorsten Haas
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;
}
#----
--
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
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2002-07-28 8:14 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-19 7:11 quattro multi plugin Patrick Shirkey
2002-07-19 8:42 ` Patrick Shirkey
2002-07-19 13:56 ` Patrick Shirkey
2002-07-19 17:51 ` Takashi Iwai
2002-07-19 23:44 ` Thorsten Haas
2002-07-20 16:09 ` Patrick Shirkey
2002-07-20 16:22 ` Patrick Shirkey
2002-07-20 16:41 ` Patrick Shirkey
2002-07-21 8:20 ` Jaroslav Kysela
2002-07-22 9:58 ` Patrick Shirkey
2002-07-22 11:10 ` Takashi Iwai
2002-07-22 11:21 ` Patrick Shirkey
2002-07-28 8:14 ` quattro multi plugin - 4 channel recording Patrick Shirkey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox