Firefox binds to the first discovered ALSA device.
This means that you can have system sounds, vlc sound, but no flash sound.
Amongst the myriads of online solutions, here's one that worked for me.
My HDMI sound card is an NVIDIA :
You can see that HMDI is device 3, but Firefox will use the first discovered one, ie Device 0. You can force the default card to be device 3 by creating a ~/.asoundrc file :
$ cat ~/.asoundrc
pcm.!default {
type hw
card 0
device 3
}
ctl.!default {
type hw
card 0
}
Reboot, and the default alsa device will now be the HDMI one.
Cheers !
This means that you can have system sounds, vlc sound, but no flash sound.
Amongst the myriads of online solutions, here's one that worked for me.
My HDMI sound card is an NVIDIA :
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC889A Analog [ALC889A Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC889A Digital [ALC889A Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC889A Analog [ALC889A Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC889A Digital [ALC889A Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
You can see that HMDI is device 3, but Firefox will use the first discovered one, ie Device 0. You can force the default card to be device 3 by creating a ~/.asoundrc file :
$ cat ~/.asoundrc
pcm.!default {
type hw
card 0
device 3
}
ctl.!default {
type hw
card 0
}
Reboot, and the default alsa device will now be the HDMI one.
Cheers !