Rev 6296 | Rev 6937 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6296 | Rev 6660 | ||
---|---|---|---|
Line 2683... | Line 2683... | ||
2683 | if (ret) { |
2683 | if (ret) { |
2684 | DRM_DEBUG_KMS("Invalid mode\n"); |
2684 | DRM_DEBUG_KMS("Invalid mode\n"); |
2685 | goto out; |
2685 | goto out; |
2686 | } |
2686 | } |
Line 2687... | Line -... | ||
2687 | - | ||
2688 | drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); |
- | |
2689 | 2687 | ||
2690 | /* |
2688 | /* |
2691 | * Check whether the primary plane supports the fb pixel format. |
2689 | * Check whether the primary plane supports the fb pixel format. |
2692 | * Drivers not implementing the universal planes API use a |
2690 | * Drivers not implementing the universal planes API use a |
2693 | * default formats list provided by the DRM core which doesn't |
2691 | * default formats list provided by the DRM core which doesn't |
Line 2741... | Line 2739... | ||
2741 | goto out; |
2739 | goto out; |
2742 | } |
2740 | } |
Line 2743... | Line 2741... | ||
2743 | 2741 | ||
2744 | for (i = 0; i < crtc_req->count_connectors; i++) { |
2742 | for (i = 0; i < crtc_req->count_connectors; i++) { |
2745 | set_connectors_ptr = (uint32_t __user *)(unsigned long)crtc_req->set_connectors_ptr; |
2743 | set_connectors_ptr = (uint32_t __user *)(unsigned long)crtc_req->set_connectors_ptr; |
2746 | // if (get_user(out_id, &set_connectors_ptr[i])) { |
2744 | if (get_user(out_id, &set_connectors_ptr[i])) { |
2747 | // ret = -EFAULT; |
2745 | ret = -EFAULT; |
2748 | // goto out; |
2746 | goto out; |
Line 2749... | Line 2747... | ||
2749 | // } |
2747 | } |
2750 | 2748 | ||
2751 | connector = drm_connector_find(dev, out_id); |
2749 | connector = drm_connector_find(dev, out_id); |
2752 | if (!connector) { |
2750 | if (!connector) { |
Line 3418... | Line 3416... | ||
3418 | drm_framebuffer_unreference(fb); |
3416 | drm_framebuffer_unreference(fb); |
Line 3419... | Line 3417... | ||
3419 | 3417 | ||
3420 | return ret; |
3418 | return ret; |
Line 3421... | Line -... | ||
3421 | } |
- | |
3422 | 3419 | } |
|
3423 | 3420 | ||
3424 | /** |
3421 | /** |
3425 | * drm_fb_release - remove and free the FBs on this file |
3422 | * drm_fb_release - remove and free the FBs on this file |
3426 | * @priv: drm file for the ioctl |
3423 | * @priv: drm file for the ioctl |