1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>intel_dp_set_drrs_state</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="ch04s02.html#idp1128179172" title="Display Refresh Rate Switching (DRRS)"><link rel="prev" href="API-intel-fbc-init.html" title="intel_fbc_init"><link rel="next" href="API-intel-edp-drrs-enable.html" title="intel_edp_drrs_enable"></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">intel_dp_set_drrs_state</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-intel-fbc-init.html">Prev</a> </td><th width="60%" align="center">Display Refresh Rate Switching (DRRS)</th><td width="20%" align="right"> <a accesskey="n" href="API-intel-edp-drrs-enable.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-intel-dp-set-drrs-state"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>intel_dp_set_drrs_state — 2 program registers for RR switch to take effect 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">void <b class="fsfunc">intel_dp_set_drrs_state </b>(</code></td><td>struct drm_device * <var class="pdparam">dev</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">refresh_rate</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1128188124"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p> 4 DRM device 5 </p></dd><dt><span class="term"><em class="parameter"><code>refresh_rate</code></em></span></dt><dd><p> 6 RR to be programmed 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1128190748"></a><h2>Description</h2><p> 8 This function gets called when refresh rate (RR) has to be changed from 9 one frequency to another. Switches can be between high and low RR 10 supported by the panel or to any other RR based on media playback (in 11 this case, RR value needs to be passed from user space). 12 </p><p> 13 14 The caller of this function needs to take a lock on dev_priv->drrs. 15</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-intel-fbc-init.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04s02.html#idp1128179172">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-intel-edp-drrs-enable.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">intel_fbc_init</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">intel_edp_drrs_enable</span></td></tr></table></div></body></html> 16