---
name: "drm_crtc_helper_set_mode"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_crtc_helper_set_mode"
---

# drm\_crtc\_helper\_set\_mode(9)

internal helper to set a mode

## NAME

drm\_crtc\_helper\_set\_mode - internal helper to set a mode

## 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***);**

## ARGUMENTS

*crtc*

CRTC to program

*mode*

mode to use

*x*

horizontal offset into the surface

*y*

vertical offset into the surface

*old\_fb*

old framebuffer, for cleanup

## DESCRIPTION

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.

## RETURNS

True if the mode was set successfully, false otherwise.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
