Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85764
b: refs/heads/master
c: 6165894
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Feb 18, 2008
1 parent a3a63da commit e4b704d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 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: ea35e3a754b2ba5f712c3f4df55e426ae2e4d60a
refs/heads/master: 6165894fb6293072848e5699f3fcbe88b7c60815
22 changes: 11 additions & 11 deletions trunk/drivers/media/video/zoran.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ enum zoran_map_mode {
};

enum gpio_type {
GPIO_JPEG_SLEEP = 0,
GPIO_JPEG_RESET,
GPIO_JPEG_FRAME,
GPIO_VID_DIR,
GPIO_VID_EN,
GPIO_VID_RESET,
GPIO_CLK_SEL1,
GPIO_CLK_SEL2,
GPIO_MAX,
ZR_GPIO_JPEG_SLEEP = 0,
ZR_GPIO_JPEG_RESET,
ZR_GPIO_JPEG_FRAME,
ZR_GPIO_VID_DIR,
ZR_GPIO_VID_EN,
ZR_GPIO_VID_RESET,
ZR_GPIO_CLK_SEL1,
ZR_GPIO_CLK_SEL2,
ZR_GPIO_MAX,
};

enum gpcs_type {
Expand Down Expand Up @@ -378,11 +378,11 @@ struct card_info {

u32 jpeg_int; /* JPEG interrupt */
u32 vsync_int; /* VSYNC interrupt */
s8 gpio[GPIO_MAX];
s8 gpio[ZR_GPIO_MAX];
u8 gpcs[GPCS_MAX];

struct vfe_polarity vfe_pol;
u8 gpio_pol[GPIO_MAX];
u8 gpio_pol[ZR_GPIO_MAX];

/* is the /GWS line conected? */
u8 gws_not_connected;
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/media/video/zoran_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void
jpeg_codec_sleep (struct zoran *zr,
int sleep)
{
GPIO(zr, zr->card.gpio[GPIO_JPEG_SLEEP], !sleep);
GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_SLEEP], !sleep);
if (!sleep) {
dprintk(3,
KERN_DEBUG
Expand All @@ -277,9 +277,9 @@ jpeg_codec_reset (struct zoran *zr)
0);
udelay(2);
} else {
GPIO(zr, zr->card.gpio[GPIO_JPEG_RESET], 0);
GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_RESET], 0);
udelay(2);
GPIO(zr, zr->card.gpio[GPIO_JPEG_RESET], 1);
GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_RESET], 1);
udelay(2);
}

Expand Down Expand Up @@ -688,7 +688,7 @@ static inline void
set_frame (struct zoran *zr,
int val)
{
GPIO(zr, zr->card.gpio[GPIO_JPEG_FRAME], val);
GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_FRAME], val);
}

static void
Expand All @@ -704,8 +704,8 @@ set_videobus_dir (struct zoran *zr,
GPIO(zr, 5, 1);
break;
default:
GPIO(zr, zr->card.gpio[GPIO_VID_DIR],
zr->card.gpio_pol[GPIO_VID_DIR] ? !val : val);
GPIO(zr, zr->card.gpio[ZR_GPIO_VID_DIR],
zr->card.gpio_pol[ZR_GPIO_VID_DIR] ? !val : val);
break;
}
}
Expand Down

0 comments on commit e4b704d

Please sign in to comment.