From: Laurent Pinchart Date: Fri, 11 May 2012 12:55:59 +0000 (-0300) Subject: [media] uvcvideo: Fix V4L2 button controls that share the same UVC control X-Git-Tag: v3.5-rc1~104^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b363f9f97af10767e72a04c2a5cabfc32133cc4;p=pandora-kernel.git [media] uvcvideo: Fix V4L2 button controls that share the same UVC control The Logitech pan/tilt reset UVC control contains two V4L2 button controls to reset pan and tilt. As the UVC control is not marked as auto-update, the button bits are set but never reset. A pan reset that follows a tilt reset would thus reset both pan and tilt. Fix this by not caching the control value of write-only controls. All standard UVC controls are either readable or auto-update, so this will not cause any regression and will not result in extra USB requests. Reported-by: Hans de Goede Signed-off-by: Laurent Pinchart Acked-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed