]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Introduce an output_enabled flag
authorMaxime Ripard <maxime@cerno.tech>
Mon, 25 Oct 2021 14:11:12 +0000 (16:11 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 5 Nov 2021 11:53:29 +0000 (12:53 +0100)
commit04e611d27d34f1a8f2434a8eeda98c0cd57207d8
treedbf04225286907a47ac4c18b97667d6319fe3060
parentc1c032d1be887d838f6d8d2de765852d17fe6ec1
drm/vc4: hdmi: Introduce an output_enabled flag

We currently poke at encoder->crtc in the ALSA code path to determine
whether the HDMI output is enabled or not, and thus whether we should
allow the audio output.

However, that pointer is deprecated and shouldn't really be used by
atomic drivers anymore. Since we have the infrastructure in place now,
let's just create a flag that we toggle to report whether the controller
is currently enabled and use that instead of encoder->crtc in ALSA.

Link: https://lore.kernel.org/r/20211025141113.702757-9-maxime@cerno.tech
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h