提交 d9a36d3a 编写于 作者: H Hristo Venev 提交者: Zheng Zengkai

snd_bcm2835: disable HDMI audio when vc4 is used (#3640)

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

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: NHristo Venev <hristo@venev.name>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 1ad3b7c9
...@@ -381,7 +381,9 @@ static int snd_bcm2835_alsa_probe(struct platform_device *pdev) ...@@ -381,7 +381,9 @@ static int snd_bcm2835_alsa_probe(struct platform_device *pdev)
} }
if (!enable_compat_alsa) { 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 // In this mode, always enable analog output
enable_headphones = true; enable_headphones = true;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册