Skip to content

Commit 331b57b

Browse files
6by9popcornmix
authored andcommitted
drm: vc4: Fixup typo when setting HDMI aspect ratio
Assignment was to the wrong structure. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
1 parent b7b5191 commit 331b57b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/gpu/drm/vc4/vc4_firmware_kms.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -718,19 +718,19 @@ static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc)
718718
switch (frame.avi.picture_aspect) {
719719
default:
720720
case HDMI_PICTURE_ASPECT_NONE:
721-
mode->flags |= TIMINGS_FLAGS_ASPECT_NONE;
721+
mb.timings.flags |= TIMINGS_FLAGS_ASPECT_NONE;
722722
break;
723723
case HDMI_PICTURE_ASPECT_4_3:
724-
mode->flags |= TIMINGS_FLAGS_ASPECT_4_3;
724+
mb.timings.flags |= TIMINGS_FLAGS_ASPECT_4_3;
725725
break;
726726
case HDMI_PICTURE_ASPECT_16_9:
727-
mode->flags |= TIMINGS_FLAGS_ASPECT_16_9;
727+
mb.timings.flags |= TIMINGS_FLAGS_ASPECT_16_9;
728728
break;
729729
case HDMI_PICTURE_ASPECT_64_27:
730-
mode->flags |= TIMINGS_FLAGS_ASPECT_64_27;
730+
mb.timings.flags |= TIMINGS_FLAGS_ASPECT_64_27;
731731
break;
732732
case HDMI_PICTURE_ASPECT_256_135:
733-
mode->flags |= TIMINGS_FLAGS_ASPECT_256_135;
733+
mb.timings.flags |= TIMINGS_FLAGS_ASPECT_256_135;
734734
break;
735735
}
736736

0 commit comments

Comments
 (0)