Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int dss_check_overlay(struct omap_overlay *ovl, struct omap_dss_device *dssdev)
- {
- struct omap_overlay_info *info;
- u16 outw, outh;
- u16 dw, dh;
- if (!dssdev)
- return 0;
- if (!ovl->info.enabled)
- return 0;
- info = &ovl->info;
- if (info->paddr == 0) {
- DSSERR("check_overlay failed: paddr 0\n");
- return -EINVAL;
- }
- dssdev->driver->get_resolution(dssdev, &dw, &dh);
- /* y resolution to be doubled in case of interlaced HDMI */
- if ((ovl->info.field == IBUF_IDEV) || (ovl->info.field == PBUF_IDEV))
- dh *= 2;
- DSSDBG("check_overlay %d: (%d,%d %dx%d -> %dx%d) disp (%dx%d)\n",
- ovl->id,
- info->pos_x, info->pos_y,
- info->width, info->height,
- info->out_width, info->out_height,
- dw, dh);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement