]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2-dev: G_PARM was incorrectly enabled for all video nodes
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 19 Jul 2012 11:49:25 +0000 (08:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 22:20:44 +0000 (19:20 -0300)
commit837c7e4256d5285700fe0d500eeb15801b55bb0e
tree1707fa8ce2bdf35e08d4b9d850ded84ae1a3f91f
parent47556ffaf212273ca65ce2d3177d4ff2f116db4d
[media] v4l2-dev: G_PARM was incorrectly enabled for all video nodes

G_PARM should only be enabled if:

- vidioc_g_parm is present
- or: it is a video node and vidioc_g_std or tvnorms are set.

Without this additional check v4l2-compliance would complain about
being able to use g_parm when it didn't expect it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c