MLK-25489 arm64: imx8mx: vpu: correct width-stride for RGB formats
authorShijie Qin <shijie.qin@nxp.com>
Thu, 13 May 2021 04:22:00 +0000 (12:22 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Thu, 13 May 2021 05:29:53 +0000 (13:29 +0800)
commit56a6398ab387ae17aa7fe6a4f89c15a074ee57ba
tree9651d48e85bef087e665747231a3cc65afa4d829
parent7742a338e205b4b2c0553868b10ea42d66108db0
MLK-25489 arm64: imx8mx: vpu: correct width-stride for RGB formats

For imx8mm(hantro h1 encoder), per width-stride need to align to 16.
RGB16: width-strde = bytesperline / 2
RGBX: width-stride = bytesperline / 4

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: Hou Qi <qi.hou@nxp.com>
drivers/mxc/hantro_v4l2/vsi-v4l2-config.c