Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17383
b: refs/heads/master
c: a6bab88
h: refs/heads/master
i:
  17381: 7768fea
  17379: 6808611
  17375: f4d5faf
v: v3
  • Loading branch information
Patrick Boettcher authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 643bf21 commit ec73878
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 4e5910e6fe5d977a36f7f39f6b13d61109eca19f
refs/heads/master: a6bab889c4d21cb8c0b0a25959daba87a56eccbb
8 changes: 5 additions & 3 deletions trunk/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ int dvb_usb_pll_init_i2c(struct dvb_frontend *fe)
struct i2c_msg msg = { .addr = d->pll_addr, .flags = 0, .buf = d->pll_init, .len = 4 };
int ret = 0;

/* if there is nothing to initialize */
if (d->pll_init[0] == 0x00 && d->pll_init[1] == 0x00 &&
d->pll_init[2] == 0x00 && d->pll_init[3] == 0x00)
/* if pll_desc is not used */
if (d->pll_desc == NULL)
return 0;

if (d->tuner_pass_ctrl)
Expand All @@ -80,6 +79,9 @@ int dvb_usb_pll_set(struct dvb_frontend *fe, struct dvb_frontend_parameters *fep
{
struct dvb_usb_device *d = fe->dvb->priv;

if (d->pll_desc == NULL)
return 0;

deb_pll("pll addr: %x, freq: %d %p\n",d->pll_addr,fep->frequency,d->pll_desc);

b[0] = d->pll_addr << 1;
Expand Down

0 comments on commit ec73878

Please sign in to comment.