HDMI Audio - The Easy Way

Configuring HDMI audio by following this guide makes it so you don't have to reboot your system after everytime you change your audio output.

You will need to SSH into your box. you can follow the instructions here. http://wiki.openelec.tv/index.php?title=OpenELEC_FAQ#How_do_i_use_SSH.3F

Then we need to see the available audio outputs by typing: aplay -l which will show something like this **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0

Download a test file (google for front_center.wav you will find it). Put this somewhere on your HTPC and run the following test (from ssh): aplay -D plughw:0,1 /path/to/your/Front_Center.wav

If nothing plays then try the next device: aplay -D plughw:0,2 /path/to/your/Front_Center.wav

Continue this until you find the device that outputs audio.

Then in the audio configuration your can set it to this device or set it to custom and type the device in like so: plughw:0,2