Problem.
System has a creative sound card and an ATI gfx card which has a sound card for audio over HDMI. ATI HDMI is the default sound card.
Create the file /etc/modprobe.d/50-alsa.conf
with contents[1]
options snd-hda-intel index=1,0
Reboot.
Order should now be correct:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Creative [HDA Creative], device 0: CA0110-IBG Analog [CA0110-IBG Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Creative [HDA Creative], device 1: CA0110-IBG Digital [CA0110-IBG Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ID aa01 Digital [ID aa01 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
[1] https://bbs.archlinux.org/viewtopic.php?pid=1446773#p1446773