V4L/DVB: uvcvideo: Power line frequency control doesn't support GET_MIN/MAX/RES

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, July 12, 2010 - 4:59 pm

Gitweb:     http://git.kernel.org/linus/9c3b10b53875279306d8464fe9b24fa634329fc8
Commit:     9c3b10b53875279306d8464fe9b24fa634329fc8
Parent:     f06b9bd4c62ef93f9467a1432acf2efa84aa3456
Author:     Laurent Pinchart <laurent.pinchart@ideasonboard.com>
AuthorDate: Mon Jul 5 15:24:39 2010 -0300
Committer:  Mauro Carvalho Chehab <mchehab@redhat.com>
CommitDate: Thu Jul 8 16:50:16 2010 -0300

    V4L/DVB: uvcvideo: Power line frequency control doesn't support GET_MIN/MAX/RES
    
    Issuing a GET_MIN request on the power line frequency control times out
    on at least the Apple iSight. As the UVC specification doesn't list
    GET_MIN/MAX/RES as supported on that control, remove them from the
    uvc_ctrls array.
    
    Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---
 drivers/media/video/uvc/uvc_ctrl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/uvc/uvc_ctrl.c b/drivers/media/video/uvc/uvc_ctrl.c
index aa0720a..27a79f0 100644
--- a/drivers/media/video/uvc/uvc_ctrl.c
+++ b/drivers/media/video/uvc/uvc_ctrl.c
@@ -122,8 +122,8 @@ static struct uvc_control_info uvc_ctrls[] = {
 		.selector	= UVC_PU_POWER_LINE_FREQUENCY_CONTROL,
 		.index		= 10,
 		.size		= 1,
-		.flags		= UVC_CONTROL_SET_CUR | UVC_CONTROL_GET_RANGE
-				| UVC_CONTROL_RESTORE,
+		.flags		= UVC_CONTROL_SET_CUR | UVC_CONTROL_GET_CUR
+				| UVC_CONTROL_GET_DEF | UVC_CONTROL_RESTORE,
 	},
 	{
 		.entity		= UVC_GUID_UVC_PROCESSING,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
V4L/DVB: uvcvideo: Power line frequency control doesn't su ..., Linux Kernel Mailing ..., (Mon Jul 12, 4:59 pm)