summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/mantis/mantis_vp1033.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-23 14:01:06 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 14:37:56 +0400
commit742905312a5bfb67d3efe5f5fcb1a993b8f784b2 (patch)
tree1f8b7eff73edb7e7410dfd8357acc474d0ede4e6 /drivers/media/dvb/mantis/mantis_vp1033.c
parent93ce675c5cc57cac37e32953fdd43179e02f5c54 (diff)
downloadlinux-742905312a5bfb67d3efe5f5fcb1a993b8f784b2.tar.xz
[media] mantis_vp1033: 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>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_vp1033.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_vp1033.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/mantis/mantis_vp1033.c b/drivers/media/dvb/mantis/mantis_vp1033.c
index 2ae0afa7756b..dfaca2ab4803 100644
--- a/drivers/media/dvb/mantis/mantis_vp1033.c
+++ b/drivers/media/dvb/mantis/mantis_vp1033.c
@@ -86,6 +86,7 @@ u8 lgtdqcs001f_inittab[] = {
int lgtdqcs001f_tuner_set(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
+ struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct mantis_pci *mantis = fe->dvb->priv;
struct i2c_adapter *adapter = &mantis->adapter;
@@ -95,14 +96,14 @@ int lgtdqcs001f_tuner_set(struct dvb_frontend *fe,
struct i2c_msg msg = {.addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf)};
- div = params->frequency / 250;
+ div = p->frequency / 250;
buf[0] = (div >> 8) & 0x7f;
buf[1] = div & 0xff;
buf[2] = 0x83;
buf[3] = 0xc0;
- if (params->frequency < 1531000)
+ if (p->frequency < 1531000)
buf[3] |= 0x04;
else
buf[3] &= ~0x04;