mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 01:59:02 +00:00
7d7aa2fd92
This change makes the names of Broadcom targets consistent by using the common notation based on SoC/CPU ID (which is used internally anyway), bcmXXXX instead of brcmXXXX. This is even used for target TITLE in make menuconfig already, only the short target name used brcm so far. Despite, since subtargets range from bcm2708 to bcm2711, it seems appropriate to use bcm27xx instead of bcm2708 (again, as already done for BOARDNAME). This also renames the packages brcm2708-userland and brcm2708-gpu-fw. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 8befbf55f2668a4dae739588ed3c0b0d06fccacd Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
Date: Wed, 31 Jul 2019 17:36:34 +0100
|
|
Subject: [PATCH] drm/vc4: A present but empty dmas disables audio
|
|
|
|
Overlays are unable to remove properties in the base DTB, but they
|
|
can overwrite them. Allow a present but empty 'dmas' property
|
|
to also disable the HDMI audio interface.
|
|
|
|
See: https://github.com/raspberrypi/linux/issues/2489
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -1087,10 +1087,12 @@ static int vc4_hdmi_audio_init(struct vc
|
|
struct device *dev = &hdmi->pdev->dev;
|
|
const __be32 *addr;
|
|
int ret;
|
|
+ int len;
|
|
|
|
- if (!of_find_property(dev->of_node, "dmas", NULL)) {
|
|
+ if (!of_find_property(dev->of_node, "dmas", &len) ||
|
|
+ len == 0) {
|
|
dev_warn(dev,
|
|
- "'dmas' DT property is missing, no HDMI audio\n");
|
|
+ "'dmas' DT property is missing or empty, no HDMI audio\n");
|
|
return 0;
|
|
}
|
|
|