diff options
Diffstat (limited to 'src/af903x-tuner.c')
-rw-r--r-- | src/af903x-tuner.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/af903x-tuner.c b/src/af903x-tuner.c index c45f1ae..1e9c562 100644 --- a/src/af903x-tuner.c +++ b/src/af903x-tuner.c @@ -11,13 +11,14 @@ -static int tuner_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params) +static int tuner_set_params(struct dvb_frontend *fe) { + struct dtv_frontend_properties *params = &fe->dtv_property_cache; struct tuner_priv *priv=NULL; DWORD dwError = Error_NO_ERROR; DWORD freq = params->frequency ;// 1000; // Hz -> kHz - priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->u.ofdm.bandwidth : 0; + priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->bandwidth_hz : 0; deb_data("%s - freq : %d , bandwidth : %dn",__FUNCTION__, (int) freq,priv->bandwidth); |