From: Hans Verkuil Date: Fri, 3 Apr 2015 09:53:42 +0000 (-0300) Subject: [media] uvcvideo: fix cropcap v4l2-compliance failure X-Git-Tag: omap-for-v4.1/fixes-rc1~72^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1461fe7ab6e61c4ad59f54e308872c0bae09d609;p=pandora-kernel.git [media] uvcvideo: fix cropcap v4l2-compliance failure The v4l2-compliance tool expects that if VIDIOC_CROPCAP is defined, then VIDIOC_G_SELECTION for TGT_CROP_BOUNDS/DEFAULT is also defined (or COMPOSE in the case of an output device). In fact, all that a driver has to do to implement cropcap is to support those two targets since the v4l2 core will implement cropcap and fill in the pixelaspect to 1/1 by default. Implementing cropcap is only needed if the pixelaspect isn't square. So implement g_selection instead of cropcap in uvc to fix the v4l2-compliance failure. [Added blank lines for improved readability] Signed-off-by: Hans Verkuil Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed