diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2011-03-06 11:37:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 15:38:28 -0400 |
commit | b50b3a1acd22a07e354a154e5d00a9d338446b77 (patch) | |
tree | 13328e36f23a0b48a8de9efaea19288de9b897d6 | |
parent | 590f21680616a78f7d6972b92ceb540e306452c1 (diff) |
[media] STV0288 added full frontend status
status now returns
FE_HAS_CARRIER
FE_HAS_SIGNAL
FE_HAS_VITERBI
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/stv0288.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stv0288.c b/drivers/media/dvb/frontends/stv0288.c index 63db8fd2754c..e3fe17fd96fb 100644 --- a/drivers/media/dvb/frontends/stv0288.c +++ b/drivers/media/dvb/frontends/stv0288.c | |||
@@ -367,8 +367,11 @@ static int stv0288_read_status(struct dvb_frontend *fe, fe_status_t *status) | |||
367 | dprintk("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __func__, sync); | 367 | dprintk("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __func__, sync); |
368 | 368 | ||
369 | *status = 0; | 369 | *status = 0; |
370 | 370 | if (sync & 0x80) | |
371 | if ((sync & 0x08) == 0x08) { | 371 | *status |= FE_HAS_CARRIER | FE_HAS_SIGNAL; |
372 | if (sync & 0x10) | ||
373 | *status |= FE_HAS_VITERBI; | ||
374 | if (sync & 0x08) { | ||
372 | *status |= FE_HAS_LOCK; | 375 | *status |= FE_HAS_LOCK; |
373 | dprintk("stv0288 has locked\n"); | 376 | dprintk("stv0288 has locked\n"); |
374 | } | 377 | } |