Sound Over HDMI

I still haven’t figured out the sound problem on the HTPC. As a workaround, I have been using the line out 3.5mm jack to feed an older set of speakers, but there’s no remote control for volume on those speakers.

Some useful commands:

aplay -l
aplay -L

to see what sound devices there are. The Intel audio card is there and if I run
aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav it works. If I don’t specify the device, there’s no error, but no sound.

I also tried to set up ~/.asoundrc:

pcm.!default {
type hw
card PCH
device 7

But running aplay without the device parameter still gives no sound, but there’s an error message:

aplay: set_params:1065: Channels count non available