Setting up surround sound with optical out

view story

http://unix.stackexchange.com – I have centos 6.3 running on this pc. the built in sound card is detected normally and is a 7.1 card with all speakers listed. It includes a optical out as well as hdmi for the built in video. It looks like pulse audio is automagicly miss configuring the optical out as it is listed as sterio digital out. the analog out is listed as analog sterio - analog surround 5.1 there are 4 or so different variations listed in the pulse audio sound applet. if i select the test sound it has left and right front. I get audio through the digital connection but is only those 2 channels. opening alsa mixe (HowTos)