Trying 5.1 audio out of hdmi

Hi !

I a fond of ambient music and i want to make sort of mini “acousmonium” to be able to make multichannel patches for lives with 6 speakers :slight_smile:

So i tried to output audio to HDMI from my Organelle M (OS 4.2).

I thought HDMI will be the most low cost solution so i bought a tiny 100W 5.1 amp (pfa560bt from Pyle).

Following this post : I got 5.1 audio work over HDMI from VLC with ALSA on Pi 3A+ - Raspberry Pi Forums

I changed /boot/config.txt with this at the end :

hdmi_drive=2
dtparam=audio=on
hdmi_stream_channels=1
hdmi_channel_map=335201480

and create a /home/music/.asoundrc with this :

pcm.!surround51 {
type route
slave.pcm "hw:0,0"
slave.channels 8
ttable {
0.0= 1
1.1= 1
2.4= 1
3.5= 1
4.2= 1
5.3= 1
6.6= 0
7.7= 0
}
}

Using VNC, i tried the speakers with this command but i had only front right and front left working.

speaker-test -c6

I tested the amp with another source and all 6 channels worked so i think i can use some help here :wink:

Thanks for this marvelous device !