'\" t .\" Title: drm_crtc_helper_set_mode .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: DRM Core .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DRM_CRTC_HELPER_SET_" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "DRM Core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" drm_crtc_helper_set_mode \- internal helper to set a mode .SH "SYNOPSIS" .HP \w'bool\ drm_crtc_helper_set_mode('u .BI "bool drm_crtc_helper_set_mode(struct\ drm_crtc\ *\ " "crtc" ", struct\ drm_display_mode\ *\ " "mode" ", int\ " "x" ", int\ " "y" ", struct\ drm_framebuffer\ *\ " "old_fb" ");" .SH "ARGUMENTS" .PP \fIcrtc\fR .RS 4 CRTC to program .RE .PP \fImode\fR .RS 4 mode to use .RE .PP \fIx\fR .RS 4 horizontal offset into the surface .RE .PP \fIy\fR .RS 4 vertical offset into the surface .RE .PP \fIold_fb\fR .RS 4 old framebuffer, for cleanup .RE .SH "DESCRIPTION" .PP Try to set \fImode\fR on \fIcrtc\fR\&. Give \fIcrtc\fR 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 \fBdrm_crtc_helper_set_config\fR helper function to drive the mode setting sequence\&. .SH "RETURNS" .PP True if the mode was set successfully, false otherwise\&. .SH "AUTHORS" .PP \fBJesse Barnes\fR <\&jesse.barnes@intel.com\&> .br Intel Corporation, .RS 4 Initial version .RE .PP \fBLaurent Pinchart\fR <\&laurent.pinchart@ideasonboard.com\&> .br Ideas on board SPRL, .RS 4 Driver internals .RE .PP \fBDaniel Vetter\fR <\&daniel.vetter@ffwll.ch\&> .br Intel Corporation, .RS 4 Contributions all over the place .RE .SH "COPYRIGHT" .br