[media] s921: Properly report the delivery system
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 27 Dec 2011 11:25:33 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 31 Dec 2011 12:23:40 +0000 (10:23 -0200)
Before this patch, a query for the delivery systems were
returned SYS_UNDEFINED.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c
drivers/media/dvb/frontends/s921.c

index 55ca5521bca636a5e77f156cfcf9bcdea09034a7..5f5a0caa450770fe1f19975f4ffe219bda170295 100644 (file)
@@ -1309,7 +1309,6 @@ static void dtv_set_default_delivery_caps(const struct dvb_frontend *fe, struct
                p->u.buffer.len = ncaps;
                return;
        }
-
        switch (info->type) {
        case FE_QPSK:
                p->u.buffer.data[ncaps++] = SYS_DVBS;
index 2e15f92a9a9edd46332c4f51a77b2aa6c91e1672..7652d3fac766f8e26035b5f14fd5fc98692f19f0 100644 (file)
@@ -440,6 +440,7 @@ static int s921_get_frontend(struct dvb_frontend *fe,
 
        /* FIXME: Probably it is possible to get it from regs f1 and f2 */
        p->frequency = state->currentfreq;
+       p->delivery_system = SYS_ISDBT;
 
        return 0;
 }