Skip to content

iec958 plugin enhancements for HDMI

Matthias Reichl alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pcm: iec958: implement HDMI HBR audio formattingsrc/pcm/pcm_iec958.c+33 -40 replies
2/2pcm: iec958: set channel status bits according to rate and formatsrc/pcm/pcm_iec958.c+76 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] iec958 plugin enhancements for HDMI

Testing with vc4-hdmi / Raspberry Pi 4 showed that the iec958 plugin was missing two features required for HDMI compatibility:

HD audio bitstreams like DTS HD MA or Dolby True HD are usually packed into 8-channel 192kHz 16-bit frames but are in fact a single IEC 61937 stream at 768kHz frame rate. So the data in the 8-channel frame has to be formatted as 4 contiguous IEC 60958 frames.

If channel status bits weren't set, iec958 indicated a sample rate of 48kHz in the channel status bits which the HDMI analyzer complained about and caused issues with some HDMI devices if it didn't match the real rate. That was a long outstanding FIXME since the iec958 plugin was added.

With this series HD audio passthrough and PCM audio works fine with the downstream 5.4 RPi kernel.

Matthias Reichl (2):
pcm: iec958: implement HDMI HBR audio formatting
pcm: iec958: set channel status bits according to rate and format

 src/pcm/pcm_iec958.c | 117 ++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 109 insertions(+), 8 deletions(-)
Signature · 1 line
2.20.1