diff options
Diffstat (limited to 'drivers/media/dvb/frontends/atbm8830.c')
-rw-r--r-- | drivers/media/dvb/frontends/atbm8830.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/media/dvb/frontends/atbm8830.c b/drivers/media/dvb/frontends/atbm8830.c index 1539ea1f81ac..a2261ea2cf82 100644 --- a/drivers/media/dvb/frontends/atbm8830.c +++ b/drivers/media/dvb/frontends/atbm8830.c | |||
@@ -267,8 +267,7 @@ static void atbm8830_release(struct dvb_frontend *fe) | |||
267 | kfree(state); | 267 | kfree(state); |
268 | } | 268 | } |
269 | 269 | ||
270 | static int atbm8830_set_fe(struct dvb_frontend *fe, | 270 | static int atbm8830_set_fe(struct dvb_frontend *fe) |
271 | struct dvb_frontend_parameters *fe_params) | ||
272 | { | 271 | { |
273 | struct atbm_state *priv = fe->demodulator_priv; | 272 | struct atbm_state *priv = fe->demodulator_priv; |
274 | int i; | 273 | int i; |
@@ -279,7 +278,7 @@ static int atbm8830_set_fe(struct dvb_frontend *fe, | |||
279 | if (fe->ops.tuner_ops.set_params) { | 278 | if (fe->ops.tuner_ops.set_params) { |
280 | if (fe->ops.i2c_gate_ctrl) | 279 | if (fe->ops.i2c_gate_ctrl) |
281 | fe->ops.i2c_gate_ctrl(fe, 1); | 280 | fe->ops.i2c_gate_ctrl(fe, 1); |
282 | fe->ops.tuner_ops.set_params(fe, fe_params); | 281 | fe->ops.tuner_ops.set_params(fe); |
283 | if (fe->ops.i2c_gate_ctrl) | 282 | if (fe->ops.i2c_gate_ctrl) |
284 | fe->ops.i2c_gate_ctrl(fe, 0); | 283 | fe->ops.i2c_gate_ctrl(fe, 0); |
285 | } | 284 | } |
@@ -298,31 +297,31 @@ static int atbm8830_set_fe(struct dvb_frontend *fe, | |||
298 | return 0; | 297 | return 0; |
299 | } | 298 | } |
300 | 299 | ||
301 | static int atbm8830_get_fe(struct dvb_frontend *fe, | 300 | static int atbm8830_get_fe(struct dvb_frontend *fe) |
302 | struct dvb_frontend_parameters *fe_params) | ||
303 | { | 301 | { |
302 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | ||
304 | dprintk("%s\n", __func__); | 303 | dprintk("%s\n", __func__); |
305 | 304 | ||
306 | /* TODO: get real readings from device */ | 305 | /* TODO: get real readings from device */ |
307 | /* inversion status */ | 306 | /* inversion status */ |
308 | fe_params->inversion = INVERSION_OFF; | 307 | c->inversion = INVERSION_OFF; |
309 | 308 | ||
310 | /* bandwidth */ | 309 | /* bandwidth */ |
311 | fe_params->u.ofdm.bandwidth = BANDWIDTH_8_MHZ; | 310 | c->bandwidth_hz = 8000000; |
312 | 311 | ||
313 | fe_params->u.ofdm.code_rate_HP = FEC_AUTO; | 312 | c->code_rate_HP = FEC_AUTO; |
314 | fe_params->u.ofdm.code_rate_LP = FEC_AUTO; | 313 | c->code_rate_LP = FEC_AUTO; |
315 | 314 | ||
316 | fe_params->u.ofdm.constellation = QAM_AUTO; | 315 | c->modulation = QAM_AUTO; |
317 | 316 | ||
318 | /* transmission mode */ | 317 | /* transmission mode */ |
319 | fe_params->u.ofdm.transmission_mode = TRANSMISSION_MODE_AUTO; | 318 | c->transmission_mode = TRANSMISSION_MODE_AUTO; |
320 | 319 | ||
321 | /* guard interval */ | 320 | /* guard interval */ |
322 | fe_params->u.ofdm.guard_interval = GUARD_INTERVAL_AUTO; | 321 | c->guard_interval = GUARD_INTERVAL_AUTO; |
323 | 322 | ||
324 | /* hierarchy */ | 323 | /* hierarchy */ |
325 | fe_params->u.ofdm.hierarchy_information = HIERARCHY_NONE; | 324 | c->hierarchy = HIERARCHY_NONE; |
326 | 325 | ||
327 | return 0; | 326 | return 0; |
328 | } | 327 | } |
@@ -429,9 +428,9 @@ static int atbm8830_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) | |||
429 | } | 428 | } |
430 | 429 | ||
431 | static struct dvb_frontend_ops atbm8830_ops = { | 430 | static struct dvb_frontend_ops atbm8830_ops = { |
431 | .delsys = { SYS_DMBTH }, | ||
432 | .info = { | 432 | .info = { |
433 | .name = "AltoBeam ATBM8830/8831 DMB-TH", | 433 | .name = "AltoBeam ATBM8830/8831 DMB-TH", |
434 | .type = FE_OFDM, | ||
435 | .frequency_min = 474000000, | 434 | .frequency_min = 474000000, |
436 | .frequency_max = 858000000, | 435 | .frequency_max = 858000000, |
437 | .frequency_stepsize = 10000, | 436 | .frequency_stepsize = 10000, |