diff options
Diffstat (limited to 'drivers/media/dvb/ttpci/budget.c')
-rw-r--r-- | drivers/media/dvb/ttpci/budget.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c index d98395fefc95..35761f13c12b 100644 --- a/drivers/media/dvb/ttpci/budget.c +++ b/drivers/media/dvb/ttpci/budget.c | |||
@@ -209,8 +209,8 @@ static int alps_bsrv2_tuner_set_params(struct dvb_frontend* fe, struct dvb_front | |||
209 | // NOTE: since we're using a prescaler of 2, we set the | 209 | // NOTE: since we're using a prescaler of 2, we set the |
210 | // divisor frequency to 62.5kHz and divide by 125 above | 210 | // divisor frequency to 62.5kHz and divide by 125 above |
211 | 211 | ||
212 | if (fe->ops->i2c_gate_ctrl) | 212 | if (fe->ops.i2c_gate_ctrl) |
213 | fe->ops->i2c_gate_ctrl(fe, 1); | 213 | fe->ops.i2c_gate_ctrl(fe, 1); |
214 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; | 214 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; |
215 | return 0; | 215 | return 0; |
216 | } | 216 | } |
@@ -236,8 +236,8 @@ static int alps_tdbe2_tuner_set_params(struct dvb_frontend* fe, struct dvb_front | |||
236 | data[2] = 0x85 | ((div >> 10) & 0x60); | 236 | data[2] = 0x85 | ((div >> 10) & 0x60); |
237 | data[3] = (params->frequency < 174000000 ? 0x88 : params->frequency < 470000000 ? 0x84 : 0x81); | 237 | data[3] = (params->frequency < 174000000 ? 0x88 : params->frequency < 470000000 ? 0x84 : 0x81); |
238 | 238 | ||
239 | if (fe->ops->i2c_gate_ctrl) | 239 | if (fe->ops.i2c_gate_ctrl) |
240 | fe->ops->i2c_gate_ctrl(fe, 1); | 240 | fe->ops.i2c_gate_ctrl(fe, 1); |
241 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; | 241 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; |
242 | return 0; | 242 | return 0; |
243 | } | 243 | } |
@@ -276,8 +276,8 @@ static int grundig_29504_401_tuner_set_params(struct dvb_frontend* fe, struct dv | |||
276 | data[2] = ((div >> 10) & 0x60) | cfg; | 276 | data[2] = ((div >> 10) & 0x60) | cfg; |
277 | data[3] = (cpump << 6) | band_select; | 277 | data[3] = (cpump << 6) | band_select; |
278 | 278 | ||
279 | if (fe->ops->i2c_gate_ctrl) | 279 | if (fe->ops.i2c_gate_ctrl) |
280 | fe->ops->i2c_gate_ctrl(fe, 1); | 280 | fe->ops.i2c_gate_ctrl(fe, 1); |
281 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; | 281 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; |
282 | return 0; | 282 | return 0; |
283 | } | 283 | } |
@@ -299,8 +299,8 @@ static int grundig_29504_451_tuner_set_params(struct dvb_frontend* fe, struct dv | |||
299 | data[2] = 0x8e; | 299 | data[2] = 0x8e; |
300 | data[3] = 0x00; | 300 | data[3] = 0x00; |
301 | 301 | ||
302 | if (fe->ops->i2c_gate_ctrl) | 302 | if (fe->ops.i2c_gate_ctrl) |
303 | fe->ops->i2c_gate_ctrl(fe, 1); | 303 | fe->ops.i2c_gate_ctrl(fe, 1); |
304 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; | 304 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; |
305 | return 0; | 305 | return 0; |
306 | } | 306 | } |
@@ -330,8 +330,8 @@ static int s5h1420_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend | |||
330 | else | 330 | else |
331 | data[3] = 0xc0; | 331 | data[3] = 0xc0; |
332 | 332 | ||
333 | if (fe->ops->i2c_gate_ctrl) | 333 | if (fe->ops.i2c_gate_ctrl) |
334 | fe->ops->i2c_gate_ctrl(fe, 1); | 334 | fe->ops.i2c_gate_ctrl(fe, 1); |
335 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; | 335 | if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; |
336 | 336 | ||
337 | return 0; | 337 | return 0; |
@@ -363,21 +363,21 @@ static void frontend_init(struct budget *budget) | |||
363 | // try the ALPS BSRV2 first of all | 363 | // try the ALPS BSRV2 first of all |
364 | budget->dvb_frontend = ves1x93_attach(&alps_bsrv2_config, &budget->i2c_adap); | 364 | budget->dvb_frontend = ves1x93_attach(&alps_bsrv2_config, &budget->i2c_adap); |
365 | if (budget->dvb_frontend) { | 365 | if (budget->dvb_frontend) { |
366 | budget->dvb_frontend->ops->tuner_ops.set_params = alps_bsrv2_tuner_set_params; | 366 | budget->dvb_frontend->ops.tuner_ops.set_params = alps_bsrv2_tuner_set_params; |
367 | budget->dvb_frontend->ops->diseqc_send_master_cmd = budget_diseqc_send_master_cmd; | 367 | budget->dvb_frontend->ops.diseqc_send_master_cmd = budget_diseqc_send_master_cmd; |
368 | budget->dvb_frontend->ops->diseqc_send_burst = budget_diseqc_send_burst; | 368 | budget->dvb_frontend->ops.diseqc_send_burst = budget_diseqc_send_burst; |
369 | budget->dvb_frontend->ops->set_tone = budget_set_tone; | 369 | budget->dvb_frontend->ops.set_tone = budget_set_tone; |
370 | break; | 370 | break; |
371 | } | 371 | } |
372 | 372 | ||
373 | // try the ALPS BSRU6 now | 373 | // try the ALPS BSRU6 now |
374 | budget->dvb_frontend = stv0299_attach(&alps_bsru6_config, &budget->i2c_adap); | 374 | budget->dvb_frontend = stv0299_attach(&alps_bsru6_config, &budget->i2c_adap); |
375 | if (budget->dvb_frontend) { | 375 | if (budget->dvb_frontend) { |
376 | budget->dvb_frontend->ops->tuner_ops.set_params = alps_bsru6_tuner_set_params; | 376 | budget->dvb_frontend->ops.tuner_ops.set_params = alps_bsru6_tuner_set_params; |
377 | budget->dvb_frontend->tuner_priv = &budget->i2c_adap; | 377 | budget->dvb_frontend->tuner_priv = &budget->i2c_adap; |
378 | budget->dvb_frontend->ops->diseqc_send_master_cmd = budget_diseqc_send_master_cmd; | 378 | budget->dvb_frontend->ops.diseqc_send_master_cmd = budget_diseqc_send_master_cmd; |
379 | budget->dvb_frontend->ops->diseqc_send_burst = budget_diseqc_send_burst; | 379 | budget->dvb_frontend->ops.diseqc_send_burst = budget_diseqc_send_burst; |
380 | budget->dvb_frontend->ops->set_tone = budget_set_tone; | 380 | budget->dvb_frontend->ops.set_tone = budget_set_tone; |
381 | break; | 381 | break; |
382 | } | 382 | } |
383 | break; | 383 | break; |
@@ -386,7 +386,7 @@ static void frontend_init(struct budget *budget) | |||
386 | 386 | ||
387 | budget->dvb_frontend = ves1820_attach(&alps_tdbe2_config, &budget->i2c_adap, read_pwm(budget)); | 387 | budget->dvb_frontend = ves1820_attach(&alps_tdbe2_config, &budget->i2c_adap, read_pwm(budget)); |
388 | if (budget->dvb_frontend) { | 388 | if (budget->dvb_frontend) { |
389 | budget->dvb_frontend->ops->tuner_ops.set_params = alps_tdbe2_tuner_set_params; | 389 | budget->dvb_frontend->ops.tuner_ops.set_params = alps_tdbe2_tuner_set_params; |
390 | break; | 390 | break; |
391 | } | 391 | } |
392 | break; | 392 | break; |
@@ -395,7 +395,7 @@ static void frontend_init(struct budget *budget) | |||
395 | 395 | ||
396 | budget->dvb_frontend = l64781_attach(&grundig_29504_401_config, &budget->i2c_adap); | 396 | budget->dvb_frontend = l64781_attach(&grundig_29504_401_config, &budget->i2c_adap); |
397 | if (budget->dvb_frontend) { | 397 | if (budget->dvb_frontend) { |
398 | budget->dvb_frontend->ops->tuner_ops.set_params = grundig_29504_401_tuner_set_params; | 398 | budget->dvb_frontend->ops.tuner_ops.set_params = grundig_29504_401_tuner_set_params; |
399 | break; | 399 | break; |
400 | } | 400 | } |
401 | break; | 401 | break; |
@@ -403,26 +403,26 @@ static void frontend_init(struct budget *budget) | |||
403 | case 0x4f60: // Fujitsu Siemens Activy Budget-S PCI rev AL (stv0299/ALPS BSRU6(tsa5059)) | 403 | case 0x4f60: // Fujitsu Siemens Activy Budget-S PCI rev AL (stv0299/ALPS BSRU6(tsa5059)) |
404 | budget->dvb_frontend = stv0299_attach(&alps_bsru6_config, &budget->i2c_adap); | 404 | budget->dvb_frontend = stv0299_attach(&alps_bsru6_config, &budget->i2c_adap); |
405 | if (budget->dvb_frontend) { | 405 | if (budget->dvb_frontend) { |
406 | budget->dvb_frontend->ops->tuner_ops.set_params = alps_bsru6_tuner_set_params; | 406 | budget->dvb_frontend->ops.tuner_ops.set_params = alps_bsru6_tuner_set_params; |
407 | budget->dvb_frontend->tuner_priv = &budget->i2c_adap; | 407 | budget->dvb_frontend->tuner_priv = &budget->i2c_adap; |
408 | budget->dvb_frontend->ops->set_voltage = siemens_budget_set_voltage; | 408 | budget->dvb_frontend->ops.set_voltage = siemens_budget_set_voltage; |
409 | budget->dvb_frontend->ops->dishnetwork_send_legacy_command = NULL; | 409 | budget->dvb_frontend->ops.dishnetwork_send_legacy_command = NULL; |
410 | } | 410 | } |
411 | break; | 411 | break; |
412 | 412 | ||
413 | case 0x4f61: // Fujitsu Siemens Activy Budget-S PCI rev GR (tda8083/Grundig 29504-451(tsa5522)) | 413 | case 0x4f61: // Fujitsu Siemens Activy Budget-S PCI rev GR (tda8083/Grundig 29504-451(tsa5522)) |
414 | budget->dvb_frontend = tda8083_attach(&grundig_29504_451_config, &budget->i2c_adap); | 414 | budget->dvb_frontend = tda8083_attach(&grundig_29504_451_config, &budget->i2c_adap); |
415 | if (budget->dvb_frontend) { | 415 | if (budget->dvb_frontend) { |
416 | budget->dvb_frontend->ops->tuner_ops.set_params = grundig_29504_451_tuner_set_params; | 416 | budget->dvb_frontend->ops.tuner_ops.set_params = grundig_29504_451_tuner_set_params; |
417 | budget->dvb_frontend->ops->set_voltage = siemens_budget_set_voltage; | 417 | budget->dvb_frontend->ops.set_voltage = siemens_budget_set_voltage; |
418 | budget->dvb_frontend->ops->dishnetwork_send_legacy_command = NULL; | 418 | budget->dvb_frontend->ops.dishnetwork_send_legacy_command = NULL; |
419 | } | 419 | } |
420 | break; | 420 | break; |
421 | 421 | ||
422 | case 0x1016: // Hauppauge/TT Nova-S SE (samsung s5h1420/????(tda8260)) | 422 | case 0x1016: // Hauppauge/TT Nova-S SE (samsung s5h1420/????(tda8260)) |
423 | budget->dvb_frontend = s5h1420_attach(&s5h1420_config, &budget->i2c_adap); | 423 | budget->dvb_frontend = s5h1420_attach(&s5h1420_config, &budget->i2c_adap); |
424 | if (budget->dvb_frontend) { | 424 | if (budget->dvb_frontend) { |
425 | budget->dvb_frontend->ops->tuner_ops.set_params = s5h1420_tuner_set_params; | 425 | budget->dvb_frontend->ops.tuner_ops.set_params = s5h1420_tuner_set_params; |
426 | if (lnbp21_attach(budget->dvb_frontend, &budget->i2c_adap, 0, 0)) { | 426 | if (lnbp21_attach(budget->dvb_frontend, &budget->i2c_adap, 0, 0)) { |
427 | printk("%s: No LNBP21 found!\n", __FUNCTION__); | 427 | printk("%s: No LNBP21 found!\n", __FUNCTION__); |
428 | goto error_out; | 428 | goto error_out; |
@@ -445,8 +445,8 @@ static void frontend_init(struct budget *budget) | |||
445 | 445 | ||
446 | error_out: | 446 | error_out: |
447 | printk("budget: Frontend registration failed!\n"); | 447 | printk("budget: Frontend registration failed!\n"); |
448 | if (budget->dvb_frontend->ops->release) | 448 | if (budget->dvb_frontend->ops.release) |
449 | budget->dvb_frontend->ops->release(budget->dvb_frontend); | 449 | budget->dvb_frontend->ops.release(budget->dvb_frontend); |
450 | budget->dvb_frontend = NULL; | 450 | budget->dvb_frontend = NULL; |
451 | return; | 451 | return; |
452 | } | 452 | } |