Skip to content

Commit c8766ac

Browse files
torvaldsairlied
authored andcommitted
drm: Fix shifts of EDID vsync offset/width fields.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
1 parent 37df967 commit c8766ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/drm_edid.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,10 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
320320
mode->htotal = mode->hdisplay + ((pt->hblank_hi << 8) | pt->hblank_lo);
321321

322322
mode->vdisplay = (pt->vactive_hi << 8) | pt->vactive_lo;
323-
mode->vsync_start = mode->vdisplay + ((pt->vsync_offset_hi << 8) |
323+
mode->vsync_start = mode->vdisplay + ((pt->vsync_offset_hi << 4) |
324324
pt->vsync_offset_lo);
325325
mode->vsync_end = mode->vsync_start +
326-
((pt->vsync_pulse_width_hi << 8) |
326+
((pt->vsync_pulse_width_hi << 4) |
327327
pt->vsync_pulse_width_lo);
328328
mode->vtotal = mode->vdisplay + ((pt->vblank_hi << 8) | pt->vblank_lo);
329329

0 commit comments

Comments
 (0)