aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/si2168.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-04-23 00:36:32 (GMT)
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-04-23 12:54:26 (GMT)
commit722a042de7c9a893a87d2d853c68473eb4000c05 (patch)
treebe2fbc043e18ac006d0d35e2f618954edeb868fe /drivers/media/dvb-frontends/si2168.c
parent46eacf3bb25ac574a544bec86dfe88faaecd36b3 (diff)
[media] si2168: relax demod lock checks a little
bit3 was not cleared always leaving driver reporting demod is not fully locked. Do not check bit0 as it seems to be always 0. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2168.c')
-rw-r--r--drivers/media/dvb-frontends/si2168.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index dc5b64a..8637d2e 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -132,14 +132,11 @@ static int si2168_read_status(struct dvb_frontend *fe, fe_status_t *status)
* [b4] statistics ready? Set in a few secs after lock is gained.
*/
- switch ((cmd.args[2] >> 0) & 0x0f) {
- case 0x0a:
+ switch ((cmd.args[2] >> 1) & 0x03) {
+ case 0x01:
*status = FE_HAS_SIGNAL | FE_HAS_CARRIER;
break;
- case 0x0e:
- *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI;
- break;
- case 0x06:
+ case 0x03:
*status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI |
FE_HAS_SYNC | FE_HAS_LOCK;
break;

Privacy Policy