Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235981
b: refs/heads/master
c: 98ab1c9
h: refs/heads/master
i:
  235979: 87f53c6
v: v3
  • Loading branch information
Krzysztof Hałasa authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 9f281e3 commit c69c52a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 97a6688aa240e8b72aa5bf6c4a7c2b09bb117342
refs/heads/master: 98ab1c9978f706c0ee081335f75636db22723307
12 changes: 8 additions & 4 deletions trunk/drivers/staging/solo6x10/solo6010-v4l2-enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,13 +1034,17 @@ static int solo_enc_try_fmt_cap(struct file *file, void *priv,
if (pix->width != solo_enc->width ||
pix->height != solo_enc->height)
return -EBUSY;
} else if (!(pix->width == solo_dev->video_hsize &&
pix->height == solo_dev->video_vsize << 1) &&
!(pix->width == solo_dev->video_hsize >> 1 &&
pix->height == solo_dev->video_vsize)) {
}

if (pix->width < solo_dev->video_hsize ||
pix->height < solo_dev->video_vsize << 1) {
/* Default to CIF 1/2 size */
pix->width = solo_dev->video_hsize >> 1;
pix->height = solo_dev->video_vsize;
} else {
/* Full frame */
pix->width = solo_dev->video_hsize;
pix->height = solo_dev->video_vsize << 1;
}

if (pix->field == V4L2_FIELD_ANY)
Expand Down

0 comments on commit c69c52a

Please sign in to comment.