mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 19:05:39 +00:00
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>
This commit is contained in:
parent
37df96736b
commit
c8766ac593
@ -320,10 +320,10 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
|
|||||||
mode->htotal = mode->hdisplay + ((pt->hblank_hi << 8) | pt->hblank_lo);
|
mode->htotal = mode->hdisplay + ((pt->hblank_hi << 8) | pt->hblank_lo);
|
||||||
|
|
||||||
mode->vdisplay = (pt->vactive_hi << 8) | pt->vactive_lo;
|
mode->vdisplay = (pt->vactive_hi << 8) | pt->vactive_lo;
|
||||||
mode->vsync_start = mode->vdisplay + ((pt->vsync_offset_hi << 8) |
|
mode->vsync_start = mode->vdisplay + ((pt->vsync_offset_hi << 4) |
|
||||||
pt->vsync_offset_lo);
|
pt->vsync_offset_lo);
|
||||||
mode->vsync_end = mode->vsync_start +
|
mode->vsync_end = mode->vsync_start +
|
||||||
((pt->vsync_pulse_width_hi << 8) |
|
((pt->vsync_pulse_width_hi << 4) |
|
||||||
pt->vsync_pulse_width_lo);
|
pt->vsync_pulse_width_lo);
|
||||||
mode->vtotal = mode->vdisplay + ((pt->vblank_hi << 8) | pt->vblank_lo);
|
mode->vtotal = mode->vdisplay + ((pt->vblank_hi << 8) | pt->vblank_lo);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user