]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (6391): bttv: SPICT ioctl doesn't work with vlc
authorTrent Piepho <xyzzy@speakeasy.org>
Mon, 22 Oct 2007 20:44:54 +0000 (17:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 4 Nov 2007 23:41:16 +0000 (21:41 -0200)
commit09cf097601d0117aef712bd8ef0aada97b48b61f
tree45902563050ba86aa0bf7b5f8a00968072881a60
parent00f572f9b702053e702cecd7aa47aa0191dc83d4
V4L/DVB (6391): bttv: SPICT ioctl doesn't work with vlc

The bttv driver instists that the depth specified in the call to VIDIOCSPICT
match the pixel format specified in the same call.

vlc doesn't set the depth field, which makes the SPICT ioctl always fail.

The V4L1 standard is not clear on how most operation are supposed to work, and
this is no exception.  The depth field would appear to be entirely redundant,
as the pixel format specifies a specific depth.  It could be that this field
was only meant for output from the *G*PICT ioctl and should be ignored in
*S*PICT.  This is in fact what the v4l1-compat wrapper does.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/bt8xx/bttv-driver.c