Rev 1123 | Rev 1126 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1123 | Rev 1125 | ||
---|---|---|---|
Line 477... | Line 477... | ||
477 | 477 | ||
Line 478... | Line 478... | ||
478 | DRM_DEBUG("picking CRTCs for %dx%d config\n", width, height); |
478 | DRM_DEBUG("picking CRTCs for %dx%d config\n", width, height); |
Line -... | Line 479... | ||
- | 479 | ||
- | 480 | drm_pick_crtcs(dev, crtcs, modes, 0, width, height); |
|
479 | 481 | ||
480 | drm_pick_crtcs(dev, crtcs, modes, 0, width, height); |
482 | dbgprintf("done\n"); |
481 | 483 | ||
482 | i = 0; |
484 | i = 0; |
Line 500... | Line 502... | ||
500 | } |
502 | } |
Line 501... | Line 503... | ||
501 | 503 | ||
502 | kfree(crtcs); |
504 | kfree(crtcs); |
503 | kfree(modes); |
505 | kfree(modes); |
- | 506 | kfree(enabled); |
|
- | 507 | ||
504 | kfree(enabled); |
508 | LEAVE(); |
Line 505... | Line 509... | ||
505 | } |
509 | } |
506 | 510 | ||
507 | /** |
511 | /** |
Line 516... | Line 520... | ||
516 | { |
520 | { |
517 | struct drm_device *dev; |
521 | struct drm_device *dev; |
518 | struct drm_crtc *tmp; |
522 | struct drm_crtc *tmp; |
519 | int crtc_mask = 1; |
523 | int crtc_mask = 1; |
Line 520... | Line 524... | ||
520 | 524 | ||
Line 521... | Line 525... | ||
521 | WARN(!crtc, "checking null crtc?"); |
525 | // WARN(!crtc, "checking null crtc?"); |
Line 522... | Line 526... | ||
522 | 526 | ||
523 | dev = crtc->dev; |
527 | dev = crtc->dev; |
Line 907... | Line 911... | ||
907 | dev->mode_config.max_height); |
911 | dev->mode_config.max_height); |
Line 908... | Line 912... | ||
908 | 912 | ||
Line 909... | Line 913... | ||
909 | drm_setup_crtcs(dev); |
913 | drm_setup_crtcs(dev); |
910 | 914 | ||
Line 911... | Line 915... | ||
911 | /* alert the driver fb layer */ |
915 | /* alert the driver fb layer */ |
912 | dev->mode_config.funcs->fb_changed(dev); |
916 | // dev->mode_config.funcs->fb_changed(dev); |
913 | 917 | ||
914 | /* FIXME: send hotplug event */ |
918 | /* FIXME: send hotplug event */ |
Line 931... | Line 935... | ||
931 | bool drm_helper_initial_config(struct drm_device *dev) |
935 | bool drm_helper_initial_config(struct drm_device *dev) |
932 | { |
936 | { |
933 | struct drm_connector *connector; |
937 | struct drm_connector *connector; |
934 | int count = 0; |
938 | int count = 0; |
Line -... | Line 939... | ||
- | 939 | ||
- | 940 | ENTRY(); |
|
935 | 941 | ||
936 | count = drm_helper_probe_connector_modes(dev, |
942 | count = drm_helper_probe_connector_modes(dev, |
937 | dev->mode_config.max_width, |
943 | dev->mode_config.max_width, |
Line 938... | Line 944... | ||
938 | dev->mode_config.max_height); |
944 | dev->mode_config.max_height); |
Line 950... | Line 956... | ||
950 | } |
956 | } |
Line 951... | Line 957... | ||
951 | 957 | ||
Line 952... | Line 958... | ||
952 | drm_setup_crtcs(dev); |
958 | drm_setup_crtcs(dev); |
953 | 959 | ||
- | 960 | /* alert the driver fb layer */ |
|
- | 961 | // dev->mode_config.funcs->fb_changed(dev); |
|
Line 954... | Line 962... | ||
954 | /* alert the driver fb layer */ |
962 | |
955 | dev->mode_config.funcs->fb_changed(dev); |
963 | LEAVE(); |
956 | 964 |