aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/meye.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
index a079e7222cc..caa9a7ac618 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: