aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/v4l2-common.c')
-rw-r--r--drivers/media/video/v4l2-common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c
index 7086f9f3c785..cc5f67801bd1 100644
--- a/drivers/media/video/v4l2-common.c
+++ b/drivers/media/video/v4l2-common.c
@@ -334,6 +334,12 @@ const char **v4l2_ctrl_get_menu(u32 id)
334 "Aperture Priority Mode", 334 "Aperture Priority Mode",
335 NULL 335 NULL
336 }; 336 };
337 static const char *colorfx[] = {
338 "None",
339 "Black & White",
340 "Sepia",
341 NULL
342 };
337 343
338 switch (id) { 344 switch (id) {
339 case V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ: 345 case V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ:
@@ -370,6 +376,8 @@ const char **v4l2_ctrl_get_menu(u32 id)
370 return camera_power_line_frequency; 376 return camera_power_line_frequency;
371 case V4L2_CID_EXPOSURE_AUTO: 377 case V4L2_CID_EXPOSURE_AUTO:
372 return camera_exposure_auto; 378 return camera_exposure_auto;
379 case V4L2_CID_COLORFX:
380 return colorfx;
373 default: 381 default:
374 return NULL; 382 return NULL;
375 } 383 }
@@ -412,6 +420,7 @@ const char *v4l2_ctrl_get_name(u32 id)
412 case V4L2_CID_BACKLIGHT_COMPENSATION: return "Backlight Compensation"; 420 case V4L2_CID_BACKLIGHT_COMPENSATION: return "Backlight Compensation";
413 case V4L2_CID_CHROMA_AGC: return "Chroma AGC"; 421 case V4L2_CID_CHROMA_AGC: return "Chroma AGC";
414 case V4L2_CID_COLOR_KILLER: return "Color Killer"; 422 case V4L2_CID_COLOR_KILLER: return "Color Killer";
423 case V4L2_CID_COLORFX: return "Color Effects";
415 424
416 /* MPEG controls */ 425 /* MPEG controls */
417 case V4L2_CID_MPEG_CLASS: return "MPEG Encoder Controls"; 426 case V4L2_CID_MPEG_CLASS: return "MPEG Encoder Controls";
@@ -517,6 +526,7 @@ int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 ste
517 case V4L2_CID_MPEG_STREAM_TYPE: 526 case V4L2_CID_MPEG_STREAM_TYPE:
518 case V4L2_CID_MPEG_STREAM_VBI_FMT: 527 case V4L2_CID_MPEG_STREAM_VBI_FMT:
519 case V4L2_CID_EXPOSURE_AUTO: 528 case V4L2_CID_EXPOSURE_AUTO:
529 case V4L2_CID_COLORFX:
520 qctrl->type = V4L2_CTRL_TYPE_MENU; 530 qctrl->type = V4L2_CTRL_TYPE_MENU;
521 step = 1; 531 step = 1;
522 break; 532 break;
@@ -585,6 +595,8 @@ int v4l2_ctrl_query_fill_std(struct v4l2_queryctrl *qctrl)
585 return v4l2_ctrl_query_fill(qctrl, 0, 127, 1, 64); 595 return v4l2_ctrl_query_fill(qctrl, 0, 127, 1, 64);
586 case V4L2_CID_HUE: 596 case V4L2_CID_HUE:
587 return v4l2_ctrl_query_fill(qctrl, -128, 127, 1, 0); 597 return v4l2_ctrl_query_fill(qctrl, -128, 127, 1, 0);
598 case V4L2_CID_COLORFX:
599 return v4l2_ctrl_query_fill(qctrl, 0, 1, 1, 0);
588 600
589 /* MPEG controls */ 601 /* MPEG controls */
590 case V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ: 602 case V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ: