Ok, tried it myself but it doesn't seem to to be working.
Locating the correct device number
Code:
simkin@xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC889A Analog [ALC889A Analog]
Subdevices: 0/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: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 0/1
Subdevice #0: subdevice #0
Changed the .asoundrc to config 1
Code:
simkin@xbmc:~$ cat .asoundrc
defaults.pcm.device 3
Rebooted the Asrock and tried to play a test WAV file
Code:
simkin@xbmc:~$ aplay cat.wav
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HDA-Intel.pcm.hdmi.3:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hdmi
aplay: main:608: audio open error: No such file or directory
Changed the .asoundrc to config 2
Code:
simkin@xbmc:~$ cat .asoundrc
pcm.!default {
type plug
slave {
pcm "hdmi"
}
}
(Successfully) played a test WAV file
Code:
simkin@xbmc:~$ aplay cat.wav
Playing WAVE 'cat.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
In XBMC started Firefox and heard sound
Rebooted the Asrock a second time and played a test WAV file. This time I did not hear anything
Code:
simkin@xbmc:~$ aplay cat.wav
aplay: main:608: audio open error: Device or resource busy
In XBMC started Firefox and no longer heard sound
Any ideas?