]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: pcm_drm_eld: rate-limit ELD parsing errors
authorFrancesco Saverio Pavone <pavone.lawyer@gmail.com>
Sat, 16 May 2026 14:12:44 +0000 (16:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 16 May 2026 14:20:07 +0000 (16:20 +0200)
commitd04a0047d619ddbc50e023aa76e4dddf86e5da3f
treedf350c04ff677dcac71a8e93a519f42971985101
parent0aacce7c32e4631c3634df5d19d30c72a3614ec9
ALSA: pcm_drm_eld: rate-limit ELD parsing errors

Mirror of Mark Brown's ASoC: hdac_hdmi rate-limit patch (commit
[lkml.kernel.org/lkml/2025/6/13/1380]) for the generic snd_parse_eld()
helper used by ASoC hdmi-codec.

When a HDMI sink is disconnected (e.g. a board with two HDMI outputs and
only one cable), userspace audio servers like PipeWire keep probing the
disconnected card and trigger:

    HDMI: Unknown ELD version 0

at every probe — easily 30+ messages per burst on rk3588. The same
applies to malformed ELD (MNL out of range). Both conditions are
expected when no sink is attached; rate-limit the dev_info() so the
kernel ring buffer does not fill up.

Signed-off-by: Francesco Saverio Pavone <pavone.lawyer@gmail.com>
Link: https://patch.msgid.link/20260516141244.21801-1-pavone.lawyer@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_drm_eld.c