]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Disable audio if dmas property is present but empty
authorPhil Elwell <phil@raspberrypi.org>
Mon, 13 Jun 2022 14:47:44 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:53 +0000 (14:22 +0200)
commit217985d0e1c339298e848972825afe240fb038ca
treedc48d912b2867d886e9bef22c4ce136333ef7e44
parent6f1ee4726eb7cf0600a1ed6e94e2c2b21d72c927
drm/vc4: hdmi: Disable audio if dmas property is present but empty

commit 54d0b2539b37fcfbc78269eab414a892b384cfbe upstream.

The dmas property is used to hold the dmaengine channel used for audio
output.

Older device trees were missing that property, so if it's not there we
disable the audio output entirely.

However, some overlays have set an empty value to that property, mostly
to workaround the fact that overlays cannot remove a property. Let's add
a test for that case and if it's empty, let's disable it as well.

Cc: <stable@vger.kernel.org>
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Link: https://lore.kernel.org/r/20220613144800.326124-18-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_hdmi.c