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)
committerMark Brown <broonie@kernel.org>
Sun, 22 Jun 2025 23:26:54 +0000 (00:26 +0100)
commitc4ca928a6db1593802cd945f075a7e21dd0430c1
tree218a8f37d2e8ad7c0bd6c0d4863c297d386a50fc
parentac558015dfd803626622bd0ba9645d58a3ed16b1
ASoC: hdac_hdmi: Rate limit logging on connection and disconnection

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>
sound/soc/codecs/hdac_hdmi.c