Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103895
b: refs/heads/master
c: e078770
h: refs/heads/master
i:
  103893: 6403fb9
  103891: d54eaeb
  103887: ea76800
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 20, 2008
1 parent 20f2804 commit 914dec9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 50a871fed9c82f01baa40100cd2d262784220953
refs/heads/master: e078770a050aa686f895a965f54222c0f201feb3
24 changes: 12 additions & 12 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ static int gspca_get_mode(struct gspca_dev *gspca_dev,
return -EINVAL;
}

static int vidioc_enum_fmt_cap(struct file *file, void *priv,
static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_fmtdesc *fmtdesc)
{
struct gspca_dev *gspca_dev = priv;
Expand Down Expand Up @@ -782,7 +782,7 @@ static int vidioc_enum_fmt_cap(struct file *file, void *priv,
return 0;
}

static int vidioc_g_fmt_cap(struct file *file, void *priv,
static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_format *fmt)
{
struct gspca_dev *gspca_dev = priv;
Expand Down Expand Up @@ -811,7 +811,7 @@ static int vidioc_g_fmt_cap(struct file *file, void *priv,
return 0;
}

static int try_fmt_cap(struct gspca_dev *gspca_dev,
static int try_fmt_vid_cap(struct gspca_dev *gspca_dev,
struct v4l2_format *fmt)
{
int w, h, mode, mode2, frsz;
Expand Down Expand Up @@ -865,20 +865,20 @@ static int try_fmt_cap(struct gspca_dev *gspca_dev,
return mode; /* used when s_fmt */
}

static int vidioc_try_fmt_cap(struct file *file,
static int vidioc_try_fmt_vid_cap(struct file *file,
void *priv,
struct v4l2_format *fmt)
{
struct gspca_dev *gspca_dev = priv;
int ret;

ret = try_fmt_cap(gspca_dev, fmt);
ret = try_fmt_vid_cap(gspca_dev, fmt);
if (ret < 0)
return ret;
return 0;
}

static int vidioc_s_fmt_cap(struct file *file, void *priv,
static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_format *fmt)
{
struct gspca_dev *gspca_dev = priv;
Expand All @@ -904,7 +904,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv,
if (mutex_lock_interruptible(&gspca_dev->queue_lock))
return -ERESTARTSYS;

ret = try_fmt_cap(gspca_dev, fmt);
ret = try_fmt_vid_cap(gspca_dev, fmt);
if (ret < 0)
goto out;

Expand Down Expand Up @@ -1369,7 +1369,7 @@ static int vidiocgmbuf(struct file *file, void *priv,
fmt.fmt.pix.width = gspca_dev->cam.cam_mode[i].width;
fmt.fmt.pix.height = gspca_dev->cam.cam_mode[i].height;
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_BGR24;
ret = vidioc_s_fmt_cap(file, priv, &fmt);
ret = vidioc_s_fmt_vid_cap(file, priv, &fmt);
if (ret != 0)
return ret;
}
Expand Down Expand Up @@ -1845,10 +1845,10 @@ static struct video_device gspca_template = {
.vidioc_querycap = vidioc_querycap,
.vidioc_dqbuf = vidioc_dqbuf,
.vidioc_qbuf = vidioc_qbuf,
.vidioc_enum_fmt_cap = vidioc_enum_fmt_cap,
.vidioc_try_fmt_cap = vidioc_try_fmt_cap,
.vidioc_g_fmt_cap = vidioc_g_fmt_cap,
.vidioc_s_fmt_cap = vidioc_s_fmt_cap,
.vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap,
.vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap,
.vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap,
.vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap,
.vidioc_streamon = vidioc_streamon,
.vidioc_queryctrl = vidioc_queryctrl,
.vidioc_g_ctrl = vidioc_g_ctrl,
Expand Down

0 comments on commit 914dec9

Please sign in to comment.