Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124017
b: refs/heads/master
c: 2c5aacc
h: refs/heads/master
i:
  124015: 05df9a8
v: v3
  • Loading branch information
Markus Rechberger authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent e17715c commit 5783e60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9dbe5dc2e9337f1c7fab16963753aaf3f5283be
refs/heads/master: 2c5aacc6c7916e0a432991b68f3645540365ad53
15 changes: 15 additions & 0 deletions trunk/drivers/media/video/tvp5150.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,21 @@ static int tvp5150_command(struct i2c_client *c,
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;
Expand Down

0 comments on commit 5783e60

Please sign in to comment.