Hi Carl!

On Fri, 07 Feb 2003, Carl Lee wrote:

> Help ice1712/envy24 experts!
> 
> Below is my current asound.conf file (thanks to Steve
> Mercier).  It defines 4 different stereo input
> channels for A/D recording.  I noticed that if I
> attempt to record on 4 channels simultaneously (4
> different threads of course) only 1 channel will
> record, the other 3 channels/threads will block.
> 
> I'm pretty sure the ice1712 chipset will allow
> simulataneous multi-channel recording given the
> software driver supports it.  
> 
> So does the alsa ice1712 driver support this?  Has
> anyone gotten this to work?  Do I have to modify the
> asound.conf file. Please advise. Thanks.
> 
> 
> pcm.ice1712 {
>         type hw
>         card 1
>         device 0
> }
> 
> pcm.channel1 {
>         type plug
>         ttable.1.0 1
>         ttable.1.1 1
>         slave.pcm ice1712
> }
> pcm.channel2 {
>         type plug
>         ttable.1.2 1
>         ttable.1.3 1
>         slave.pcm ice1712
> }
> 
> pcm.channel3 {
>         type plug
>         ttable.1.4 1
>         ttable.1.5 1
>         slave.pcm ice1712
> }
> 
> pcm.channel4 {
>         type plug
>         ttable.1.6 1
>         ttable.1.7 1
>         slave.pcm ice1712
> }
> 

i just found out that the following works:


--- snip ---

pcm.ice1712 {
        type hw
        card 0
        device 0
}

pcm.channel1 {
        type plug
        ttable.0.0 1
        ttable.1.1 1
        slave.pcm ice1712
}
pcm.channel2 {
        type plug
        ttable.0.2 1
        ttable.1.3 1
        slave.pcm ice1712
}

pcm.channel3 {
        type plug
        ttable.0.4 1
        ttable.1.5 1
        slave.pcm ice1712
}

pcm.channel4 {
        type plug
        ttable.0.6 1
        ttable.1.7 1
        slave.pcm ice1712
}

pcm.alltogethernow {
        type plug
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
        ttable.0.4 1
        ttable.1.5 1
        ttable.0.6 1
        ttable.1.7 1
        slave.pcm ice1712
}

--- snap ---

i don't know what this exactly means, but this is my guess:

ttable.0.0 1 

first 0 is 'mono-first-channel', second 0 is 'mono channel 1 in', 1 means 'on'


ttable.1.1 1 

first 1 is 'mono-second-channel', second 1 is 'mono channel 2 in', 1 means 'on'

... and so on...

hmm does this make sense? ;)

this is the spdif channel(s):

ttable.0.8 1
ttable.1.9 1


ok, then it should be possible to record each stereo input with:
$ arecord -D channelN -f cd mixdown.wav

and finally, record all 8 mono inputs (or 4 stereo):
$ arecord -D alltogethernow -f cd mixdown.wav


(of course you have to switch to CAPTURE on alsamixer and set the
volumes/pan for each channel (or with envy24control, but it cant set the
CAPTURE flag))

erm ok here is my envy24control settings:

1. Patchbay/Router: 
'H/W Out 1 (L)' == 'Digital MIX L'
'H/W Out 2 (R)' == 'Digital MIX R'

'S/PDIF Out (L)' == 'Digital MIX L'
'S/PDIF Out (R)' == 'Digital MIX R'

2. Monitor Mixer:
first i turned off all the 'L/R Gang' because i want real stereo ;)

PCM OUT 1: LEFT=96 and RIGHT=0
PCM OUT 2: LEFT=0  and RIGHT=96

[...rest outs unused...]

H/W In 1: LEFT=96 and RIGHT=0
H/W In 2: LEFT=0  and RIGHT=96

H/W In 3: LEFT=96 and RIGHT=0
H/W In 4: LEFT=0  and RIGHT=96

H/W In 5: LEFT=96 and RIGHT=0
H/W In 6: LEFT=0  and RIGHT=96

H/W In 7: LEFT=96 and RIGHT=0
H/W In 8: LEFT=0  and RIGHT=96

S/PDIF In 7: LEFT=96 and RIGHT=0
S/PDIF In 8: LEFT=0  and RIGHT=96

thats it.

now i was able to record stereo wav files and play them correct.

i don't really understand why there is a "right/left" channel for each mono 
input channel. maybe jaroslav could explain it someday...

BTW: i'm using a STAUDIO DSP24 with ADC&DAC2000 C-Port
this one: http://www.staudio.com/cwb-data/data/ridi/STA_DSP2000.JPG ;-)

ciao,
Walter Meister


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to