summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/sn9c102/sn9c102_ov7660.c
diff options
context:
space:
mode:
authorTrent Piepho2007-04-28 03:56:29 +0200
committerMauro Carvalho Chehab2007-05-09 15:13:09 +0200
commitbbe2486fe3bd6c7cffaf4123b7e86a55c209ed44 (patch)
tree09520b7aaf5d491a0f954fc8f038d0806663ac5d /drivers/media/video/sn9c102/sn9c102_ov7660.c
parentV4L/DVB (5624): Radio-maestro.c cleanup (diff)
downloadkernel-qcow2-linux-bbe2486fe3bd6c7cffaf4123b7e86a55c209ed44.tar.gz
kernel-qcow2-linux-bbe2486fe3bd6c7cffaf4123b7e86a55c209ed44.tar.xz
kernel-qcow2-linux-bbe2486fe3bd6c7cffaf4123b7e86a55c209ed44.zip
V4L/DVB (5571): V4l1-compat: Make VIDIOCSPICT return errors in a useful way
Among other things, VIDIOCSPICT sets the pixel format. Some drivers don't support all formats, e.g. cx88 doesn't support the planar formats. The compat code that translates VIDIOCSPICT into V4L2 ioctls doesn't pass on any errors, so a userspace program doesn't know if it has selected an unsupported pixel format. VIDIOCSPICT sets both the memory capture and overlay formats, and it's possible that one will be set while the other will fail, e.g. cx88 doesn't even support overlay. Also, trying to set the overlay format will fail for non-root users. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/sn9c102/sn9c102_ov7660.c')
0 files changed, 0 insertions, 0 deletions