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:
e78d834
)
[media] adv7842: corrected setting of cp-register 0x91 and 0x8f
author
Martin Bugge
<marbugge@cisco.com>
Tue, 10 Dec 2013 14:01:00 +0000
(11:01 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Tue, 7 Jan 2014 08:21:30 +0000
(06:21 -0200)
Bit 6 of register 0x8f was cleared incorrectly (must be 1), and bit 4
of register 0x91 was set incorrectly (must be 0).
These bits are undocumented, so we shouldn't modify them to values different
from what the datasheet specifies.
Signed-off-by: Martin Bugge <marbugge@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/adv7842.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/adv7842.c
b/drivers/media/i2c/adv7842.c
index 22fa4ca8b51b700c2a44146fe11f655dfd1fe5e5..6434a93e141670e014edbda8eeb42b859e865e5a 100644
(file)
--- a/
drivers/media/i2c/adv7842.c
+++ b/
drivers/media/i2c/adv7842.c
@@
-927,7
+927,7
@@
static int configure_predefined_video_timings(struct v4l2_subdev *sd,
cp_write(sd, 0x27, 0x00);
cp_write(sd, 0x28, 0x00);
cp_write(sd, 0x29, 0x00);
- cp_write(sd, 0x8f, 0x
0
0);
+ cp_write(sd, 0x8f, 0x
4
0);
cp_write(sd, 0x90, 0x00);
cp_write(sd, 0xa5, 0x00);
cp_write(sd, 0xa6, 0x00);
@@
-1408,7
+1408,7
@@
static int adv7842_s_dv_timings(struct v4l2_subdev *sd,
state->timings = *timings;
- cp_write(sd, 0x91, bt->interlaced ? 0x
50 : 0x1
0);
+ cp_write(sd, 0x91, bt->interlaced ? 0x
40 : 0x0
0);
/* Use prim_mode and vid_std when available */
err = configure_predefined_video_timings(sd, timings);