drm_crtc_helper_set_mode - internal helper to set a mode
2. SYNOPSIS ▲
bool drm_crtc_helper_set_mode(struct drm_crtc * crtc , struct drm_display_mode * mode , int x , int y , struct drm_framebuffer * old_fb );
3. ARGUMENTS ▲
CRTC to program
mode to use
horizontal offset into the surface
vertical offset into the surface
old framebuffer, for cleanup
4. LOCKING ▲
Caller must hold mode config lock.
Try to set mode on crtc. Give crtc and its associated connectors a chance to fixup or reject the mode prior to trying to set it. This is an internal helper that drivers could e.g. use to update properties that require the entire output pipe to be disabled and re-enabled in a new configuration. For example for changing whether audio is enabled on a hdmi link or for changing panel fitter or dither attributes. It is also called by the drm_crtc_helper_set_config helper function to drive the mode setting sequence.
5. RETURNS ▲
True if the mode was set successfully, or false otherwise.
6. AUTHORS ▲
Jesse Barnes <
Laurent Pinchart <
Ideas on board SPRL,
7. COPYRIGHT ▲