Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285455
b: refs/heads/master
c: 35fea06
h: refs/heads/master
i:
  285453: 929ce8e
  285451: 66af38e
  285447: 540b30a
  285439: 3f73f14
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 8faeb3b commit 86620fc
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: 01ce5a7915932c199c8196347d0469ab2cc0573f
refs/heads/master: 35fea0649edcdbd75e3aeadd84d366f7e46a60ab
7 changes: 4 additions & 3 deletions trunk/drivers/media/common/tuners/mc44s803.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,19 @@ static int mc44s803_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
struct mc44s803_priv *priv = fe->tuner_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
u32 r1, r2, n1, n2, lo1, lo2, freq, val;
int err;

priv->frequency = params->frequency;
priv->frequency = c->frequency;

r1 = MC44S803_OSC / 1000000;
r2 = MC44S803_OSC / 100000;

n1 = (params->frequency + MC44S803_IF1 + 500000) / 1000000;
n1 = (c->frequency + MC44S803_IF1 + 500000) / 1000000;
freq = MC44S803_OSC / r1 * n1;
lo1 = ((60 * n1) + (r1 / 2)) / r1;
freq = freq - params->frequency;
freq = freq - c->frequency;

n2 = (freq - MC44S803_IF2 + 50000) / 100000;
lo2 = ((60 * n2) + (r2 / 2)) / r2;
Expand Down

0 comments on commit 86620fc

Please sign in to comment.