Lines Matching refs:subdev_fmt
40 struct v4l2_subdev_format subdev_fmt; in pre_set_format() local
59 xcam_mem_clear (subdev_fmt); in pre_set_format()
60 subdev_fmt.pad = 0; in pre_set_format()
61 subdev_fmt.which = V4L2_SUBDEV_FORMAT_TRY; in pre_set_format()
62 subdev_fmt.format.width = format.fmt.pix.width; in pre_set_format()
63 subdev_fmt.format.height = format.fmt.pix.height; in pre_set_format()
64 subdev_fmt.format.field = V4L2_FIELD_NONE; in pre_set_format()
66 subdev_fmt.format.code = V4L2_MBUS_FMT_SRGGB12_1X12; in pre_set_format()
68 subdev_fmt.format.code = V4L2_MBUS_FMT_SRGGB10_1X10; in pre_set_format()
71 if (io_control(VIDIOC_SUBDEV_S_FMT, &subdev_fmt) < 0) { in pre_set_format()
76 subdev_fmt.format.width, in pre_set_format()
77 subdev_fmt.format.height, in pre_set_format()
78 subdev_fmt.format.code); in pre_set_format()
80 subdev_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in pre_set_format()
81 if (io_control (VIDIOC_SUBDEV_G_FMT, &subdev_fmt) < 0) { in pre_set_format()
85 subdev_fmt.format.width, in pre_set_format()
86 subdev_fmt.format.height, in pre_set_format()
87 subdev_fmt.format.code); in pre_set_format()
89 if (io_control(VIDIOC_SUBDEV_S_FMT, &subdev_fmt) < 0) { in pre_set_format()