commit | 34796bc009565ea72643087b7d69c9fa748bce9b | [log] [tgz] |
---|---|---|
author | Trent Piepho <xyzzy@speakeasy.org> | Sat Mar 28 22:25:35 2009 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Mon Mar 30 12:43:44 2009 -0300 |
tree | 85aa4eaaaad8f188cc574e9f8488f5fb2a5d51e3 | |
parent | 3fd8ab30c1fe9118a13f4b55172067ee04ef7a67 [diff] |
V4L/DVB (11260): v4l2-ioctl: Check format for S_PARM and G_PARM Return EINVAL if VIDIOC_S/G_PARM is called for a buffer type that the driver doesn't define a ->vidioc_try_fmt_XXX() method for. Several other ioctls, like QUERYBUF, QBUF, and DQBUF, etc. do this too. It saves each driver from having to check if the buffer type is one that it supports. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>