MLK-17088: mipi_csi: improve the compatiblility of S_FMT
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 13 Dec 2017 07:15:40 +0000 (15:15 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitb9c60bb36a3de31760d3d7b1d5b1f4397f6271ab
tree63a541b2c6316d18b44bf0db067af5a2c7362b54
parent8bae2b279359a7587e51763fb1325f077bd05181
MLK-17088: mipi_csi: improve the compatiblility of S_FMT

1) When app call S_FMT ioctl, they may only set width, height
   and format of image. So driver can't determine whether it
   support the specified format by checking the format fourcc
   value and the plane number.

2) Driver should also fill plane and sizeimage member in S_FMT
   ioctl, because some apps use this information after they call
   S_FMT ioctl, such as gstreamer.

Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-cap.c