Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9222
b: refs/heads/master
c: e1e70a2
h: refs/heads/master
v: v3
  • Loading branch information
Bernd Petrovitsch authored and Linus Torvalds committed Sep 23, 2005
1 parent eab1ae0 commit 1099b33
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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: f71626a461e7d4af099ca71830ea530e96c22e11
refs/heads/master: e1e70a262d5cb5a02d2fc171e0178197849482d4
14 changes: 7 additions & 7 deletions trunk/drivers/media/video/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,34 +763,34 @@ static void set_pll(struct bttv *btv)
/* no PLL needed */
if (btv->pll.pll_current == 0)
return;
vprintk(KERN_INFO "bttv%d: PLL can sleep, using XTAL (%d).\n",
btv->c.nr,btv->pll.pll_ifreq);
bttv_printk(KERN_INFO "bttv%d: PLL can sleep, using XTAL (%d).\n",
btv->c.nr,btv->pll.pll_ifreq);
btwrite(0x00,BT848_TGCTRL);
btwrite(0x00,BT848_PLL_XCI);
btv->pll.pll_current = 0;
return;
}

vprintk(KERN_INFO "bttv%d: PLL: %d => %d ",btv->c.nr,
btv->pll.pll_ifreq, btv->pll.pll_ofreq);
bttv_printk(KERN_INFO "bttv%d: PLL: %d => %d ",btv->c.nr,
btv->pll.pll_ifreq, btv->pll.pll_ofreq);
set_pll_freq(btv, btv->pll.pll_ifreq, btv->pll.pll_ofreq);

for (i=0; i<10; i++) {
/* Let other people run while the PLL stabilizes */
vprintk(".");
bttv_printk(".");
msleep(10);

if (btread(BT848_DSTATUS) & BT848_DSTATUS_PLOCK) {
btwrite(0,BT848_DSTATUS);
} else {
btwrite(0x08,BT848_TGCTRL);
btv->pll.pll_current = btv->pll.pll_ofreq;
vprintk(" ok\n");
bttv_printk(" ok\n");
return;
}
}
btv->pll.pll_current = -1;
vprintk("failed\n");
bttv_printk("failed\n");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/bttvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ extern void bttv_gpio_tracking(struct bttv *btv, char *comment);
extern int init_bttv_i2c(struct bttv *btv);
extern int fini_bttv_i2c(struct bttv *btv);

#define vprintk if (bttv_verbose) printk
#define bttv_printk if (bttv_verbose) printk
#define dprintk if (bttv_debug >= 1) printk
#define d2printk if (bttv_debug >= 2) printk

Expand Down

0 comments on commit 1099b33

Please sign in to comment.