diff options
author | Rajashekhara, Sudhakar <sudhakar.raj@ti.com> | 2010-07-28 04:47:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-08 22:43:07 -0400 |
commit | 560afa7d85bdfb294506afd3032c315e6827824f (patch) | |
tree | 2b4a1ae89f2060cf767a071f78614c055378681c /drivers/media/video/tvp7002.c | |
parent | d0a38ce27e1b11116f02835b076fcb79db987e2c (diff) |
V4L/DVB: tvp7002: fix write to H-PLL Feedback Divider LSB register
H-PLL Feedback Divider LSB register is an 8 bit register out
of which the first 4 bits are reserved. Current code is
writing to these reserved location. This patch corrects
this issue by left shifting the values being written to the
register by 4.
This patch has been tested on DM6467 EVM with 720P-60 and
1080I-60 inputs.
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tvp7002.c')
-rw-r--r-- | drivers/media/video/tvp7002.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/tvp7002.c b/drivers/media/video/tvp7002.c index 8085ac392446..48f5c76ab521 100644 --- a/drivers/media/video/tvp7002.c +++ b/drivers/media/video/tvp7002.c | |||
@@ -179,7 +179,7 @@ static const struct i2c_reg_value tvp7002_init_default[] = { | |||
179 | /* Register parameters for 480P */ | 179 | /* Register parameters for 480P */ |
180 | static const struct i2c_reg_value tvp7002_parms_480P[] = { | 180 | static const struct i2c_reg_value tvp7002_parms_480P[] = { |
181 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x35, TVP7002_WRITE }, | 181 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x35, TVP7002_WRITE }, |
182 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x0a, TVP7002_WRITE }, | 182 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0xa0, TVP7002_WRITE }, |
183 | { TVP7002_HPLL_CRTL, 0x02, TVP7002_WRITE }, | 183 | { TVP7002_HPLL_CRTL, 0x02, TVP7002_WRITE }, |
184 | { TVP7002_HPLL_PHASE_SEL, 0x14, TVP7002_WRITE }, | 184 | { TVP7002_HPLL_PHASE_SEL, 0x14, TVP7002_WRITE }, |
185 | { TVP7002_AVID_START_PIXEL_LSBS, 0x91, TVP7002_WRITE }, | 185 | { TVP7002_AVID_START_PIXEL_LSBS, 0x91, TVP7002_WRITE }, |
@@ -223,7 +223,7 @@ static const struct i2c_reg_value tvp7002_parms_576P[] = { | |||
223 | /* Register parameters for 1080I60 */ | 223 | /* Register parameters for 1080I60 */ |
224 | static const struct i2c_reg_value tvp7002_parms_1080I60[] = { | 224 | static const struct i2c_reg_value tvp7002_parms_1080I60[] = { |
225 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x89, TVP7002_WRITE }, | 225 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x89, TVP7002_WRITE }, |
226 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x08, TVP7002_WRITE }, | 226 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x80, TVP7002_WRITE }, |
227 | { TVP7002_HPLL_CRTL, 0x98, TVP7002_WRITE }, | 227 | { TVP7002_HPLL_CRTL, 0x98, TVP7002_WRITE }, |
228 | { TVP7002_HPLL_PHASE_SEL, 0x14, TVP7002_WRITE }, | 228 | { TVP7002_HPLL_PHASE_SEL, 0x14, TVP7002_WRITE }, |
229 | { TVP7002_AVID_START_PIXEL_LSBS, 0x06, TVP7002_WRITE }, | 229 | { TVP7002_AVID_START_PIXEL_LSBS, 0x06, TVP7002_WRITE }, |
@@ -245,7 +245,7 @@ static const struct i2c_reg_value tvp7002_parms_1080I60[] = { | |||
245 | /* Register parameters for 1080P60 */ | 245 | /* Register parameters for 1080P60 */ |
246 | static const struct i2c_reg_value tvp7002_parms_1080P60[] = { | 246 | static const struct i2c_reg_value tvp7002_parms_1080P60[] = { |
247 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x89, TVP7002_WRITE }, | 247 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x89, TVP7002_WRITE }, |
248 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x08, TVP7002_WRITE }, | 248 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x80, TVP7002_WRITE }, |
249 | { TVP7002_HPLL_CRTL, 0xE0, TVP7002_WRITE }, | 249 | { TVP7002_HPLL_CRTL, 0xE0, TVP7002_WRITE }, |
250 | { TVP7002_HPLL_PHASE_SEL, 0x14, TVP7002_WRITE }, | 250 | { TVP7002_HPLL_PHASE_SEL, 0x14, TVP7002_WRITE }, |
251 | { TVP7002_AVID_START_PIXEL_LSBS, 0x06, TVP7002_WRITE }, | 251 | { TVP7002_AVID_START_PIXEL_LSBS, 0x06, TVP7002_WRITE }, |
@@ -289,7 +289,7 @@ static const struct i2c_reg_value tvp7002_parms_1080I50[] = { | |||
289 | /* Register parameters for 720P60 */ | 289 | /* Register parameters for 720P60 */ |
290 | static const struct i2c_reg_value tvp7002_parms_720P60[] = { | 290 | static const struct i2c_reg_value tvp7002_parms_720P60[] = { |
291 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x67, TVP7002_WRITE }, | 291 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x67, TVP7002_WRITE }, |
292 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x02, TVP7002_WRITE }, | 292 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x20, TVP7002_WRITE }, |
293 | { TVP7002_HPLL_CRTL, 0xa0, TVP7002_WRITE }, | 293 | { TVP7002_HPLL_CRTL, 0xa0, TVP7002_WRITE }, |
294 | { TVP7002_HPLL_PHASE_SEL, 0x16, TVP7002_WRITE }, | 294 | { TVP7002_HPLL_PHASE_SEL, 0x16, TVP7002_WRITE }, |
295 | { TVP7002_AVID_START_PIXEL_LSBS, 0x47, TVP7002_WRITE }, | 295 | { TVP7002_AVID_START_PIXEL_LSBS, 0x47, TVP7002_WRITE }, |
@@ -311,7 +311,7 @@ static const struct i2c_reg_value tvp7002_parms_720P60[] = { | |||
311 | /* Register parameters for 720P50 */ | 311 | /* Register parameters for 720P50 */ |
312 | static const struct i2c_reg_value tvp7002_parms_720P50[] = { | 312 | static const struct i2c_reg_value tvp7002_parms_720P50[] = { |
313 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x7b, TVP7002_WRITE }, | 313 | { TVP7002_HPLL_FDBK_DIV_MSBS, 0x7b, TVP7002_WRITE }, |
314 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0x0c, TVP7002_WRITE }, | 314 | { TVP7002_HPLL_FDBK_DIV_LSBS, 0xc0, TVP7002_WRITE }, |
315 | { TVP7002_HPLL_CRTL, 0x98, TVP7002_WRITE }, | 315 | { TVP7002_HPLL_CRTL, 0x98, TVP7002_WRITE }, |
316 | { TVP7002_HPLL_PHASE_SEL, 0x16, TVP7002_WRITE }, | 316 | { TVP7002_HPLL_PHASE_SEL, 0x16, TVP7002_WRITE }, |
317 | { TVP7002_AVID_START_PIXEL_LSBS, 0x47, TVP7002_WRITE }, | 317 | { TVP7002_AVID_START_PIXEL_LSBS, 0x47, TVP7002_WRITE }, |