Skip to content

Commit 740d4ca

Browse files
tq-steinagregkh
authored andcommitted
drm/imx/ipuv3: Fix front porch adjustment upon hactive aligning
[ Upstream commit ee31742 ] When hactive is not aligned to 8 pixels, it is aligned accordingly and hfront porch needs to be reduced the same amount. Unfortunately the front porch is set to the difference rather than reducing it. There are some Samsung TVs which can't cope with a front porch of instead of 70. Fixes: 94dfec4 ("drm/imx: Add 8 pixel alignment fix") Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://lore.kernel.org/r/20230515072137.116211-1-alexander.stein@ew.tq-group.com [p.zabel@pengutronix.de: Fixed subject] Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://patchwork.freedesktop.org/patch/msgid/20230515072137.116211-1-alexander.stein@ew.tq-group.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a492b82 commit 740d4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/imx/ipuv3-crtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static void ipu_crtc_mode_set_nofb(struct drm_crtc *crtc)
310310
dev_warn(ipu_crtc->dev, "8-pixel align hactive %d -> %d\n",
311311
sig_cfg.mode.hactive, new_hactive);
312312

313-
sig_cfg.mode.hfront_porch = new_hactive - sig_cfg.mode.hactive;
313+
sig_cfg.mode.hfront_porch -= new_hactive - sig_cfg.mode.hactive;
314314
sig_cfg.mode.hactive = new_hactive;
315315
}
316316

0 commit comments

Comments
 (0)