drm/vc4: hdmi: Fix HDMI monitor detection in polled mode
authorMatthias Reichl <hias@horus.com>
Thu, 30 Dec 2021 13:28:37 +0000 (14:28 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:36 +0000 (16:04 +0000)
commitf118bdc43b10a9e32d2685bf51a2256bbcb6d207
tree1f0b2456a20e05e2baf0645a1f3c9a9cbc7dba82
parent299d5a523f68540c78bdba1532d0b0f8e5838728
drm/vc4: hdmi: Fix HDMI monitor detection in polled mode

When vc4_hdmi_connector_detect() was called in
connector_status_connected state it incorrectly cleared the
hdmi_monitor flag, leading to no audio on RPi3.

Fix this by clearing hdmi_monitor only when the hpd check
indicated no connection or if reading the edid failed.

Signed-off-by: Matthias Reichl <hias@horus.com>
drivers/gpu/drm/vc4/vc4_hdmi.c