New day, new patches. This time there is a proper lock around access to the ELD buffer. I hope this satisfies the previous comments.
I've also tested the patches together with some PulseAudio patches I'm writing and the notification works just fine. The ELD data shows up 300 ms after hotplug, so it's likely the first repoll giving me new ELD data).
David Henningsson (4): ALSA: hda - hdmi: ELD shouldn't be valid after unplug ALSA: hda - hdmi: Do not expose eld data when eld is invalid ALSA: hda - hdmi: protect access to ELD buffer ALSA: hda - hdmi: Notify userspace when ELD control changes
sound/pci/hda/hda_eld.c | 12 ++++++-- sound/pci/hda/hda_local.h | 3 ++ sound/pci/hda/patch_hdmi.c | 67 +++++++++++++++++++++++++++++++++++--------- 3 files changed, 66 insertions(+), 16 deletions(-)