Hi I recently setup sound card in alsa on fedora core
1, however it only outputs to my front two speakers
(Card Game Theater XP 5.1, speakers are 4.1 attached
via rca cables to front/back-right/left and subwoofer,
driver cs46xx). I've been playing around a checking
out different sites and one suggested that I can setup
two sound cards to be multi channel. I checked out the
stuff to insert .asoundrc it looked versitile and
reobust enough that I could easily set it up like this
(entire contents of .asoundrc follow):

pcm.cs46xxN {
        type hw         #Kernel PCM
        card 0          #Card name or number
#       device 0        #device number (default 0)
}
ctl.cs46xxN {
        type hw         #Kernel PCM
        card 0          #Card name or number
}
pcm.multi {
        type multi;
        slaves.a.pcm "hw:0,0";  #front
        slaves.a.channels 2;    #front
        slaves.b.pcm "hw:0,1";  #rear
        slaves.b.channels 2;    #rear
        slaves.c.pcm "hw:0,3";  #subwoofer, "hw:0,2" is spdif
out 
        slaves.c.channels 1;    #subwoofer
        bindings.0.slave a;     #front
        bindings.0.channel 0;   #front
        bindings.1.slave a;     #front
        bindings.1.channel 1;   #front
        bindings.2.slave b;     #rear
        bindings.2.channel 0;   #rear
        bindings.3.slave b;     #rear
        bindings.3.channel 1;   #rear
        bindings.4.slave c;     #subwoofer
        bindings.4.channel 0;   #subwoofer
}
# JACK will be displeased if there is no mixer to
speak to, so we set
# this to card 0. This could be any device but 0 is
easy. 

ctl.multi {
        type hw;
        card 0;
}
# This creates a 4 channel interleaved pcm stream
based on
# the multi device. JACK will work with this one.

pcm.ttable {
        type route;
        slave.pcm "multi";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;
        ttable.4.4 1;   #subwoofer
}
# see above.
ctl.ttable {
        type hw;
        card 0;
}

#end .acoundrc file

To test it I went into xmms 1.2.10 with the alsa out
plugin provided for fedora through yum. "ttable" nor
"multi" exist in the list of output devices. However I
can output to rear only, front only or subwoofer only,
and they all work. (the speaker-test app also proves
that all speakers function properly).

So I used alsaplayer to test it, here's what it spit
out. I recieve the same BS with "-d ttable". When only
executing alsaplayer without first passing any
terminal arguements it defaults to whatever is default
(duh! :P ) and works fine...the exception being that
it only outputs to the front two speakers.

$ alsaplayer -d multi
error on set_channels (2)
Unavailable hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 80
CHANNELS: 5
RATE: 44100
PERIOD_TIME: (362 11610)
PERIOD_SIZE: [16 512]
PERIOD_BYTES: [160 5120]
PERIODS: [2 1024]
BUFFER_TIME: (725 371520)
BUFFER_SIZE: [32 16384]
BUFFER_BYTES: [320 163840]
TICK_TIME: 10000
error on set_channels (2)
Unavailable hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 80
CHANNELS: 5
RATE: 44100
PERIOD_TIME: (362 11610)
PERIOD_SIZE: [16 512]
PERIOD_BYTES: [160 5120]
PERIODS: [2 1024]
BUFFER_TIME: (725 371520)
BUFFER_SIZE: [32 16384]
BUFFER_BYTES: [320 163840]
TICK_TIME: 10000
failed to configure output device...trying OSS
[ctrl+c]
$

So my question is this: Is there a way to combine
front, back and center/lfe into a simple stereo output
that can be used by all alsa-capable sound-outputting
linux applications?

Thanks for the help, it's much appriciated.


        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to