Skip to content

Commit bcd41f5

Browse files
Lee Jacksonpopcornmix
Lee Jackson
authored andcommitted
media: i2c: arducam-pivariety: Add custom controls
Add support for strobe_shift, strobe_width and mode custom controls. Signed-off-by: Lee Jackson <[email protected]>
1 parent c75fda5 commit bcd41f5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/media/i2c/arducam-pivariety.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,12 @@ static const char *pivariety_ctrl_get_name(u32 id)
11401140
return "trigger_mode";
11411141
case V4L2_CID_ARDUCAM_IRCUT:
11421142
return "ircut";
1143+
case V4L2_CID_ARDUCAM_STROBE_SHIFT:
1144+
return "strobe_shift";
1145+
case V4L2_CID_ARDUCAM_STROBE_WIDTH:
1146+
return "strobe_width";
1147+
case V4L2_CID_ARDUCAM_MODE:
1148+
return "mode";
11431149
default:
11441150
return NULL;
11451151
}

drivers/media/i2c/arducam-pivariety.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
#define V4L2_CID_ARDUCAM_BASE (V4L2_CID_USER_BASE + 0x1000)
5353
#define V4L2_CID_ARDUCAM_EXT_TRI (V4L2_CID_ARDUCAM_BASE + 1)
5454
#define V4L2_CID_ARDUCAM_IRCUT (V4L2_CID_ARDUCAM_BASE + 8)
55+
#define V4L2_CID_ARDUCAM_STROBE_SHIFT (V4L2_CID_ARDUCAM_BASE + 14)
56+
#define V4L2_CID_ARDUCAM_STROBE_WIDTH (V4L2_CID_ARDUCAM_BASE + 15)
57+
#define V4L2_CID_ARDUCAM_MODE (V4L2_CID_ARDUCAM_BASE + 16)
5558

5659
enum image_dt {
5760
IMAGE_DT_YUV420_8 = 0x18,

0 commit comments

Comments
 (0)