aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/mb86a20s.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 10:11:51 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 06:26:53 -0500
commit2d76e22b704559c111038a81bf52ecf4a127a90e (patch)
tree809748026f52184a21e3307ea63c6324de4a901b /drivers/media/dvb/frontends/mb86a20s.c
parent5226bb875b051fef4ea6b4bc718e5e028cb8602b (diff)
[media] mb86a20s: convert set_fontend to use DVBv5 parameters
Instead of using dvb_frontend_parameters struct, that were designed for a subset of the supported standards, use the DVBv5 cache information. Actually, this driver needs to fill/use the ISDB-T proprieties. Also, fill the supported delivery systems at dvb_frontend_ops struct. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/mb86a20s.c')
-rw-r--r--drivers/media/dvb/frontends/mb86a20s.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/mb86a20s.c b/drivers/media/dvb/frontends/mb86a20s.c
index 2dfea6c948e8..a67d7ef7712b 100644
--- a/drivers/media/dvb/frontends/mb86a20s.c
+++ b/drivers/media/dvb/frontends/mb86a20s.c
@@ -485,11 +485,16 @@ static int mb86a20s_read_status(struct dvb_frontend *fe, fe_status_t *status)
485 return 0; 485 return 0;
486} 486}
487 487
488static int mb86a20s_set_frontend(struct dvb_frontend *fe, 488static int mb86a20s_set_frontend(struct dvb_frontend *fe)
489 struct dvb_frontend_parameters *p)
490{ 489{
491 struct mb86a20s_state *state = fe->demodulator_priv; 490 struct mb86a20s_state *state = fe->demodulator_priv;
492 int rc; 491 int rc;
492#if 0
493 /*
494 * FIXME: Properly implement the set frontend properties
495 */
496 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
497#endif
493 498
494 dprintk("\n"); 499 dprintk("\n");
495 500
@@ -521,15 +526,15 @@ static int mb86a20s_set_frontend(struct dvb_frontend *fe,
521} 526}
522 527
523static int mb86a20s_get_frontend(struct dvb_frontend *fe, 528static int mb86a20s_get_frontend(struct dvb_frontend *fe,
524 struct dvb_frontend_parameters *p) 529 struct dtv_frontend_properties *p)
525{ 530{
526 531
527 /* FIXME: For now, it does nothing */ 532 /* FIXME: For now, it does nothing */
528 533
529 fe->dtv_property_cache.bandwidth_hz = 6000000; 534 p->bandwidth_hz = 6000000;
530 fe->dtv_property_cache.transmission_mode = TRANSMISSION_MODE_AUTO; 535 p->transmission_mode = TRANSMISSION_MODE_AUTO;
531 fe->dtv_property_cache.guard_interval = GUARD_INTERVAL_AUTO; 536 p->guard_interval = GUARD_INTERVAL_AUTO;
532 fe->dtv_property_cache.isdbt_partial_reception = 0; 537 p->isdbt_partial_reception = 0;
533 538
534 return 0; 539 return 0;
535} 540}
@@ -545,7 +550,7 @@ static int mb86a20s_tune(struct dvb_frontend *fe,
545 dprintk("\n"); 550 dprintk("\n");
546 551
547 if (params != NULL) 552 if (params != NULL)
548 rc = mb86a20s_set_frontend(fe, params); 553 rc = mb86a20s_set_frontend(fe);
549 554
550 if (!(mode_flags & FE_TUNE_MODE_ONESHOT)) 555 if (!(mode_flags & FE_TUNE_MODE_ONESHOT))
551 mb86a20s_read_status(fe, status); 556 mb86a20s_read_status(fe, status);
@@ -608,6 +613,7 @@ error:
608EXPORT_SYMBOL(mb86a20s_attach); 613EXPORT_SYMBOL(mb86a20s_attach);
609 614
610static struct dvb_frontend_ops mb86a20s_ops = { 615static struct dvb_frontend_ops mb86a20s_ops = {
616 .delsys = { SYS_ISDBT },
611 /* Use dib8000 values per default */ 617 /* Use dib8000 values per default */
612 .info = { 618 .info = {
613 .name = "Fujitsu mb86A20s", 619 .name = "Fujitsu mb86A20s",
@@ -627,8 +633,8 @@ static struct dvb_frontend_ops mb86a20s_ops = {
627 .release = mb86a20s_release, 633 .release = mb86a20s_release,
628 634
629 .init = mb86a20s_initfe, 635 .init = mb86a20s_initfe,
630 .set_frontend_legacy = mb86a20s_set_frontend, 636 .set_frontend = mb86a20s_set_frontend,
631 .get_frontend_legacy = mb86a20s_get_frontend, 637 .get_frontend = mb86a20s_get_frontend,
632 .read_status = mb86a20s_read_status, 638 .read_status = mb86a20s_read_status,
633 .read_signal_strength = mb86a20s_read_signal_strength, 639 .read_signal_strength = mb86a20s_read_signal_strength,
634 .tune = mb86a20s_tune, 640 .tune = mb86a20s_tune,