aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-03-06 05:06:55 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 13:03:47 -0400
commitd58083c949b3d76aba225be9f303ab5dab585064 (patch)
tree3181333e4eacbdcc10743aee341ba6bbbd1adf1e /drivers/media/video
parent515f32879a05bdb69f9b3f86f53db4c04b95e845 (diff)
[media] V4L: Add camera exposure bias control
The camera may in some conditions incorrectly determine the exposure, and a manual automatic exposure correction may be needed. This patch adds V4L2_CID_AUTO_EXPOSURE_BIAS control which allows to add some offset in the automatic exposure control loop, to compensate for frame under- or over-exposure. 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')
-rw-r--r--drivers/media/video/v4l2-ctrls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
index fdcb9e21d9d3..5bfef90e88ee 100644
--- a/drivers/media/video/v4l2-ctrls.c
+++ b/drivers/media/video/v4l2-ctrls.c
@@ -604,6 +604,7 @@ const char *v4l2_ctrl_get_name(u32 id)
604 case V4L2_CID_PRIVACY: return "Privacy"; 604 case V4L2_CID_PRIVACY: return "Privacy";
605 case V4L2_CID_IRIS_ABSOLUTE: return "Iris, Absolute"; 605 case V4L2_CID_IRIS_ABSOLUTE: return "Iris, Absolute";
606 case V4L2_CID_IRIS_RELATIVE: return "Iris, Relative"; 606 case V4L2_CID_IRIS_RELATIVE: return "Iris, Relative";
607 case V4L2_CID_AUTO_EXPOSURE_BIAS: return "Auto Exposure, Bias";
607 608
608 /* FM Radio Modulator control */ 609 /* FM Radio Modulator control */
609 /* Keep the order of the 'case's the same as in videodev2.h! */ 610 /* Keep the order of the 'case's the same as in videodev2.h! */
@@ -760,6 +761,9 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
760 case V4L2_CID_RDS_TX_RADIO_TEXT: 761 case V4L2_CID_RDS_TX_RADIO_TEXT:
761 *type = V4L2_CTRL_TYPE_STRING; 762 *type = V4L2_CTRL_TYPE_STRING;
762 break; 763 break;
764 case V4L2_CID_AUTO_EXPOSURE_BIAS:
765 *type = V4L2_CTRL_TYPE_INTEGER_MENU;
766 break;
763 case V4L2_CID_USER_CLASS: 767 case V4L2_CID_USER_CLASS:
764 case V4L2_CID_CAMERA_CLASS: 768 case V4L2_CID_CAMERA_CLASS:
765 case V4L2_CID_MPEG_CLASS: 769 case V4L2_CID_MPEG_CLASS: