summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/platform/mxc/output/mxc_pxp_v4l2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/platform/mxc/output/mxc_pxp_v4l2.c b/drivers/media/platform/mxc/output/mxc_pxp_v4l2.c
index 6a57d2c5ad02..355b9251c070 100644
--- a/drivers/media/platform/mxc/output/mxc_pxp_v4l2.c
+++ b/drivers/media/platform/mxc/output/mxc_pxp_v4l2.c
@@ -291,6 +291,12 @@ static int pxp_show_buf(struct pxps *pxp, bool toshow)
struct fb_info *fbi = pxp->fbi;
int ret;
+ ret = pxp_set_fbinfo(pxp);
+ if (ret) {
+ dev_err(&pxp->pdev->dev, "failed to call pxp_set_fbinfo\n");
+ return ret;
+ }
+
console_lock();
fbi->fix.smem_start = toshow ?
pxp->outb_phys : (unsigned long)pxp->fb.base;
@@ -787,6 +793,12 @@ static int pxp_buf_prepare(struct videobuf_queue *q,
sizeof(struct pxp_layer_param));
} else if (pxp_conf->ol_param[0].combine_enable) {
/* Overlay */
+ ret = pxp_set_fbinfo(pxp);
+ if (ret) {
+ dev_err(&pxp->pdev->dev,
+ "call pxp_set_fbinfo failed");
+ goto fail;
+ }
pxp_conf->ol_param[0].paddr =
(dma_addr_t)pxp->fb.base;
pxp_conf->ol_param[0].width = pxp->fb.fmt.width;