Rev 1430 | Rev 1986 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1430 | Rev 1963 | ||
---|---|---|---|
Line 241... | Line 241... | ||
241 | 241 | ||
Line 242... | Line 242... | ||
242 | encoder = connector->encoder; |
242 | encoder = connector->encoder; |
243 | crtc = encoder->crtc; |
243 | crtc = encoder->crtc; |
Line 244... | Line 244... | ||
244 | 244 | ||
245 | fb = list_first_entry(&dev->mode_config.fb_kernel_list, |
245 | // fb = list_first_entry(&dev->mode_config.fb_kernel_list, |
Line 246... | Line 246... | ||
246 | struct drm_framebuffer, filp_head); |
246 | // struct drm_framebuffer, filp_head); |
Line 247... | Line 247... | ||
247 | 247 | ||
248 | // memcpy(con_edid, connector->edid_blob_ptr->data, 128); |
248 | // memcpy(con_edid, connector->edid_blob_ptr->data, 128); |
Line 307... | Line 307... | ||
307 | 307 | ||
Line 308... | Line 308... | ||
308 | static struct drm_connector* get_def_connector(struct drm_device *dev) |
308 | static struct drm_connector* get_def_connector(struct drm_device *dev) |
309 | { |
309 | { |
310 | struct drm_connector *connector; |
310 | struct drm_connector *connector; |
- | 311 | struct drm_connector_helper_funcs *connector_funcs; |
|
- | 312 | ||
311 | struct drm_connector *def_connector = NULL; |
313 | struct drm_connector *def_connector = NULL; |
Line 312... | Line 314... | ||
312 | 314 | ||
313 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) |
315 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) |
314 | { |
316 | { |
315 | struct drm_encoder *encoder; |
317 | struct drm_encoder *encoder; |
Line -... | Line 318... | ||
- | 318 | struct drm_crtc *crtc; |
|
- | 319 | ||
- | 320 | dbgprintf("CONNECTOR %x ID: %d status %d encoder %x\n", connector, |
|
316 | struct drm_crtc *crtc; |
321 | connector->base.id, connector->status, connector->encoder); |
317 | 322 | ||
Line -... | Line 323... | ||
- | 323 | if( connector->status != connector_status_connected) |
|
318 | if( connector->status != connector_status_connected) |
324 | continue; |
319 | continue; |
325 | |
320 | 326 | connector_funcs = connector->helper_private; |
|
Line -... | Line 327... | ||
- | 327 | encoder = connector_funcs->best_encoder(connector); |
|
- | 328 | if( encoder == NULL) |
|
321 | encoder = connector->encoder; |
329 | continue; |
- | 330 | ||
- | 331 | connector->encoder = encoder; |
|
322 | if( encoder == NULL) |
332 | |
323 | continue; |
333 | crtc = encoder->crtc; |
Line 324... | Line 334... | ||
324 | 334 | dbgprintf("encoder %x crtc %x\n", encoder, crtc); |
|
325 | crtc = encoder->crtc; |
335 |