Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331082
b: refs/heads/master
c: c6b69c6
h: refs/heads/master
v: v3
  • Loading branch information
Ezequiel Garcia authored and Mauro Carvalho Chehab committed Sep 25, 2012
1 parent 611fcfa commit 53e66ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 065741840b1a58e94d2304b283286b355cbbc616
refs/heads/master: c6b69c6c58288587c33efb43ca6e19f1c80b2757
12 changes: 2 additions & 10 deletions trunk/drivers/media/usb/stk1160/stk1160-v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,19 +318,14 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
{
struct stk1160 *dev = video_drvdata(file);

if (f->fmt.pix.pixelformat != format[0].fourcc) {
stk1160_err("fourcc format 0x%08x invalid\n",
f->fmt.pix.pixelformat);
return -EINVAL;
}

/*
* User can't choose size at his own will,
* so we just return him the current size chosen
* at standard selection.
* TODO: Implement frame scaling?
*/

f->fmt.pix.pixelformat = dev->fmt->fourcc;
f->fmt.pix.width = dev->width;
f->fmt.pix.height = dev->height;
f->fmt.pix.field = V4L2_FIELD_INTERLACED;
Expand All @@ -346,14 +341,11 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
{
struct stk1160 *dev = video_drvdata(file);
struct vb2_queue *q = &dev->vb_vidq;
int rc;

if (vb2_is_busy(q))
return -EBUSY;

rc = vidioc_try_fmt_vid_cap(file, priv, f);
if (rc < 0)
return rc;
vidioc_try_fmt_vid_cap(file, priv, f);

/* We don't support any format changes */

Expand Down

0 comments on commit 53e66ab

Please sign in to comment.