1
0
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:
Ralph Metzler 2018-01-16 23:56:30 +01:00
parent 62e491c2cd
commit fc335de763

View File

@ -251,10 +251,11 @@ static int read_status(struct dvb_frontend *fe, enum fe_status *status)
stat = _mci_cmd(state, &cmd, 1, res, 1);
if (stat)
return stat;
*status = 0x00;
if (res->status == SX8_DEMOD_WAIT_MATYPE)
*status = 0x0f;
if (res->status == SX8_DEMOD_LOCKED)
*status = 0x1f;
else
*status = 0;
return stat;
}