Advertisement
Guest User

Untitled

a guest
Mar 30th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /* Set FIMD to write back */
  2. if ((ctrl->cam->id == CAMERA_WB) || (ctrl->cam->id == CAMERA_WB_B)) {
  3. if (ctrl->cam->id == CAMERA_WB)
  4. fimc_hwset_sysreg_camblk_fimd0_wb(ctrl);
  5. else
  6. fimc_hwset_sysreg_camblk_fimd1_wb(ctrl);
  7.  
  8. s3cfb_direct_ioctl(0, S3CFB_SET_WRITEBACK, 1);
  9. }
  10.  
  11. /* HACK */
  12. ctrl->cam->window->width = ctrl->cap->fmt.height;
  13. ctrl->cam->window->height = ctrl->cap->fmt.width;
  14. printk(KERN_INFO "<HACK> %s: camera window width=%d, height=%d\n", __func__, ctrl->cam->window->width, ctrl->cam->window->height);
  15. /* HACK */
  16.  
  17. fimc_hwset_camera_type(ctrl);
  18. fimc_hwset_camera_polarity(ctrl);
  19. fimc_hwset_enable_lastend(ctrl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement