Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97729
b: refs/heads/master
c: 7f3917f
h: refs/heads/master
i:
  97727: 55ff33c
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent 80a5708 commit 4bdf3ad
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: 3b4a9714f43a1d675a4352260a12daae197f37c3
refs/heads/master: 7f3917f6484938d56cb5ab660f476c1dfa445a81
8 changes: 5 additions & 3 deletions trunk/drivers/media/video/cx18/cx18-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ void cx18_gpio_init(struct cx18 *cx)
gpio_dir = cx->card->gpio_init.direction;
gpio_val = cx->card->gpio_init.initial_value;

if (cx->card->xceive_pin) {
gpio_dir |= 1 << cx->card->xceive_pin;
gpio_val |= 1 << cx->card->xceive_pin;
}

if (gpio_dir == 0)
return;

gpio_dir |= 1 << cx->card->xceive_pin;
gpio_val |= 1 << cx->card->xceive_pin;

CX18_DEBUG_INFO("GPIO initial dir: %08x/%08x out: %08x/%08x\n",
read_reg(CX18_REG_GPIO_DIR1), read_reg(CX18_REG_GPIO_DIR2),
read_reg(CX18_REG_GPIO_OUT1), read_reg(CX18_REG_GPIO_OUT2));
Expand Down

0 comments on commit 4bdf3ad

Please sign in to comment.