I've managed to set up my pi so hdmi0 is my tv and hdmi1 is my amp. It was this post that helped me do that...cocodude wrote: ↑Sat Sep 28, 2019 8:16 pmI have an interesting issue whereby audio goes down different HDMI ports on the RPi 4 depending on whether I'm allowing passthrough or not.
My situation is that I have a Raspberry Pi 4 with a 4k monitor on HDMI 0, and my audio receiver connected to HDMI 1. The reason for this is that the audio receiver can't process 4k video, so I'm sending sound directly to it so it can handle DTS etc. which my TV can't. The setup is:
[*] HDMI 0 -> TV
[*] HDMI 1 -> Audio receiver
In the Raspbian GUI, I have configured audio to go to HDMI 1 (right click on the speaker icon), which presumably changes the ALSA default to HDMI 1. In Kodi, I have configured the default sound output to be the ALSA default. Decoded/PCM audio in Kodi correctly goes to HDMI 1.
However, when I enable audio passthrough, the encoded (Dolby Digital in my case) audio only goes to HDMI 0.
I may be wrong, but I believe this is because Kodi only sends audio to direct digital audio outputs (e.g. not ALSA) and Kodi directly only lists one HDMI port for video output. This is, of course, HDMI 0.
Is there any reason why Kodi only lists the one HDMI port (plus ALSA etc.) in the list of sound output devices?
https://www.raspberrypi.org/forums/view ... 4#p1526690