Soundproblem: Digital Out doesn't work in Firefox, etc.

Hello,

I’m trying to configure alsa to use the digital out of my soundcard for application like Mozilla Firefox and Flash.

The digital out works fine with xine, mplayer, xmms but every time I use Firefox an surf to https://www.youtube.com/watch?v=(http://www.youtube.com) the output port keeps quiet.

I have 2 soundcards. Onboard soundcard (snd-intel8x0) and snd-cs46xx. The last one is used with an optical kabel to my receiver.

How can I configure that the iec958 port (hw0,2) should be used by firefox and flash?

I found out that firefox uses my second card (snd-intel8x0).

I tried to configure /etc/asound.conf but I didn’t find a right configuration.

Can anyone help me?