V4L/DVB: v4l2_ctrl_get_name(): add missing control names, and make title for V4L2_CI...
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 14 Mar 2010 17:28:54 +0000 (14:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:47:19 +0000 (00:47 -0300)
v4l2_ctrl_get_name(): add missing control names, and make title for
V4L2_CID_BG_COLOR consistent

V4L2_CID_AUTOBRIGHTNESS   was introduced with kernel 2.6.31
V4L2_CID_BAND_STOP_FILTER was introduced with kernel 2.6.32

Signed-off-by: Frank Schaefer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-common.c

index 36b5cb86fb57c10e9786d51d5e4b13aef0ed5a91..e67983461008bec65a81402422269793d8de174d 100644 (file)
@@ -431,8 +431,10 @@ const char *v4l2_ctrl_get_name(u32 id)
        case V4L2_CID_CHROMA_AGC:               return "Chroma AGC";
        case V4L2_CID_COLOR_KILLER:             return "Color Killer";
        case V4L2_CID_COLORFX:                  return "Color Effects";
+       case V4L2_CID_AUTOBRIGHTNESS:           return "Brightness, Automatic";
+       case V4L2_CID_BAND_STOP_FILTER:         return "Band-Stop Filter";
        case V4L2_CID_ROTATE:                   return "Rotate";
-       case V4L2_CID_BG_COLOR:                 return "Background color";
+       case V4L2_CID_BG_COLOR:                 return "Background Color";
 
        /* MPEG controls */
        case V4L2_CID_MPEG_CLASS:               return "MPEG Encoder Controls";