After alignment handling for DPR, the aligned width
may be larger than the same as original width, so
use the aligned width to calculate the pitch for
DPR.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
return -EINVAL;
}
- /* TODO: calculate pitch for different formats */
/* config pitch */
- pitch = (var->xres * (var->bits_per_pixel >> 3)) << 16;
+ pitch = (num_pix_x * (var->bits_per_pixel >> 3)) << 16;
fill_sb(cb, chan_info->dpr_addr + 0x70, pitch);
fill_sb(cb, chan_info->dpr_addr + 0x200, 0x38);