mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
drm/armada: add drm_mode_set_crtcinfo() mode fixup
Add a drm_mode_set_crtcinfo() call in our CRTC's mode_fixup callback to ensure that any adjustments to the mode made by connectors etc are properly accounted for by the CRTC. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
5d32b660c8
commit
f79d7c9543
1 changed files with 7 additions and 0 deletions
|
@ -180,6 +180,13 @@ static bool armada_drm_crtc_mode_fixup(struct drm_crtc *crtc,
|
|||
adj->flags & DRM_MODE_FLAG_INTERLACE)
|
||||
return false;
|
||||
|
||||
/*
|
||||
* Set CRTC modesetting parameters for the adjusted mode. This is
|
||||
* applied after the connectors, bridges, and encoders have fixed up
|
||||
* this mode, as described above drm_atomic_helper_check_modeset().
|
||||
*/
|
||||
drm_mode_set_crtcinfo(adj, CRTC_INTERLACE_HALVE_V);
|
||||
|
||||
/* Check whether the display mode is possible */
|
||||
ret = dcrtc->variant->compute_clock(dcrtc, adj, NULL);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in a new issue