diff options
author | Markus Rechberger <mrechberger@gmail.com> | 2008-10-24 11:19:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:13 -0500 |
commit | 2c5aacc6c7916e0a432991b68f3645540365ad53 (patch) | |
tree | e322a255546135cb6f9007edb022ef5511fdfd20 /drivers/media/video/tvp5150.c | |
parent | a9dbe5dc2e9337f1c7fab16963753aaf3f5283be (diff) |
V4L/DVB (9363): tvp5150: add support to enable raw vbi
Signed-off-by: Markus Rechberger <mrechberger@sundtek.de>
[mchehab@redhat.com: Fix bad whitespaces]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tvp5150.c')
-rw-r--r-- | drivers/media/video/tvp5150.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c index 28af5ce5560..e8f701a412a 100644 --- a/drivers/media/video/tvp5150.c +++ b/drivers/media/video/tvp5150.c | |||
@@ -912,6 +912,21 @@ static int tvp5150_command(struct i2c_client *c, | |||
912 | int i; | 912 | int i; |
913 | 913 | ||
914 | fmt = arg; | 914 | fmt = arg; |
915 | /* raw vbi */ | ||
916 | if (fmt->type == V4L2_BUF_TYPE_VBI_CAPTURE) { | ||
917 | /* this is for capturing 36 raw vbi lines | ||
918 | if there's a way to cut off the beginning 2 vbi lines | ||
919 | with the tvp5150 then the vbi line count could be lowered | ||
920 | to 17 lines/field again, although I couldn't find a register | ||
921 | which could do that cropping */ | ||
922 | if (fmt->fmt.vbi.sample_format == V4L2_PIX_FMT_GREY) | ||
923 | tvp5150_write(c, TVP5150_LUMA_PROC_CTL_1, 0x70); | ||
924 | if (fmt->fmt.vbi.count[0] == 18 && fmt->fmt.vbi.count[1] == 18) { | ||
925 | tvp5150_write(c, TVP5150_VERT_BLANKING_START, 0x00); | ||
926 | tvp5150_write(c, TVP5150_VERT_BLANKING_STOP, 0x01); | ||
927 | } | ||
928 | break; | ||
929 | } | ||
915 | if (fmt->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) | 930 | if (fmt->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) |
916 | return -EINVAL; | 931 | return -EINVAL; |
917 | svbi = &fmt->fmt.sliced; | 932 | svbi = &fmt->fmt.sliced; |