Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285468
b: refs/heads/master
c: 8579881
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 7d8d361 commit 8f81021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 27b7faf13af878807ebff04322cad74b053510b4
refs/heads/master: 8579881bb617cd81559f36523cf5bdcde26af6f7
9 changes: 5 additions & 4 deletions trunk/drivers/media/dvb/frontends/zl10039.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ static int zl10039_sleep(struct dvb_frontend *fe)
}

static int zl10039_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
struct dvb_frontend_parameters *params)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct zl10039_state *state = fe->tuner_priv;
u8 buf[6];
u8 bf;
Expand All @@ -188,12 +189,12 @@ static int zl10039_set_params(struct dvb_frontend *fe,

dprintk("%s\n", __func__);
dprintk("Set frequency = %d, symbol rate = %d\n",
params->frequency, params->u.qpsk.symbol_rate);
c->frequency, c->symbol_rate);

/* Assumed 10.111 MHz crystal oscillator */
/* Cancelled num/den 80 to prevent overflow */
div = (params->frequency * 1000) / 126387;
fbw = (params->u.qpsk.symbol_rate * 27) / 32000;
div = (c->frequency * 1000) / 126387;
fbw = (c->symbol_rate * 27) / 32000;
/* Cancelled num/den 10 to prevent overflow */
bf = ((fbw * 5088) / 1011100) - 1;

Expand Down

0 comments on commit 8f81021

Please sign in to comment.