1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>drm_atomic_crtc_set_property</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="drm-mode-setting.html#idp1123612996" title="Atomic Mode Setting Function Reference"><link rel="prev" href="API-drm-atomic-get-crtc-state.html" title="drm_atomic_get_crtc_state"><link rel="next" href="API-drm-atomic-get-plane-state.html" title="drm_atomic_get_plane_state"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">drm_atomic_crtc_set_property</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-atomic-get-crtc-state.html">Prev</a>&#160;</td><th width="60%" align="center">Atomic Mode Setting Function Reference</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-drm-atomic-get-plane-state.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-drm-atomic-crtc-set-property"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>drm_atomic_crtc_set_property &#8212; 
2     set property on CRTC
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">drm_atomic_crtc_set_property </b>(</code></td><td>struct drm_crtc * <var class="pdparam">crtc</var>, </td></tr><tr><td>&#160;</td><td>struct drm_crtc_state * <var class="pdparam">state</var>, </td></tr><tr><td>&#160;</td><td>struct drm_property * <var class="pdparam">property</var>, </td></tr><tr><td>&#160;</td><td>uint64_t <var class="pdparam">val</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1123651492"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>crtc</code></em></span></dt><dd><p>
4     the drm CRTC to set a property on
5    </p></dd><dt><span class="term"><em class="parameter"><code>state</code></em></span></dt><dd><p>
6     the state object to update with the new property value
7    </p></dd><dt><span class="term"><em class="parameter"><code>property</code></em></span></dt><dd><p>
8     the property to set
9    </p></dd><dt><span class="term"><em class="parameter"><code>val</code></em></span></dt><dd><p>
10     the new property value
11    </p></dd></dl></div></div><div class="refsect1"><a name="idp1123656212"></a><h2>Description</h2><p>
12   Use this instead of calling crtc-&gt;atomic_set_property directly.
13   This function handles generic/core properties and calls out to
14   driver's -&gt;<code class="function">atomic_set_property</code> for driver properties.  To ensure
15   consistent behavior you must call this function rather than the
16   driver hook directly.
17</p></div><div class="refsect1"><a name="idp1123657676"></a><h2>RETURNS</h2><p>
18   Zero on success, error code on failure
19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-drm-atomic-get-crtc-state.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="drm-mode-setting.html#idp1123612996">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-drm-atomic-get-plane-state.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_atomic_get_crtc_state</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">drm_atomic_get_plane_state</span></td></tr></table></div></body></html>
20