Skip to content

Commit

Permalink
[media] pluto2: use DVBv5 parameters on set_params()
Browse files Browse the repository at this point in the history
Instead of using DVBv3 parameters, rely on DVBv5 parameters to
set the tuner

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 31cbc53 commit 2f786bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/media/dvb/pluto2/pluto2.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ static inline u32 divide(u32 numerator, u32 denominator)

/* LG Innotek TDTE-E001P (Infineon TUA6034) */
static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
struct dvb_frontend_parameters *foo)
{
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct pluto *pluto = frontend_to_pluto(fe);
struct i2c_msg msg;
int ret;
Expand Down Expand Up @@ -478,7 +479,7 @@ static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
else
buf[3] = 0x04;

if (p->u.ofdm.bandwidth == BANDWIDTH_8_MHZ)
if (p->bandwidth_hz == 8000000)
buf[3] |= 0x08;

if (sizeof(buf) == 6) {
Expand Down

0 comments on commit 2f786bb

Please sign in to comment.