Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285473
b: refs/heads/master
c: b738ae1
h: refs/heads/master
i:
  285471: 86c58ee
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent dfea0d0 commit 4b38e8e
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: b09cf61dfe444810bbcf0b247a81146d4ef07218
refs/heads/master: b738ae160a9991d133671873f68c2ccffe524d12
5 changes: 3 additions & 2 deletions trunk/drivers/media/video/cx88/cx88-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ static const u8 samsung_smt_7020_inittab[] = {
static int samsung_smt_7020_tuner_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct cx8802_dev *dev = fe->dvb->priv;
u8 buf[4];
u32 div;
Expand All @@ -827,14 +828,14 @@ static int samsung_smt_7020_tuner_set_params(struct dvb_frontend *fe,
.buf = buf,
.len = sizeof(buf) };

div = params->frequency / 125;
div = c->frequency / 125;

buf[0] = (div >> 8) & 0x7f;
buf[1] = div & 0xff;
buf[2] = 0x84; /* 0xC4 */
buf[3] = 0x00;

if (params->frequency < 1500000)
if (c->frequency < 1500000)
buf[3] |= 0x10;

if (fe->ops.i2c_gate_ctrl)
Expand Down

0 comments on commit 4b38e8e

Please sign in to comment.