aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2010-03-13 13:22:32 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 13:47:41 -0400
commita5ba334cda924eb0ae4754321ad7fc292c5a5288 (patch)
treec30a98e4797c3663db5b8f67afb237abeed979a6 /drivers
parent40ff540f3ec7ce2fd37510cbef495a57a4d1bd56 (diff)
V4L/DVB: lgdt3305: enable FE_HAS_SIGNAL hack for the lgdt3304 in QAM mode
The signal bit is unreliable on the DT3304 in QAM mode, so set FE_HAS_SIGNAL based on 'cr_lock' Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/lgdt3305.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/lgdt3305.c b/drivers/media/dvb/frontends/lgdt3305.c
index 63997273d0e0..3272881cb112 100644
--- a/drivers/media/dvb/frontends/lgdt3305.c
+++ b/drivers/media/dvb/frontends/lgdt3305.c
@@ -955,6 +955,10 @@ static int lgdt3305_read_status(struct dvb_frontend *fe, fe_status_t *status)
955 switch (state->current_modulation) { 955 switch (state->current_modulation) {
956 case QAM_256: 956 case QAM_256:
957 case QAM_64: 957 case QAM_64:
958 /* signal bit is unreliable on the DT3304 in QAM mode */
959 if (((LGDT3304 == state->cfg->demod_chip)) && (cr_lock))
960 *status |= FE_HAS_SIGNAL;
961
958 ret = lgdt3305_read_fec_lock_status(state, &fec_lock); 962 ret = lgdt3305_read_fec_lock_status(state, &fec_lock);
959 if (lg_fail(ret)) 963 if (lg_fail(ret))
960 goto fail; 964 goto fail;