]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: hdac_hdmi: Rate limit logging on connection and disconnection
authorMark Brown <broonie@kernel.org>
Fri, 13 Jun 2025 16:41:04 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:02 +0000 (18:41 +0200)
commit2e62ac3024d197924dc938d202515c4288eb7664
tree183690678769329e3c7aa0195ca91d0deccaa589
parent4e33456fd64d38523184ef5b95a2865fb190125c
ASoC: hdac_hdmi: Rate limit logging on connection and disconnection

[ Upstream commit c4ca928a6db1593802cd945f075a7e21dd0430c1 ]

We currently log parse failures for ELD data and some disconnection events
as errors without rate limiting. These log messages can be triggered very
frequently in some situations, especially ELD parsing when there is nothing
connected to a HDMI port which will generate:

hdmi-audio-codec hdmi-audio-codec.1.auto: HDMI: Unknown ELD version 0

While there's doubtless work that could be done on reducing the number of
connection notification callbacks it's possible these may be legitimately
generated by poor quality physical connections so let's use rate limiting
to mitigate the log spam for the parse errors and lower the severity for
disconnect logging to debug level.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20250613-asoc-hdmi-eld-logging-v1-1-76d64154d969@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/hdac_hdmi.c