mbus_fmt_code shall be update only for
V4L2_SUBDEV_FORMAT_ACTIVE.
Bug
200184254
Change-Id: I8ed3e81ff50fe663fc33ea2b6380ef6ce4c33e10
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/
1118318
(cherry picked from commit
53f3463519b9ea393fc6b482603926b5cd383117)
Reviewed-on: http://git-master/r/
1153848
switch (code) {
case MEDIA_BUS_FMT_RGB888_1X24:
case MEDIA_BUS_FMT_UYVY8_1X16:
- state->mbus_fmt_code = code;
break;
default:
return -EINVAL;
v4l2_dbg(3, debug, sd, "%s(): format->which=%d\n",
__func__, format->which);
+ state->mbus_fmt_code = format->format.code;
enable_stream(sd, false);
tc358840_set_csi(sd);
tc358840_set_csi_mbus_config(sd);