aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-23 05:05:31 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 05:38:12 -0500
commit2f786bbefc2f1cab6e9560476ea69003d19ee5cb (patch)
tree5d9ddbb45021e17e2166a04ba27abdd7ce98cb50
parent31cbc53fe56497f39e697a904f770cff096ae765 (diff)
[media] pluto2: use DVBv5 parameters on set_params()
Instead of using DVBv3 parameters, rely on DVBv5 parameters to set the tuner Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/pluto2/pluto2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/pluto2/pluto2.c b/drivers/media/dvb/pluto2/pluto2.c
index 80fb51004461..027da577c407 100644
--- a/drivers/media/dvb/pluto2/pluto2.c
+++ b/drivers/media/dvb/pluto2/pluto2.c
@@ -446,8 +446,9 @@ static inline u32 divide(u32 numerator, u32 denominator)
446 446
447/* LG Innotek TDTE-E001P (Infineon TUA6034) */ 447/* LG Innotek TDTE-E001P (Infineon TUA6034) */
448static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe, 448static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
449 struct dvb_frontend_parameters *p) 449 struct dvb_frontend_parameters *foo)
450{ 450{
451 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
451 struct pluto *pluto = frontend_to_pluto(fe); 452 struct pluto *pluto = frontend_to_pluto(fe);
452 struct i2c_msg msg; 453 struct i2c_msg msg;
453 int ret; 454 int ret;
@@ -478,7 +479,7 @@ static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
478 else 479 else
479 buf[3] = 0x04; 480 buf[3] = 0x04;
480 481
481 if (p->u.ofdm.bandwidth == BANDWIDTH_8_MHZ) 482 if (p->bandwidth_hz == 8000000)
482 buf[3] |= 0x08; 483 buf[3] |= 0x08;
483 484
484 if (sizeof(buf) == 6) { 485 if (sizeof(buf) == 6) {