Skip to content

Commit 0a27699

Browse files
committed
drives: media: imx708: Put HFLIP and VFLIP controls in a cluser
Create a cluster for the HVLIP and VFLIP controls so they are treated as a single composite control. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 192c132 commit 0a27699

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/media/i2c/imx708.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,12 +819,14 @@ struct imx708 {
819819
/* V4L2 Controls */
820820
struct v4l2_ctrl *pixel_rate;
821821
struct v4l2_ctrl *exposure;
822-
struct v4l2_ctrl *vflip;
823-
struct v4l2_ctrl *hflip;
824822
struct v4l2_ctrl *vblank;
825823
struct v4l2_ctrl *hblank;
826824
struct v4l2_ctrl *hdr_mode;
827825
struct v4l2_ctrl *link_freq;
826+
struct {
827+
struct v4l2_ctrl *hflip;
828+
struct v4l2_ctrl *vflip;
829+
};
828830

829831
/* Current mode */
830832
const struct imx708_mode *mode;
@@ -1815,6 +1817,7 @@ static int imx708_init_controls(struct imx708 *imx708)
18151817

18161818
imx708->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx708_ctrl_ops,
18171819
V4L2_CID_VFLIP, 0, 1, 1, 0);
1820+
v4l2_ctrl_cluster(2, &imx708->hflip);
18181821

18191822
v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &imx708_ctrl_ops,
18201823
V4L2_CID_TEST_PATTERN,

0 commit comments

Comments
 (0)