diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2016-05-10 15:45:48 +0200 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:50:48 +0900 |
commit | 7ca65f9a46e8c1857dd820a52254f7eb8ddb4570 (patch) | |
tree | a14a87ff9e2b6afa20bd851172e0309106ceed99 | |
parent | 20a42c5007c9536cb909a75917243b09baff85ee (diff) |
drm/exynos/mic: fix timing calculation
MIC_BS_SIZE_2D depends only on hactive.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie6120a2b6aef251f0bfb295b41666dac5f9c5e42
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_mic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c index 9869d70e9e54..8fe42c4f0587 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_mic.c +++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c @@ -193,7 +193,7 @@ static void mic_set_output_timing(struct exynos_mic *mic) u32 reg, bs_size_2d; DRM_DEBUG("w: %u, h: %u\n", vm.hactive, vm.vactive); - bs_size_2d = ((vm.hactive >> 2) << 1) + (vm.vactive % 4); + bs_size_2d = ((vm.hactive >> 2) << 1) + (vm.hactive % 4); reg = MIC_BS_SIZE_2D(bs_size_2d); writel(reg, mic->reg + MIC_2D_OUTPUT_TIMING_2); |