diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-04-22 13:45:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:49 -0400 |
commit | 081b496a75fec134657f036f585738a1ca869047 (patch) | |
tree | 41069e310a3d2ba54abc1767663f04b902255abe /drivers/media/video/cx25840/cx25840-vbi.c | |
parent | 2fd3c14cf53c379602d1a8a1a0aed7737a48c5c6 (diff) |
V4L/DVB (7344): cx25840: better PAL-M and NTSC-KR handling
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx25840/cx25840-vbi.c')
-rw-r--r-- | drivers/media/video/cx25840/cx25840-vbi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/cx25840/cx25840-vbi.c b/drivers/media/video/cx25840/cx25840-vbi.c index 6828f59b9d83..c754b9d13369 100644 --- a/drivers/media/video/cx25840/cx25840-vbi.c +++ b/drivers/media/video/cx25840/cx25840-vbi.c | |||
@@ -85,7 +85,7 @@ static int decode_vps(u8 * dst, u8 * p) | |||
85 | void cx25840_vbi_setup(struct i2c_client *client) | 85 | void cx25840_vbi_setup(struct i2c_client *client) |
86 | { | 86 | { |
87 | struct cx25840_state *state = i2c_get_clientdata(client); | 87 | struct cx25840_state *state = i2c_get_clientdata(client); |
88 | v4l2_std_id std = cx25840_get_v4lstd(client); | 88 | v4l2_std_id std = state->std; |
89 | int hblank,hactive,burst,vblank,vactive,sc,vblank656,src_decimation; | 89 | int hblank,hactive,burst,vblank,vactive,sc,vblank656,src_decimation; |
90 | int luma_lpf,uv_lpf, comb; | 90 | int luma_lpf,uv_lpf, comb; |
91 | u32 pll_int,pll_frac,pll_post; | 91 | u32 pll_int,pll_frac,pll_post; |
@@ -242,7 +242,7 @@ int cx25840_vbi(struct i2c_client *client, unsigned int cmd, void *arg) | |||
242 | 0, 0, V4L2_SLICED_VPS, 0, 0, /* 9 */ | 242 | 0, 0, V4L2_SLICED_VPS, 0, 0, /* 9 */ |
243 | 0, 0, 0, 0 | 243 | 0, 0, 0, 0 |
244 | }; | 244 | }; |
245 | int is_pal = !(cx25840_get_v4lstd(client) & V4L2_STD_525_60); | 245 | int is_pal = !(state->std & V4L2_STD_525_60); |
246 | int i; | 246 | int i; |
247 | 247 | ||
248 | fmt = arg; | 248 | fmt = arg; |
@@ -279,7 +279,7 @@ int cx25840_vbi(struct i2c_client *client, unsigned int cmd, void *arg) | |||
279 | 279 | ||
280 | case VIDIOC_S_FMT: | 280 | case VIDIOC_S_FMT: |
281 | { | 281 | { |
282 | int is_pal = !(cx25840_get_v4lstd(client) & V4L2_STD_525_60); | 282 | int is_pal = !(state->std & V4L2_STD_525_60); |
283 | int vbi_offset = is_pal ? 1 : 0; | 283 | int vbi_offset = is_pal ? 1 : 0; |
284 | int i, x; | 284 | int i, x; |
285 | u8 lcr[24]; | 285 | u8 lcr[24]; |