Advertisement
Guest User

Untitled

a guest
Oct 11th, 2011
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. int dss_check_overlay(struct omap_overlay *ovl, struct omap_dss_device *dssdev)
  2. {
  3. struct omap_overlay_info *info;
  4. u16 outw, outh;
  5. u16 dw, dh;
  6.  
  7. if (!dssdev)
  8. return 0;
  9.  
  10. if (!ovl->info.enabled)
  11. return 0;
  12.  
  13. info = &ovl->info;
  14.  
  15. if (info->paddr == 0) {
  16. DSSERR("check_overlay failed: paddr 0\n");
  17. return -EINVAL;
  18. }
  19.  
  20. dssdev->driver->get_resolution(dssdev, &dw, &dh);
  21.  
  22. /* y resolution to be doubled in case of interlaced HDMI */
  23. if ((ovl->info.field == IBUF_IDEV) || (ovl->info.field == PBUF_IDEV))
  24. dh *= 2;
  25.  
  26. DSSDBG("check_overlay %d: (%d,%d %dx%d -> %dx%d) disp (%dx%d)\n",
  27. ovl->id,
  28. info->pos_x, info->pos_y,
  29. info->width, info->height,
  30. info->out_width, info->out_height,
  31. dw, dh);
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement