diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-03-06 05:05:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 13:08:38 -0400 |
commit | 44d44a1acde974dbc91c19815a41d3a895a44daf (patch) | |
tree | c8ae9c17c35886068741b52cf346c651cad8dee3 /drivers/media/video/v4l2-ctrls.c | |
parent | e40a05736d4503950ec303610a51f838bd59cdc1 (diff) |
[media] V4L: Add camera wide dynamic range control
Add V4L2_CID_WIDE_DYNAMIC_RANGE camera class control for the
camera wide dynamic range (WDR, HDR) feature. This control
can be used to enable/disable wide dynamic range. It might
get converted to a menu control in future if more options
are needed.
Signed-off-by: HeungJun Kim <riverful.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-ctrls.c')
-rw-r--r-- | drivers/media/video/v4l2-ctrls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c index 56ac71c8ba37..0c18c82e0b59 100644 --- a/drivers/media/video/v4l2-ctrls.c +++ b/drivers/media/video/v4l2-ctrls.c | |||
@@ -621,6 +621,7 @@ const char *v4l2_ctrl_get_name(u32 id) | |||
621 | case V4L2_CID_IRIS_RELATIVE: return "Iris, Relative"; | 621 | case V4L2_CID_IRIS_RELATIVE: return "Iris, Relative"; |
622 | case V4L2_CID_AUTO_EXPOSURE_BIAS: return "Auto Exposure, Bias"; | 622 | case V4L2_CID_AUTO_EXPOSURE_BIAS: return "Auto Exposure, Bias"; |
623 | case V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE: return "White Balance, Auto & Preset"; | 623 | case V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE: return "White Balance, Auto & Preset"; |
624 | case V4L2_CID_WIDE_DYNAMIC_RANGE: return "Wide Dynamic Range"; | ||
624 | 625 | ||
625 | /* FM Radio Modulator control */ | 626 | /* FM Radio Modulator control */ |
626 | /* Keep the order of the 'case's the same as in videodev2.h! */ | 627 | /* Keep the order of the 'case's the same as in videodev2.h! */ |
@@ -723,6 +724,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, | |||
723 | case V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM: | 724 | case V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM: |
724 | case V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE: | 725 | case V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE: |
725 | case V4L2_CID_MPEG_VIDEO_MPEG4_QPEL: | 726 | case V4L2_CID_MPEG_VIDEO_MPEG4_QPEL: |
727 | case V4L2_CID_WIDE_DYNAMIC_RANGE: | ||
726 | *type = V4L2_CTRL_TYPE_BOOLEAN; | 728 | *type = V4L2_CTRL_TYPE_BOOLEAN; |
727 | *min = 0; | 729 | *min = 0; |
728 | *max = *step = 1; | 730 | *max = *step = 1; |