]> git.karo-electronics.de Git - linux-beck.git/commit
[media] uvcvideo: Don't report unsupported menu entries
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 30 Apr 2011 12:46:11 +0000 (09:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:30:43 +0000 (09:30 -0300)
commitfc2d573fb4e65393688d32bc128c70ddd8ecccc6
tree3f824598c496536f9f0b7b008bb94eb5e723191b
parente01a234407af60c4b9854d069a7217d75fcdfa29
[media] uvcvideo: Don't report unsupported menu entries

Supported menu entries are reported by the device in response to the
GET_RES query. Use the information to return -EINVAL to userspace for
unsupported values when enumerating menu entries.

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