aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/meye.c10
-rw-r--r--include/linux/meye.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
index a079e7222cc9..caa9a7ac6184 100644
--- a/drivers/media/video/meye.c
+++ b/drivers/media/video/meye.c
@@ -1239,6 +1239,7 @@ static int meye_do_ioctl(struct inode *inode, struct file *file,
1239 c->default_value = 48; 1239 c->default_value = 48;
1240 c->flags = 0; 1240 c->flags = 0;
1241 break; 1241 break;
1242 case V4L2_CID_MEYE_SHARPNESS:
1242 case V4L2_CID_SHARPNESS: 1243 case V4L2_CID_SHARPNESS:
1243 c->type = V4L2_CTRL_TYPE_INTEGER; 1244 c->type = V4L2_CTRL_TYPE_INTEGER;
1244 strcpy(c->name, "Sharpness"); 1245 strcpy(c->name, "Sharpness");
@@ -1246,7 +1247,12 @@ static int meye_do_ioctl(struct inode *inode, struct file *file,
1246 c->maximum = 63; 1247 c->maximum = 63;
1247 c->step = 1; 1248 c->step = 1;
1248 c->default_value = 32; 1249 c->default_value = 32;
1249 c->flags = 0; 1250
1251 /* Continue to report legacy private SHARPNESS ctrl but
1252 * say it is disabled in preference to ctrl in the spec
1253 */
1254 c->flags = (c->id == V4L2_CID_SHARPNESS) ? 0 :
1255 V4L2_CTRL_FLAG_DISABLED;
1250 break; 1256 break;
1251 case V4L2_CID_PICTURE: 1257 case V4L2_CID_PICTURE:
1252 c->type = V4L2_CTRL_TYPE_INTEGER; 1258 c->type = V4L2_CTRL_TYPE_INTEGER;
@@ -1312,6 +1318,7 @@ static int meye_do_ioctl(struct inode *inode, struct file *file,
1312 meye.params.agc = c->value; 1318 meye.params.agc = c->value;
1313 break; 1319 break;
1314 case V4L2_CID_SHARPNESS: 1320 case V4L2_CID_SHARPNESS:
1321 case V4L2_CID_MEYE_SHARPNESS:
1315 sony_pic_camera_command( 1322 sony_pic_camera_command(
1316 SONY_PIC_COMMAND_SETCAMERASHARPNESS, c->value); 1323 SONY_PIC_COMMAND_SETCAMERASHARPNESS, c->value);
1317 meye.params.sharpness = c->value; 1324 meye.params.sharpness = c->value;
@@ -1356,6 +1363,7 @@ static int meye_do_ioctl(struct inode *inode, struct file *file,
1356 c->value = meye.params.agc; 1363 c->value = meye.params.agc;
1357 break; 1364 break;
1358 case V4L2_CID_SHARPNESS: 1365 case V4L2_CID_SHARPNESS:
1366 case V4L2_CID_MEYE_SHARPNESS:
1359 c->value = meye.params.sharpness; 1367 c->value = meye.params.sharpness;
1360 break; 1368 break;
1361 case V4L2_CID_PICTURE: 1369 case V4L2_CID_PICTURE:
diff --git a/include/linux/meye.h b/include/linux/meye.h
index 39fd9c8ddd4b..12010ace1f04 100644
--- a/include/linux/meye.h
+++ b/include/linux/meye.h
@@ -58,7 +58,7 @@ struct meye_params {
58 58
59/* V4L2 private controls */ 59/* V4L2 private controls */
60#define V4L2_CID_AGC V4L2_CID_PRIVATE_BASE 60#define V4L2_CID_AGC V4L2_CID_PRIVATE_BASE
61#define V4L2_CID_SHARPNESS (V4L2_CID_PRIVATE_BASE + 1) 61#define V4L2_CID_MEYE_SHARPNESS (V4L2_CID_PRIVATE_BASE + 1)
62#define V4L2_CID_PICTURE (V4L2_CID_PRIVATE_BASE + 2) 62#define V4L2_CID_PICTURE (V4L2_CID_PRIVATE_BASE + 2)
63#define V4L2_CID_JPEGQUAL (V4L2_CID_PRIVATE_BASE + 3) 63#define V4L2_CID_JPEGQUAL (V4L2_CID_PRIVATE_BASE + 3)
64#define V4L2_CID_FRAMERATE (V4L2_CID_PRIVATE_BASE + 4) 64#define V4L2_CID_FRAMERATE (V4L2_CID_PRIVATE_BASE + 4)