提交 722a042d 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[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: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 46eacf3b
...@@ -132,14 +132,11 @@ static int si2168_read_status(struct dvb_frontend *fe, fe_status_t *status) ...@@ -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. * [b4] statistics ready? Set in a few secs after lock is gained.
*/ */
switch ((cmd.args[2] >> 0) & 0x0f) { switch ((cmd.args[2] >> 1) & 0x03) {
case 0x0a: case 0x01:
*status = FE_HAS_SIGNAL | FE_HAS_CARRIER; *status = FE_HAS_SIGNAL | FE_HAS_CARRIER;
break; break;
case 0x0e: case 0x03:
*status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI;
break;
case 0x06:
*status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI | *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI |
FE_HAS_SYNC | FE_HAS_LOCK; FE_HAS_SYNC | FE_HAS_LOCK;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册