Previously, the alignment issue was handled by allocating
aligned buffer and doing cropping in DCSS. But the VPU IP
doesn't support aligned buffer allocation. So revert this
patch and later use another workaround in DTRC to handle
the alignment issue.
This reverts commit
e850fdbafe188e6be6d3219d86bb14271c7cd787.
return -EINVAL;
}
+ /* TODO: calculate pitch for different formats */
/* config pitch */
- pitch = (num_pix_x * (var->bits_per_pixel >> 3)) << 16;
+ pitch = (var->xres * (var->bits_per_pixel >> 3)) << 16;
fill_sb(cb, chan_info->dpr_addr + 0x70, pitch);
fill_sb(cb, chan_info->dpr_addr + 0x200, 0x38);