diff options
Diffstat (limited to 'drivers/video/omap2/dss/overlay.c')
-rw-r--r-- | drivers/video/omap2/dss/overlay.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c index 6e821810deec..b0ba60f88dd2 100644 --- a/drivers/video/omap2/dss/overlay.c +++ b/drivers/video/omap2/dss/overlay.c | |||
@@ -628,19 +628,23 @@ int dss_ovl_simple_check(struct omap_overlay *ovl, | |||
628 | return -EINVAL; | 628 | return -EINVAL; |
629 | } | 629 | } |
630 | 630 | ||
631 | if (dss_feat_rotation_type_supported(info->rotation_type) == 0) { | ||
632 | DSSERR("check_overlay: rotation type %d not supported\n", | ||
633 | info->rotation_type); | ||
634 | return -EINVAL; | ||
635 | } | ||
636 | |||
631 | return 0; | 637 | return 0; |
632 | } | 638 | } |
633 | 639 | ||
634 | int dss_ovl_check(struct omap_overlay *ovl, | 640 | int dss_ovl_check(struct omap_overlay *ovl, struct omap_overlay_info *info, |
635 | struct omap_overlay_info *info, struct omap_dss_device *dssdev) | 641 | const struct omap_video_timings *mgr_timings) |
636 | { | 642 | { |
637 | u16 outw, outh; | 643 | u16 outw, outh; |
638 | u16 dw, dh; | 644 | u16 dw, dh; |
639 | 645 | ||
640 | if (dssdev == NULL) | 646 | dw = mgr_timings->x_res; |
641 | return 0; | 647 | dh = mgr_timings->y_res; |
642 | |||
643 | dssdev->driver->get_resolution(dssdev, &dw, &dh); | ||
644 | 648 | ||
645 | if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0) { | 649 | if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0) { |
646 | outw = info->width; | 650 | outw = info->width; |