]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] cxusb: use DVBv5 parameters on set_params()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 24 Dec 2011 13:17:30 +0000 (10:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 31 Dec 2011 10:43:05 +0000 (08:43 -0200)
Instead of using DVBv3 parameters, rely on DVBv5 parameters to
set the tuner

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/cxusb.c

index 9f2a02c483779db28f3a754a0215f72484ac8fca..4f9bfc5438079c624af94e93a8889ae137fd2594 100644 (file)
@@ -1074,11 +1074,12 @@ struct dib0700_adapter_state {
 static int dib7070_set_param_override(struct dvb_frontend *fe,
                                      struct dvb_frontend_parameters *fep)
 {
+       struct dtv_frontend_properties *p = &fe->dtv_property_cache;
        struct dvb_usb_adapter *adap = fe->dvb->priv;
        struct dib0700_adapter_state *state = adap->priv;
 
        u16 offset;
-       u8 band = BAND_OF_FREQUENCY(fep->frequency/1000);
+       u8 band = BAND_OF_FREQUENCY(p->frequency/1000);
        switch (band) {
        case BAND_VHF: offset = 950; break;
        default: