mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 3b5412d506f5b7f2d947346ccdda8b67c9902576 Mon Sep 17 00:00:00 2001
|
|
From: Hristo Venev <hristo@venev.name>
|
|
Date: Fri, 5 Jun 2020 09:22:49 +0000
|
|
Subject: [PATCH] snd_bcm2835: disable HDMI audio when vc4 is used
|
|
(#3640)
|
|
|
|
Things don't work too well when both the vc4 driver and the firmware
|
|
driver are trying to control the same audio output:
|
|
|
|
[ 763.569406] bcm2835_audio bcm2835_audio: vchi message timeout, msg=5
|
|
|
|
Hence, when the vc4 HDMI driver is used, let it control audio. This is done
|
|
by introducing a new device tree property to the audio node, and
|
|
extending the vc4-kms-v3d overlays to set it appropriately.
|
|
|
|
Signed-off-by: Hristo Venev <hristo@venev.name>
|
|
---
|
|
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
|
|
+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
|
|
@@ -381,7 +381,9 @@ static int snd_bcm2835_alsa_probe(struct
|
|
}
|
|
|
|
if (!enable_compat_alsa) {
|
|
- set_hdmi_enables(dev);
|
|
+ if (!of_property_read_bool(dev->of_node, "brcm,disable-hdmi"))
|
|
+ set_hdmi_enables(dev);
|
|
+
|
|
// In this mode, always enable analog output
|
|
enable_headphones = true;
|
|
} else {
|