]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
uvcvideo: Set alternate setting 0 on resume if the bus has been reset
authorMing Lei <tom.leiming@gmail.com>
Sat, 16 Jul 2011 03:51:00 +0000 (00:51 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 21:47:31 +0000 (13:47 -0800)
commit81e249443b97a8fec7e95030b8393853f1c0cf5b
treebc4031bc4b08ac87b68a331b93480d80bb3eafc3
parent6f076ec2242ea04dd8a7e063d5d4194b2214cdfc
uvcvideo: Set alternate setting 0 on resume if the bus has been reset

commit d59a7b1dbce8b972ec2dc9fcaaae0bfa23687423 upstream.

If the bus has been reset on resume, set the alternate setting to 0.
This should be the default value, but some devices crash or otherwise
misbehave if they don't receive a SET_INTERFACE request before any other
video control request.

Microdia's 0c45:6437 camera has been found to require this change or it
will stop sending video data after resume.

uvc_video.c]

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/uvc/uvc_driver.c
drivers/media/video/uvc/uvc_video.c
drivers/media/video/uvc/uvcvideo.h