projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e69d894
)
[media] cx25840: initialize the standard to NTSC_M
author
Hans Verkuil
<
[email protected]
>
Mon, 30 Nov 2015 12:28:23 +0000
(10:28 -0200)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 18 Dec 2015 15:35:01 +0000
(13:35 -0200)
This is necessary since the *_std_setup functions rely on a valid state->std
field.
Also fix the cx23888_std_setup() to test for 60Hz instead of NTSC, just like
cx25840_std_setup() does.
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/cx25840/cx25840-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/cx25840/cx25840-core.c
b/drivers/media/i2c/cx25840/cx25840-core.c
index a8b1a03d315818ac24eaaafc39c3e919c5dadd45..f2e2c34ddbbd25d105d72847b061276c8833914f 100644
(file)
--- a/
drivers/media/i2c/cx25840/cx25840-core.c
+++ b/
drivers/media/i2c/cx25840/cx25840-core.c
@@
-4977,7
+4977,7
@@
static void cx23888_std_setup(struct i2c_client *client)
cx25840_write4(client, 0x4b4, 0x20524030);
cx25840_write4(client, 0x47c, 0x010a8263);
- if (std & V4L2_STD_
NTSC
) {
+ if (std & V4L2_STD_
525_60
) {
v4l_dbg(1, cx25840_debug, client, "%s() Selecting NTSC",
__func__);
@@
-5268,6
+5268,7
@@
static int cx25840_probe(struct i2c_client *client,
state->id = id;
state->rev = device_id;
state->vbi_regs_offset = id == CX23888_AV ? 0x500 - 0x424 : 0;
+ state->std = V4L2_STD_NTSC_M;
v4l2_ctrl_handler_init(&state->hdl, 9);
v4l2_ctrl_new_std(&state->hdl, &cx25840_ctrl_ops,
V4L2_CID_BRIGHTNESS, 0, 255, 1, 128);