Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285483
b: refs/heads/master
c: 31cbc53
h: refs/heads/master
i:
  285481: 769a580
  285479: 1482258
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 122a889 commit 3983143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: f0b6c2a90f5c075ea9f5b069418bb995acb1b363
refs/heads/master: 31cbc53fe56497f39e697a904f770cff096ae765
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/mantis/mantis_vp2040.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ struct tda10023_config vp2040_tda10023_cu1216_config = {

static int tda1002x_cu1216_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 @@ -59,13 +60,13 @@ static int tda1002x_cu1216_tuner_set(struct dvb_frontend *fe, struct dvb_fronten
#define CU1216_IF 36125000
#define TUNER_MUL 62500

u32 div = (params->frequency + CU1216_IF + TUNER_MUL / 2) / TUNER_MUL;
u32 div = (p->frequency + CU1216_IF + TUNER_MUL / 2) / TUNER_MUL;

buf[0] = (div >> 8) & 0x7f;
buf[1] = div & 0xff;
buf[2] = 0xce;
buf[3] = (params->frequency < 150000000 ? 0x01 :
params->frequency < 445000000 ? 0x02 : 0x04);
buf[3] = (p->frequency < 150000000 ? 0x01 :
p->frequency < 445000000 ? 0x02 : 0x04);
buf[4] = 0xde;
buf[5] = 0x20;

Expand Down

0 comments on commit 3983143

Please sign in to comment.