Skip to content

Commit

Permalink
drm/rockchip: fix scaling calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwiboo committed May 2, 2017
1 parent dd9fb83 commit ca8b478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/rockchip/rockchip_drm_vop.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ enum vop_pol {

static inline uint16_t scl_cal_scale(int src, int dst, int shift)
{
return ((src * 2 - 3) << (shift - 1)) / (dst - 1);
return ((src - 1) << shift) / (dst - 1);
}

static inline uint16_t scl_cal_scale2(int src, int dst)
Expand Down

0 comments on commit ca8b478

Please sign in to comment.