How to configure a CMI9761 for 5.1 sorround sound

Hello all, I wonder if somebody could guide/point me to the right direction to configure opensuse 11.1 to play 5.1 audio. The hardware is working fine under windows and mandriva, but got no joy with suse. As per posts that I have seen, I provide you some info so maybe the problem is clear. Thank you.

speaker-test -Dplug:front -c2 -l5 -twav → ok, sound on both speakers

speaker-test -c2 -l5 -twav → ok, sound on both speakers

After executing : wget -O && bash , I obteined:

rpm -qa | grep alsa , shows:

rpm -qa | grep pulse , shows:

rpm -q libasound2 , shows:

uname -a is:
Linux clear #1 SMP 2009-03-31 14:50:44 +0200 i686 i686 i386 GNU/Linux

cat /etc/modprobe.d/sound , shows:
options snd slots=snd-via82xx

Ssy1.Ygdz0JkHI56:K7VT6 motherboard

alias snd-card-0 snd-via82xx

Any help is welcome, thank you in advance.

Hi pasaporte,

I’m relatively new to 5.1 surround systems, having purchased mine less than a month ago, and having tried it thus far on only two PCs. I documented my experiences with the first PC I tried it on here:
Exploring surround sound in Linux - openSUSE Forums

If I were you, I would take a very close look at your mixer. I highlighted some of your mixer settings below that puzzle me, but I’m not so experienced yet with this, and so you may need to look at more than just what I suggest you examine:

!!Amixer output

!!-------Mixer controls for card 0 [V8237]

Card hw:0 ‘V8237’/‘VIA 8237 with CMI9761A at 0xe400, irq 22’
Mixer name : 'C-Media Electronics CMI9761A ’

**Simple mixer control ‘Master’,0
** Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Front Left: Playback 0 [0%] -46.50dB] [on]
Front Right: Playback 0 [0%] -46.50dB] [on]

**Simple mixer control ‘Surround’,0
** Capabilities: pswitch
Front Left: Playback [off]
Front Right: Playback [off]

Simple mixer control ‘Center’,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Mono: Playback 31 [100%] [0.00dB] [off]

Simple mixer control ‘LFE’,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Mono: Playback 0 [0%] -46.50dB] [off]

Simple mixer control ‘Channel Mode’,0
Capabilities: enum
Items: ‘2ch’ ‘4ch’ ‘6ch’
Item0: '2ch’

From what I can see of the above, in your PC’s mixer it has surround switched OFF. It has 2 channel instead of 6 channel (for a 5.1) in your PC’s system selected. And your PC has Master and other important volume controls at 0% or muted.

I think (but not sure) that almost certainly will stop surround sound from working. I believe you will need to tune those.

Now for testing your surround sound system, take a look at the tests I tried. For example:
speaker-test -c6 -Dplug:surround51 -t wav -l1

However I found that does not work for my new PC, and I have not figured out why yet. But for my new PC, I found downloading this file:
and then playing it in vlc and also in mplayer, helped in configuring my 5.1 system on my new PC.

Good luck, and I hope that helps.

Thank you for your response oldcpu:

I’ve made a few changes and it’s working now perfect in alsa, I use gnome and I would like to have it working with pulse audio, the weird thing is that it acts as if it was in 5.1 mode, but it only provides sound on the front speakers, as if , I mean playing the sound speaker test,it plays but only from the front ones, when the lady says right or left rear, it sounds but on the front ones basically.

Here it is the new outcome from the alsa script in case anyone is interested as it works now:

And on the pulse audio issue, any ideas? , I test the sound using kaffeine and I change the settings to test one or the other… weird

Pulseaudio issue sorted, I had to set it up on the pulse configuration, the only thing is that it crashes now and then when I try to set up the differnt channels volume individually. It gives me a message that the sound is busy, any ideas?

I known next to nothing about pulse audio. But crashes don’t read to be proper behaviour.

You could be in bug reporting territory:
Community - PulseAudio - Bug reporting