rene_lnx
Posts: 11
Joined: Wed Jan 25, 2017 6:56 am

add Surround2.1 to Analog Output

Fri Sep 08, 2017 1:11 am

Hi everyone,

I would like to add Surround 2.1 to Sound Setting's Analog Output list for a CMI8878 sound card.
Current listed outputs are Surround 4.1 and 5.1, which give me good results for music and web videos but inconsistent ones for games.

The sound card itself is a Asus Xonar DG and according to the manual, my speakers are plugged in the right one (green).
The Analog output is the only one that gives me sound in Solus and to do so I have to set it to multichannel instead of headphone through alsa.

If anyone has a good process for this I'm interested to learn :).

Thanks in advance.

R

rene_lnx
Posts: 11
Joined: Wed Jan 25, 2017 6:56 am

Re: add Surround2.1 to Analog Output

Sun Sep 10, 2017 9:16 pm

Hello again,

I've found that the solution to this issue is to downmix surround to stereo in this post : https://bbs.archlinux.org/viewtopic.php?id=163041

It removes the analog-output from Gnome-Sound-Settings output list and replace headphones with it.
Make sure you define it as your default output and execute cmd "sudo alsactl store" in terminal.

For those interested, you can copy-paste the following in .asoundrc in your home folder:

pcm.card0 {
type hw
card 0
}

pcm.!surround40 stereo4
pcm.!surround51 stereo5

pcm.stereo4 {
type route
slave.pcm card0
slave.channels 2
ttable.0.0 1 # fl left 100 volume
ttable.1.1 1 # fr right 100
ttable.2.0 1 # rl left 100
ttable.3.1 1 # rr right 100
}

pcm.stereo5 {
type route
slave.pcm card0
slave.channels 2
ttable.0.0 1 # fl left 100 volume
ttable.1.1 1 # fr right 100
ttable.2.0 1 # rl left 100
ttable.3.1 1 # rr right 100
ttable.4.0 0.5 # cl left 50
ttable.5.1 0.5 # cr right 50
}

R

Return to “Multimedia”