I have a 4k HDR TV with ARC but not eARC, a Pioneer SC-1224 AVR capable of 4k60p but not HDR and 7.2 multichannel audio and 2 Rock64's.
One Rock64 (hostname: soundserver; IP address: 192.168.2.34) is running Debian Bookworm with kernel 5.15 (from experimental) and PulseAudio in system mode. I've downgraded PA from 15.0 to 14.2 to match what's running on LE. It has 2 sound cards, HDMI and SPDIF although I've never gotten the latter to output any sound. I'm using the simple-card alsa card definition from LibreELEC.
The other Rock64 (hostname: kodi-rock64; IP address: 192.168.2.32) is running "LibreELEC (community): nightly-20211111-b431638 (RK3328.arm)", but I've also tried it with LE 10.0.1.
What I've used so far is that both are connected via a HDMI cable to the AVR and the AVR is connected via HDMI cable to my TV.
That works really well, except I can't properly view HDR content. If I connect kodi-rock64 directly to my TV, I do have (4k x265) HDR, but then I won't have multichannel audio.
To get both HDR and multichannel audio, I want to connect kodi-rock64 directly to my TV, but send the audio over the network to soundserver which then sends it to my AVR.
I tried following the instructions from https://wiki.libreelec.tv/configuration/…network-sending but I never got the tunnel-sink, only the null-sink.
My PC can connect and use PA on soundserver to play sound, so I'm quite sure I've set it up correctly. I have now set "default-server = tcp:192.168.2.34:4713" in "~/.config/pulse/client.conf", and now I do see both the HDMI and SPDIF sinks
But in Settings/System/Audio, Audio output device I only see the SPDIF card, which doesn't work [for me|afaik]. If I blacklist "snd_soc_rockchip_spdif", then the SPDIF card is gone, but that still doesn't get me the HDMI sink to select in Settings/System/Audio.
What do I need to do to get the HDMI soundcard to appear in System Settings, which then (hopefully) allows me to watch 4k HDR content with multichannel audio?
Various data:
diederik@soundserver:~$ pactl info
Server String: /var/run/pulse/native
Library Protocol Version: 34
Server Protocol Version: 34
Is Local: yes
Client Index: 29
Tile Size: 65472
User Name: pulse
Host Name: soundserver
Server Name: pulseaudio
Server Version: 14.2
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.platform-hdmi-sound.hdmi-surround71
Default Source: alsa_output.platform-hdmi-sound.hdmi-surround71.monitor
Cookie: xyz
diederik@soundserver:~$ pactl list cards | grep -E "^Card|Name:|driver_name|Profiles:|output:|device.product.name"
Card #0
Name: alsa_card.platform-hdmi-sound
alsa.driver_name = "snd_soc_simple_card"
Profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
Active Profile: output:hdmi-surround71
device.product.name = "SC-1224"
Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
Card #1
Name: alsa_card.platform-spdif-sound
alsa.driver_name = "snd_soc_simple_card"
Profiles:
output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (sinks: 1, sources: 0, priority: 300, available: yes)
Active Profile: output:iec958-ac3-surround-51
iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
Part of profile(s): output:iec958-stereo
kodi-rock64:~ # pactl info
Server String: tcp:192.168.2.34:4713
Library Protocol Version: 34
Server Protocol Version: 34
Is Local: no
Client Index: 10
Tile Size: 65496
User Name: pulse
Host Name: soundserver
Server Name: pulseaudio
Server Version: 14.2
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.platform-hdmi-sound.hdmi-surround71
Default Source: alsa_output.platform-hdmi-sound.hdmi-surround71.monitor
Cookie: xyz
kodi-rock64:~ # pactl list short cards
0 alsa_card.platform-hdmi-sound module-alsa-card.c
1 alsa_card.platform-spdif-sound module-alsa-card.c
kodi-rock64:~ # pactl list short modules
0 module-device-restore
1 module-stream-restore
2 module-card-restore
3 module-udev-detect
4 module-alsa-card device_id="1" name="platform-hdmi-sound" card_name="alsa_card.platform-hdmi-sound" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
5 module-alsa-card device_id="0" name="platform-spdif-sound" card_name="alsa_card.platform-spdif-sound" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
6 module-native-protocol-unix
7 module-default-device-restore
8 module-always-sink
9 module-suspend-on-idle
10 module-position-event-sounds
11 module-native-protocol-tcp auth-anonymous=1 auth-ip-acl=127.0.0.1;192.168.2.0/24
12 module-zeroconf-publish
In Settings/System/Audio, Audio output device list:
ALSA: Default (Analog ff010000.i2s-rk3328-hifi ff410000.codec-0)
ALSA: Analog, ff010000.i2s-rk3328-hifi ff410000.codec-0
ALSA: HDMI, ff000000.i2s-i2s-hifi i2s-hifi-0
ALSA: HDMI, GSM LG TV on HDMI
ALSA: SPDIF, ff030000.spdif-dit-hifi dit-hifi-0
ALSA: SPDIF, ff030000.spdif-dit-hifi dit-hifi-0 S/PDIF
PULSE: Default, Bluetooth Audio (PULSEAUDIO)
PULSE: Built-in Audio Digital Surround 5.1 (IEC958/AC3), Built-in Audio Digital Surround 5.1 (IEC958/AC3) (PULSEAUDIO)
Display More