mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
add demod lock state
This commit is contained in:
parent
62e491c2cd
commit
fc335de763
@ -251,10 +251,11 @@ static int read_status(struct dvb_frontend *fe, enum fe_status *status)
|
|||||||
stat = _mci_cmd(state, &cmd, 1, res, 1);
|
stat = _mci_cmd(state, &cmd, 1, res, 1);
|
||||||
if (stat)
|
if (stat)
|
||||||
return stat;
|
return stat;
|
||||||
|
*status = 0x00;
|
||||||
|
if (res->status == SX8_DEMOD_WAIT_MATYPE)
|
||||||
|
*status = 0x0f;
|
||||||
if (res->status == SX8_DEMOD_LOCKED)
|
if (res->status == SX8_DEMOD_LOCKED)
|
||||||
*status = 0x1f;
|
*status = 0x1f;
|
||||||
else
|
|
||||||
*status = 0;
|
|
||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user