Yet another sound problem

Greetings,
I’ve been reading articles,wiki’s and such for hours and yet i can’t find a solution to my problem.
Sound works (stereo),even firefox youtube sound,files plays beatifully (more than in any other distro i tried) but still i can’t make surround for non surround files work in smplayer.
this is the output for a few tests i did:

uname -a
Linux linux-xeky 2.6.31.12-0.1-desktop #1 SMP PREEMPT 2010-01-27 08:20:11 +0100 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/asound/cards
 0 [CA0106         ]: CA0106 - CA0106
                      X-Fi Extreme Audio [SB0790] at 0xe800 irq 21
aplay -L |grep surr
surround40:CARD=CA0106,DEV=0
surround41:CARD=CA0106,DEV=0
surround50:CARD=CA0106,DEV=0
surround51:CARD=CA0106,DEV=0
surround71:CARD=CA0106,DEV=0

speaker-test -c6 -Dplug:surround51 -t wav -l1

speaker-test 1.0.21

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 16384
Period size range from 16 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 8,367749

So why even if in smplayer is set to surround 5.1 (Alsa) i still hear only the front speakers ?

I have even tried to use a .asoundrc file:

# copy from here to the end of this file to /home/$USER/.asoundrc
# .asoundrc for new ttable settings created by gnubien 08-11-07
# comments,additions and corrections are always welcome
# test with this command: aplay -Dnewtable some.2-channel.stereo.wav
# test to see if .wav file is 2 channel stereo with this command: file name.of.wav
# if file returns "stereo" then it is a 2 channel stereo file
# run this command: speaker-test -c6 -Dplug:newtable -t wav -l1
# if speaker-test worked then ...
# run this command: speaker-test -c6 -Dplug:surround51 -t wav -l1
# report problems
# if no problems then you can use this new pcm by setting the device to
# newtable in your sound and video apps like these examples
# mplayer -ao alsa:device=newtable some.mp3
# mplayer -af channels=6 -ao alsa:device=newtable dvd://1 -alang en 
pcm.card0 {
     type hw
     card 0
          }

pcm.newtable {
    type route
    slave.pcm surround51
    slave.channels 6 
    #new ttable settings
    ttable.0.0 1    # channel 0; speaker 0; volume 100%                                                       
    ttable.1.1 1    # channel 1; speaker 1; volume 100%                                                       
    ttable.2.2 1    # channel 2; speaker 2; volume 100%                                                       
    ttable.3.3 1    # channel 3; speaker 3; volume 100%                                                       
    ttable.4.4 1    # channel 4; speaker 4; volume 100%                                                       
    ttable.5.5 1    # channel 5; speaker 5; volume 100%
             }
ctl.card0 {
    type hw
    card 0
          }

Still no results…i really don’t know what else i should do…
Pls help ^^;

If you need any other info just ask.

Looks like i managed to make it work using this .asoundrc from a dutch site.(proper upmix with subwoofer and center separated as well).


pcm.!default {
         slave.pcm surround51
         slave.channels 6
         type route
         ttable.0.0 1
         ttable.1.1 1
         ttable.0.2 1
         ttable.1.3 1
         ttable.0.4 0.5
         ttable.1.4 0.5
         ttable.0.5 0.5
         ttable.1.5 0.5
}

pcm.51ch {
         slave.pcm surround51
         slave.channels 6
         type route
         ttable.0.0 1
         ttable.1.1 1
         ttable.0.2 1
         ttable.1.3 1
         ttable.0.4 0.5
         ttable.1.4 0.5
         ttable.0.5 0.5
         ttable.1.5 0.5
    hint {
    show on
    description "Surround 5.1 Channel"
}  
}

cheers

Thanks for sharing your solution.