Commit afd2b38a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] cxusb: use DVBv5 parameters on set_params()

Instead of using DVBv3 parameters, rely on DVBv5 parameters to
set the tuner
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c79c9fb3
...@@ -1074,11 +1074,12 @@ struct dib0700_adapter_state { ...@@ -1074,11 +1074,12 @@ struct dib0700_adapter_state {
static int dib7070_set_param_override(struct dvb_frontend *fe, static int dib7070_set_param_override(struct dvb_frontend *fe,
struct dvb_frontend_parameters *fep) struct dvb_frontend_parameters *fep)
{ {
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct dvb_usb_adapter *adap = fe->dvb->priv; struct dvb_usb_adapter *adap = fe->dvb->priv;
struct dib0700_adapter_state *state = adap->priv; struct dib0700_adapter_state *state = adap->priv;
u16 offset; u16 offset;
u8 band = BAND_OF_FREQUENCY(fep->frequency/1000); u8 band = BAND_OF_FREQUENCY(p->frequency/1000);
switch (band) { switch (band) {
case BAND_VHF: offset = 950; break; case BAND_VHF: offset = 950; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment