From fc335de7634eebcd30749790419f13390b424701 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Tue, 16 Jan 2018 23:56:30 +0100 Subject: [PATCH] add demod lock state --- ddbridge/ddbridge-mci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ddbridge/ddbridge-mci.c b/ddbridge/ddbridge-mci.c index ba03a13..22e074b 100644 --- a/ddbridge/ddbridge-mci.c +++ b/ddbridge/ddbridge-mci.c @@ -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; }