44.1 kHz sample rate causes issues with HDMI audio on some TVs
- PipeWire version (
pipewire --version
): 0.3.52 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Fedora Linux 36 (Workstation Edition) - Desktop Environment: GNOME Shell 42.2
- Kernel version (
uname -r
): 5.17.14-300-fc36.x86_64
Description of Problem:
With the release of 0.3.52, Pipewire has added 44.1 kHz as an allowed sampling rate by default, this means that 44.1 kHz audio sources are not longer resampled to 48 kHz by default unless necessary (in the case of multiple programs playing audio for example). This sounds great as it now avoids introducing potential resampling artifacts, but for whatever reason it's causing 2 of my TVs to literally have no sound output over HDMI whenever the source has a sample rate of 44.1 kHz (48 kHz still plays fine).
I could easily assume the TVs are at fault since 44.1 kHz is in the HDMI spec and it should be supported, but sending 44.1 kHz HDMI audio from Windows works fine so I honestly have no idea what is happening under Linux.
I've found several instances of the exact same issue on the internet, with the "solution" being forcing 48 kHz since it's an easy fix. However, since it seemingly works on Windows, I think there might be something else going on here. I'll leave some links as references:
https://bugs.freedesktop.org/show_bug.cgi?id=75038
https://bugs.freedesktop.org/show_bug.cgi?id=97442
https://bbs.archlinux.org/viewtopic.php?id=207085
https://forums.linuxmint.com/viewtopic.php?t=252740
https://forums.linuxmint.com/viewtopic.php?t=349665
Keep in mind these may or may not be the same issue, and there's a decent chance this has nothing to do with Pipewire itself, as it also happens with Pulse. It might also be the Intel driver at fault, but I suppose the audio experts would be able to judge it better than me.
How Reproducible:
100% reproducible, 44.1 kHz audio over HDMI never plays on the affected device.
Steps to Reproduce:
- Make sure there is no audio being played.
- Play a 44.1 kHz audio file, it can also be a video with 44.1 kHz audio.
Actual Results:
No sound coming from the output device.
Expected Results:
Sound should come out from the output device.
Additional Info (as attachments):
-
pw-dump > pw-dump.log
: pw-dump.log