[PATCH v2 0/2] ASoC: hdmi-codec: ELD fixes for unplug and hotplug races

From: Lin Tzu Yang

Date: Sun Nov 29 2026 - 22:48:10 EST


Two fixes for how hdmi-codec handles the ELD across hotplug.

Patch 1 is v2 of "ASoC: hdmi-codec: Clear the parsed ELD on unplug".
Patch 2 was sent separately as "ASoC: hdmi-codec: Hold the lock while
the ELD is updated or read" and depends on patch 1, so they are now
sent together.

Changes in v2:
- Patch 1: clear the ELD before reporting the unplug, as Mark
suggested, so userspace can't read the old ELD after the event.
- Patch 2: rebased on the new patch 1. The unplug path now clears the
ELD under the lock and reports the jack after dropping it.
- Use my full name in Signed-off-by.

v1 of patch 1:
https://lore.kernel.org/all/20261126103757.655758-1-rongh7426@xxxxxxxxx/
v1 of patch 2:
https://lore.kernel.org/all/20261129083329.786322-1-rongh7426@xxxxxxxxx/

Lin Tzu Yang (2):
ASoC: hdmi-codec: Clear the parsed ELD on unplug
ASoC: hdmi-codec: Hold the lock while the ELD is updated or read

sound/soc/codecs/hdmi-codec.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

--
2.51.1.windows.1