diff options
author | Guoniu.Zhou <guoniu.zhou@nxp.com> | 2017-06-10 15:51:59 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-06-14 16:44:12 +0800 |
commit | c50d4ae742e27d62096202a2a82a1d49359fb6dc (patch) | |
tree | 2b540d90232cf135bcded9a1f0399978c97792ea /drivers/video | |
parent | 50c6037dc5c4c13606ec1eba9ff76af15f9be009 (diff) |
MLK-15030: EPDC: Filled stride value of s0_param layer
When epdc driver use pxp, it didn't fill stride value of s0_parm, so it leads to
epdc can display picture normally.
So fill it in this patch.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c b/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c index 083b612d7db0..14bcb76ea1f4 100644 --- a/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c +++ b/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c @@ -1828,6 +1828,7 @@ static int mxc_epdc_fb_set_par(struct fb_info *info) } } pxp_conf->s0_param.width = screeninfo->xres_virtual; + pxp_conf->s0_param.stride = (screeninfo->bits_per_pixel * pxp_conf->s0_param.width) >> 3; pxp_conf->s0_param.height = screeninfo->yres; pxp_conf->s0_param.color_key = -1; pxp_conf->s0_param.color_key_enable = false; @@ -5503,6 +5504,7 @@ static int mxc_epdc_fb_probe(struct platform_device *pdev) */ pxp_conf->s0_param.pixel_fmt = PXP_PIX_FMT_RGB565; pxp_conf->s0_param.width = fb_data->info.var.xres_virtual; + pxp_conf->s0_param.stride = (var_info->bits_per_pixel * pxp_conf->s0_param.width) >> 3; pxp_conf->s0_param.height = fb_data->info.var.yres; pxp_conf->s0_param.color_key = -1; pxp_conf->s0_param.color_key_enable = false; @@ -6031,6 +6033,7 @@ static int pxp_legacy_process(struct mxc_epdc_fb_data *fb_data, struct dma_async_tx_descriptor *txd; struct pxp_config_data *pxp_conf = &fb_data->pxp_conf; struct pxp_proc_data *proc_data = &fb_data->pxp_conf.proc_data; + struct fb_var_screeninfo *screeninfo = &fb_data->info.var; int i, ret; int length; @@ -6084,6 +6087,7 @@ static int pxp_legacy_process(struct mxc_epdc_fb_data *fb_data, * probe() and should not need to be changed. */ pxp_conf->s0_param.width = src_width; + pxp_conf->s0_param.stride = (screeninfo->bits_per_pixel * src_width) >> 3; pxp_conf->s0_param.height = src_height; proc_data->srect.top = update_region->top; proc_data->srect.left = update_region->left; |