brcm2708: add linux 4.19 support
[oweals/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0625-drm-vc4-Fixup-typo-when-setting-HDMI-aspect-ratio.patch
1 From 8fa80c9aeab3fac843be81d1dda0e87042367d34 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Tue, 7 May 2019 15:00:02 +0100
4 Subject: [PATCH 625/703] drm: vc4: Fixup typo when setting HDMI aspect ratio
5
6 Assignment was to the wrong structure.
7
8 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
9 ---
10  drivers/gpu/drm/vc4/vc4_firmware_kms.c | 10 +++++-----
11  1 file changed, 5 insertions(+), 5 deletions(-)
12
13 --- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
14 +++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
15 @@ -717,19 +717,19 @@ static void vc4_crtc_mode_set_nofb(struc
16         switch (frame.avi.picture_aspect) {
17         default:
18         case HDMI_PICTURE_ASPECT_NONE:
19 -               mode->flags |= TIMINGS_FLAGS_ASPECT_NONE;
20 +               mb.timings.flags |= TIMINGS_FLAGS_ASPECT_NONE;
21                 break;
22         case HDMI_PICTURE_ASPECT_4_3:
23 -               mode->flags |= TIMINGS_FLAGS_ASPECT_4_3;
24 +               mb.timings.flags |= TIMINGS_FLAGS_ASPECT_4_3;
25                 break;
26         case HDMI_PICTURE_ASPECT_16_9:
27 -               mode->flags |= TIMINGS_FLAGS_ASPECT_16_9;
28 +               mb.timings.flags |= TIMINGS_FLAGS_ASPECT_16_9;
29                 break;
30         case HDMI_PICTURE_ASPECT_64_27:
31 -               mode->flags |= TIMINGS_FLAGS_ASPECT_64_27;
32 +               mb.timings.flags |= TIMINGS_FLAGS_ASPECT_64_27;
33                 break;
34         case HDMI_PICTURE_ASPECT_256_135:
35 -               mode->flags |= TIMINGS_FLAGS_ASPECT_256_135;
36 +               mb.timings.flags |= TIMINGS_FLAGS_ASPECT_256_135;
37                 break;
38         }
39