Skip to contentSkip to conversation

STV0288 added full frontend status

PATCH New Malcolm Priestley 1 participant 1 message Mar 6, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 STV0288 added full frontend status

status now returns
FE_HAS_CARRIER
FE_HAS_SIGNAL
FE_HAS_VITERBI

---
 drivers/media/dvb/frontends/stv0288.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
drivers/media/dvb/frontends/stv0288.c +5 -2
index 63db8fd..5e8c7fd 100644
@@ -367,8 +367,11 @@ static int stv0288_read_status(struct dvb_frontend *fe, fe_status_t *status)
 	dprintk("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __func__, sync);
 
 	*status = 0;
-
-	if ((sync & 0x08) == 0x08) {
+	if (sync & 0x80)
+		*status |= FE_HAS_CARRIER | FE_HAS_SIGNAL;
+	if (sync & 0x10)
+		*status |= FE_HAS_VITERBI;
+	if (sync & 0x08) {
 		*status |= FE_HAS_LOCK;
 		dprintk("stv0288 has locked\n");
 	}
Signature · 1 line
1.7.1