diff options
author | Brandon Philips <brandon@ifup.org> | 2008-04-22 13:42:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:43 -0400 |
commit | e723ee00893f242cbccf5ef2faffdaa6afb8f244 (patch) | |
tree | 6876b42567937b55559fdd68c97eaf68c5017b8f /drivers/media/video/meye.c | |
parent | 6d43cec87f9d9679a5c4adca7935dc8cf207f6ce (diff) |
V4L/DVB (7204): remove V4L2_CID_SHARPNESS from meye.h and report private control as DISABLED
- Continue to support the V4L2_CID_PRIVATE_BASE + 1 control in the ABI
- Report the same control as V4L2_CID_SHARPNESS
- Report the private control disabled via QUERYCTRL
Signed-off-by: Brandon Philips <bphilips@suse.de>
Acked-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/meye.c')
-rw-r--r-- | drivers/media/video/meye.c | 10 |
1 files changed, 9 insertions, 1 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: |