summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-dvb.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-07-01 01:57:39 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 12:24:41 +0200
commitcd257a6f4dd908d94e504d2431710f0fcfe62036 (patch)
treeeda961f673cf6fb31536b01465192ff3b30aac10 /drivers/media/video/saa7134/saa7134-dvb.c
parentV4L/DVB (8317): Sensoray 2255 V4l driver checkpatch fixes (diff)
downloadlinux-cd257a6f4dd908d94e504d2431710f0fcfe62036.tar.xz
linux-cd257a6f4dd908d94e504d2431710f0fcfe62036.zip
V4L/DVB (8318): OV7670: don't reject unsupported settings
For VIDIOC_G_FMT/VIDIOC_TRY_FMT, the V4L2 API spec states: "Drivers should not return an error code unless the input is ambiguous" "Very simple, inflexible devices may even ignore all input and always return the default parameters." "When the requested buffer type is not supported drivers return an EINVAL error code." i.e. returning errors for unsupported fields is bad, and it's ok to unconditionally overwrite user-requested settings This patch makes ov7670 meet that behaviour, and brings it in line with other drivers e.g. stk-webcam. It also fixes compatibility with (unpatched) gstreamer. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-dvb.c')
0 files changed, 0 insertions, 0 deletions