Skip to content

Commit

Permalink
media: i2c: arducam-pivariety: Add custom controls
Browse files Browse the repository at this point in the history
Add support for strobe_shift, strobe_width and mode custom controls.

Signed-off-by: Lee Jackson <[email protected]>
  • Loading branch information
Lee Jackson authored and popcornmix committed Sep 26, 2022
1 parent 9b89e6d commit 90f14fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/media/i2c/arducam-pivariety.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,12 @@ static const char *pivariety_ctrl_get_name(u32 id)
return "trigger_mode";
case V4L2_CID_ARDUCAM_IRCUT:
return "ircut";
case V4L2_CID_ARDUCAM_STROBE_SHIFT:
return "strobe_shift";
case V4L2_CID_ARDUCAM_STROBE_WIDTH:
return "strobe_width";
case V4L2_CID_ARDUCAM_MODE:
return "mode";
default:
return NULL;
}
Expand Down
3 changes: 3 additions & 0 deletions drivers/media/i2c/arducam-pivariety.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
#define V4L2_CID_ARDUCAM_BASE (V4L2_CID_USER_BASE + 0x1000)
#define V4L2_CID_ARDUCAM_EXT_TRI (V4L2_CID_ARDUCAM_BASE + 1)
#define V4L2_CID_ARDUCAM_IRCUT (V4L2_CID_ARDUCAM_BASE + 8)
#define V4L2_CID_ARDUCAM_STROBE_SHIFT (V4L2_CID_ARDUCAM_BASE + 14)
#define V4L2_CID_ARDUCAM_STROBE_WIDTH (V4L2_CID_ARDUCAM_BASE + 15)
#define V4L2_CID_ARDUCAM_MODE (V4L2_CID_ARDUCAM_BASE + 16)

enum image_dt {
IMAGE_DT_YUV420_8 = 0x18,
Expand Down

0 comments on commit 90f14fc

Please sign in to comment.