bcm27xx: update patches from RPi foundation
[oweals/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0613-drm-vc4-Enable-audio-on-Pi4.patch
1 From 446b19807781d73f214f959a8f4dab7662eed337 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 25 Mar 2020 18:18:45 +0000
4 Subject: [PATCH] drm/vc4: Enable audio on Pi4.
5
6 This could be a revert of "drm/vc4: hdmi: Add an audio support flag"
7 as it is no longer needed.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11  drivers/gpu/drm/vc4/vc4_hdmi.c | 2 ++
12  1 file changed, 2 insertions(+)
13
14 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
15 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
16 @@ -1750,6 +1750,7 @@ static const struct vc4_hdmi_variant bcm
17  
18  static const struct vc4_hdmi_variant bcm2711_hdmi0_variant = {
19         .id                     = 0,
20 +       .audio_available        = true,
21         .max_pixel_clock        = 297000000,
22         .registers              = vc5_hdmi_hdmi0_fields,
23         .num_registers          = ARRAY_SIZE(vc5_hdmi_hdmi0_fields),
24 @@ -1773,6 +1774,7 @@ static const struct vc4_hdmi_variant bcm
25  
26  static const struct vc4_hdmi_variant bcm2711_hdmi1_variant = {
27         .id                     = 1,
28 +       .audio_available        = true,
29         .max_pixel_clock        = 297000000,
30         .registers              = vc5_hdmi_hdmi1_fields,
31         .num_registers          = ARRAY_SIZE(vc5_hdmi_hdmi1_fields),