Multichannel PCM is broken on TCL TVs (and how to fix it)
TL;DR
TCL TVs on the Realtek R75P platform have a firmware bug that breaks multichannel LPCM (5.1/7.1) from HDMI inputs to eARC soundbars.
Magisk module fixing this: https://github.com/karmishin/tcl-earc-multipcm. You'll need an unlocked bootloader and root on the TV.
The problem
Any HDMI input I tried connecting to my TV (Nintendo Switch 2, MacBook, etc.) wouldn't send multichannel LPCM to my Sonos soundbar. Instead the Sonos app would show "Stereo PCM" even when the source device recognized the sound output as 5.1-capable.
None of the TV settings I tried were helpful. I found a 4PDA post where someone had a similar problem, but it gave no clues beyond that.
The easiest (and most expensive) solution at that point would have been to just get an eARC extractor.
Reverse engineering proprietary audio libs is not my strongest suit, so I had Opus 5.5 help me put together a Magisk module to fix this :)
The bug
When an eARC soundbar connects, it tells the TV which audio formats it can handle. It does this with a list of Short Audio Descriptors (SADs). Sonos Beam Gen 2 sends 0F 07 07 (8-channel LPCM at 32/44.1/48 kHz, 16/20/24-bit). The TV uses this list to decide whether to send multichannel PCM (the check is in /vendor/lib/libthal_audio.so).
On stock TCL firmware this check only passes if the soundbar reports exactly 0F 7F 07 (8-channel LPCM at 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24-bit). So basically the TV will only output multichannel PCM if your soundbar supports every sample rate up to 192 kHz.
Sonos Beam Gen 2 doesn't support anything over 48 kHz, which is normal for a soundbar.
The fix
The Magisk module patches libthal_audio.so so that the TV skips the sample-rate part of the check. Magisk overlays the patched library on top of the original, so the actual /vendor isn't modified.
Installation
Before you start
You'll need:
- a TCL TV on the R75P platform with an unlocked bootloader and Magisk 27.0 (there's a rooting guide in Russian in this 4PDA thread)
- network debugging turned on in the TV's developer options
adb,python3andzipon your computer
I've only tested this on a TCL 55P7K (firmware V8-R75PT01-LF1V500) with a Sonos Beam Gen 2. On other R75P models the patcher looks for exactly the code it expects, and it refuses to patch a library that doesn't match.
Build/install
Download the module and go into its folder:
curl -L https://github.com/karmishin/tcl-earc-multipcm/archive/refs/heads/main.tar.gz | tar xzcd tcl-earc-multipcm-main
Connect to the TV (replace the address with your TV's IP), and accept the debugging prompt on the TV:
adb connect 192.168.1.50
Build the module. This copies libthal_audio.so from your TV, patches it and packs the result into a zip in dist/:
./build.sh --pull
Copy the zip to the TV, install it with Magisk and reboot:
adb push dist/tcl-earc-multipcm-*.zip /data/local/tmp/m.zipadb shell su -c magisk --install-module /data/local/tmp/m.zipadb reboot
The first time you run su over adb, Magisk asks on the TV whether to grant root to the shell. Allow it.
After the TV boots, reconnect with adb connect and check that the module is active:
adb shell su -c sh /data/adb/modules/tcl_earc_multipcm/status.sh
It should print active: /vendor/lib/libthal_audio.so is the patched lib. Now play something in 5.1 from an HDMI input, and the Sonos app should start showing "Multichannel PCM 5.1".
The module is built from your TV's exact library. After a firmware update it turns itself off, and you'll need to run ./build.sh --pull and install it again.
Uninstall
Remove the module in the Magisk app, or run:
adb shell su -c touch /data/adb/modules/tcl_earc_multipcm/removeadb reboot