Re: macbook webcam no longer works on .35-rc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Laurent Pinchart
Date: Monday, July 5, 2010 - 1:23 am

Hi Johannes,

On Monday 05 July 2010 10:15:53 Johannes Berg wrote:

[snip]

Thanks.


Could you please test the following patch when you will have time ?

diff --git a/drivers/media/video/uvc/uvc_ctrl.c b/drivers/media/video/uvc/uvc_ctrl.c
index 9af4d47..a350fad 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,


-- 
Regards,

Laurent Pinchart
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: macbook webcam no longer works on .35-rc, Johannes Berg, (Fri Jul 2, 12:26 am)
Re: macbook webcam no longer works on .35-rc, Laurent Pinchart, (Mon Jul 5, 12:28 am)
Re: macbook webcam no longer works on .35-rc, Laurent Pinchart, (Mon Jul 5, 12:31 am)
Re: macbook webcam no longer works on .35-rc, Johannes Berg, (Mon Jul 5, 1:15 am)
Re: macbook webcam no longer works on .35-rc, Laurent Pinchart, (Mon Jul 5, 1:23 am)
Re: macbook webcam no longer works on .35-rc, Johannes Berg, (Mon Jul 12, 5:36 am)
Re: macbook webcam no longer works on .35-rc, Laurent Pinchart, (Mon Jul 12, 8:34 am)