The patch number 9363 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Markus Rechberger  <[EMAIL PROTECTED]>
tvp5150: add support to enable raw vbi


Priority: normal

Signed-off-by: Markus Rechberger <[EMAIL PROTECTED]>
[EMAIL PROTECTED]: Fix bad whitespaces]
Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/tvp5150.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff -r 10baa6112e64 -r fe810917c6ca linux/drivers/media/video/tvp5150.c
--- a/linux/drivers/media/video/tvp5150.c       Fri Oct 24 13:15:08 2008 -0200
+++ b/linux/drivers/media/video/tvp5150.c       Fri Oct 24 13:19:14 2008 -0200
@@ -935,6 +935,21 @@ static int tvp5150_command(struct i2c_cl
                int i;
 
                fmt = arg;
+               /* raw vbi */
+               if (fmt->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
+                       /* this is for capturing 36 raw vbi lines
+                          if there's a way to cut off the beginning 2 vbi lines
+                          with the tvp5150 then the vbi line count could be 
lowered
+                          to 17 lines/field again, although I couldn't find a 
register
+                          which could do that cropping */
+                       if (fmt->fmt.vbi.sample_format == V4L2_PIX_FMT_GREY)
+                               tvp5150_write(c, TVP5150_LUMA_PROC_CTL_1, 0x70);
+                       if (fmt->fmt.vbi.count[0] == 18 && 
fmt->fmt.vbi.count[1] == 18) {
+                               tvp5150_write(c, TVP5150_VERT_BLANKING_START, 
0x00);
+                               tvp5150_write(c, TVP5150_VERT_BLANKING_STOP, 
0x01);
+                       }
+                       break;
+               }
                if (fmt->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE)
                        return -EINVAL;
                svbi = &fmt->fmt.sliced;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/fe810917c6ca353f5b5fa4fb7ec570c61ca98fcd

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to