Sound not working when both the sound card and HDMI use the Intel HDA driver. How to exchange their device loading order?

view full story

http://unix.stackexchange.com – I have an Acer Aspire One 522 netbook which has an Intel HDA sound card based on the Conexant CX20584 chipset. Although KDE does output sound when starting up, flash and probably many other apps which look for a /dev/dsp device just can't output sound through it, rendering a pretty much useless multimedia experience. When I checked my ALSA playback devices with aplay -l, I could see the main audio device was getting recognized as card 1 instead of 0, which was being hooked up to HDMI instead: **** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HD (HowTos)