Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285481
b: refs/heads/master
c: 7429053
h: refs/heads/master
i:
  285479: 1482258
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent f5e560d commit 769a580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93ce675c5cc57cac37e32953fdd43179e02f5c54
refs/heads/master: 742905312a5bfb67d3efe5f5fcb1a993b8f784b2
5 changes: 3 additions & 2 deletions trunk/drivers/media/dvb/mantis/mantis_vp1033.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 769a580

Please sign in to comment.