File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,22 @@ struct drm_bridge_funcs {
178
178
* then this would be &drm_encoder_helper_funcs.mode_set. The display
179
179
* pipe (i.e. clocks and timing signals) is off when this function is
180
180
* called.
181
+ *
182
+ * The adjusted_mode parameter is the mode output by the CRTC for the
183
+ * first bridge in the chain. It can be different from the mode
184
+ * parameter that contains the desired mode for the connector at the end
185
+ * of the bridges chain, for instance when the first bridge in the chain
186
+ * performs scaling. The adjusted mode is mostly useful for the first
187
+ * bridge in the chain and is likely irrelevant for the other bridges.
188
+ *
189
+ * For atomic drivers the adjusted_mode is the mode stored in
190
+ * &drm_crtc_state.adjusted_mode.
191
+ *
192
+ * NOTE:
193
+ *
194
+ * If a need arises to store and access modes adjusted for other
195
+ * locations than the connection between the CRTC and the first bridge,
196
+ * the DRM framework will have to be extended with DRM bridge states.
181
197
*/
182
198
void (* mode_set )(struct drm_bridge * bridge ,
183
199
struct drm_display_mode * mode ,
Original file line number Diff line number Diff line change @@ -134,10 +134,13 @@ struct drm_crtc_state {
134
134
*
135
135
* Internal display timings which can be used by the driver to handle
136
136
* differences between the mode requested by userspace in @mode and what
137
- * is actually programmed into the hardware. It is purely driver
138
- * implementation defined what exactly this adjusted mode means. Usually
139
- * it is used to store the hardware display timings used between the
140
- * CRTC and encoder blocks.
137
+ * is actually programmed into the hardware.
138
+ *
139
+ * For drivers using drm_bridge, this stores hardware display timings
140
+ * used between the CRTC and the first bridge. For other drivers, the
141
+ * meaning of the adjusted_mode field is purely driver implementation
142
+ * defined information, and will usually be used to store the hardware
143
+ * display timings used between the CRTC and encoder blocks.
141
144
*/
142
145
struct drm_display_mode adjusted_mode ;
143
146
You can’t perform that action at this time.
0 commit comments