]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (3178): bttv VBI fixes
authorMichael H. Schimek <mschimek@gmx.at>
Mon, 9 Jan 2006 17:25:27 +0000 (15:25 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:27 +0000 (15:25 -0200)
commit95e9027e865732d57e48d188afcfec4ac7a43e0a
treea7c0fe1bbfecfcd418c6549e9eee82b79106f0ba
parent1e8c3472065cff28e703bdea4a46f1bf4bbb99f8
V4L/DVB (3178): bttv VBI fixes

- V4L2_(G|S|TRY)_FMT returned incorrect VBI start lines for PAL-M,
NTSC-JP, and PAL-60. They also returned an inaccurate VBI offset.
- V4L2_(G|S)_FMT and V4L2_TRY_FMT disagreed about the start of VBI
capturing in PAL and SECAM second field. Note the start line fixes
may break applications using VIDIOCSVBIFMT because this ioctl fails
when the driver does not support exactly the requested parameters.
- V4L2_TRY_FMT did not clear the reserved field in struct
v4l2_vbi_format.
- V4L2_(S|TRY)_FMT did not expect very large or small VBI start or
count values, returning wrong (but safe) counts due to an overflow.
- VIDIOCGVBIFMT confused V4L and V4L2 VBI flags. However this had no
effect because the flags have the same value and bttv never sets
them.
- In v4l_compat_translate_ioctl() the VIDIOC(G|S)VBIFMT code did not
expect V4L2 drivers supporting VBI formats besides V4L2_PIX_FMT_GREY.

Signed-off-by: Michael H. Schimek <mschimek@gmx.at>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/video/bttv-driver.c
drivers/media/video/bttv-vbi.c
drivers/media/video/bttvp.h
drivers/media/video/v4l1-compat.c