aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/lgdt330x.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-11-28 00:16:20 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 06:05:23 -0500
commit1b5b32bf877d6f77d7eb6580d43623cc113a3b60 (patch)
tree084ee1c8e0188854acbdc1834311be54d293e86e /drivers/media/dvb/frontends/lgdt330x.c
parentaf249982dc385b18ea340323f50f585e989b76e5 (diff)
V4L/DVB (4890): Lgdt330x: fix signal / lock status detection bug
In some cases when using VSB, the AGC status register has been known to falsely report "no signal" when in fact there is a carrier lock. The datasheet labels these status flags as QAM only, yet the lgdt330x module is using these flags for both QAM and VSB. This patch allows for the carrier recovery lock status register to be tested, even if the agc signal status register falsely reports no signal. Thanks to jcrews from #linuxtv in irc, for initially reporting this bug. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/lgdt330x.c')
-rw-r--r--drivers/media/dvb/frontends/lgdt330x.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/lgdt330x.c b/drivers/media/dvb/frontends/lgdt330x.c
index db3ef58dafba..75be6e4aa176 100644
--- a/drivers/media/dvb/frontends/lgdt330x.c
+++ b/drivers/media/dvb/frontends/lgdt330x.c
@@ -437,9 +437,6 @@ static int lgdt3302_read_status(struct dvb_frontend* fe, fe_status_t* status)
437 /* Test signal does not exist flag */ 437 /* Test signal does not exist flag */
438 /* as well as the AGC lock flag. */ 438 /* as well as the AGC lock flag. */
439 *status |= FE_HAS_SIGNAL; 439 *status |= FE_HAS_SIGNAL;
440 } else {
441 /* Without a signal all other status bits are meaningless */
442 return 0;
443 } 440 }
444 441
445 /* 442 /*
@@ -502,9 +499,6 @@ static int lgdt3303_read_status(struct dvb_frontend* fe, fe_status_t* status)
502 /* Test input signal does not exist flag */ 499 /* Test input signal does not exist flag */
503 /* as well as the AGC lock flag. */ 500 /* as well as the AGC lock flag. */
504 *status |= FE_HAS_SIGNAL; 501 *status |= FE_HAS_SIGNAL;
505 } else {
506 /* Without a signal all other status bits are meaningless */
507 return 0;
508 } 502 }
509 503
510 /* Carrier Recovery Lock Status Register */ 504 /* Carrier Recovery Lock Status Register */