047f15288ab9dd3a0a58311fd50d34b238c285d4
[openwrt/staging/wigyori.git] / target / linux / brcm2708 / patches-4.19 / 950-0621-drm-vc4-Fixup-typo-when-setting-HDMI-aspect-ratio.patch
1 From 6019920db110cd6c181d7843794a71b8736c2697 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 621/725] 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