summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-input.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-30 20:57:39 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-30 20:57:39 +0000
commit5d6597046c8d57aa650a06343c4d63ba7dbe57dc (patch)
tree5f6b19532e60f747fea8c827f791b56d9f9db94e /linux/drivers/media/video/saa7134/saa7134-input.c
parent40623bc5fb02d968ab90fbe4479458cda3ef6f52 (diff)
downloadmediapointer-dvb-s2-5d6597046c8d57aa650a06343c4d63ba7dbe57dc.tar.gz
mediapointer-dvb-s2-5d6597046c8d57aa650a06343c4d63ba7dbe57dc.tar.bz2
OV7670: don't reject unsupported settings
From: Daniel Drake <dsd@laptop.org> 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 'linux/drivers/media/video/saa7134/saa7134-input.c')
0 files changed, 0 insertions, 0 deletions