Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242138
b: refs/heads/master
c: 1525071
h: refs/heads/master
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent b403e90 commit 8cb5527
Show file tree
Hide file tree
Showing 2 changed files with 14 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: ee32ffbf8e446e9b8c247ae9c9ba032979c3eafc
refs/heads/master: 152507144a59d74423a25e1ba80f4f7f17449417
16 changes: 13 additions & 3 deletions trunk/drivers/media/video/gspca/nw80x.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ static const u8 webcam_chip[NWEBCAMS] = {
* nw801/802: 320x240, 640x480
*/
static const struct v4l2_pix_format cif_mode[] = {
{320, 240, V4L2_PIX_FMT_JPGL, V4L2_FIELD_NONE,
.bytesperline = 320,
.sizeimage = 320 * 240 * 4 / 8,
.colorspace = V4L2_COLORSPACE_JPEG},
{352, 288, V4L2_PIX_FMT_JPGL, V4L2_FIELD_NONE,
.bytesperline = 352,
.sizeimage = 352 * 288 * 4 / 8,
Expand Down Expand Up @@ -1782,12 +1786,18 @@ static int sd_config(struct gspca_dev *gspca_dev,
PDEBUG(D_PROBE, "Bridge nw80%d - type: %d", sd->bridge, sd->webcam);

if (sd->bridge == BRIDGE_NW800) {
gspca_dev->cam.cam_mode = cif_mode;
gspca_dev->cam.nmodes = ARRAY_SIZE(cif_mode);
switch (sd->webcam) {
case DS3303u:
gspca_dev->cam.cam_mode = cif_mode; /* qvga */
break;
default:
gspca_dev->cam.cam_mode = &cif_mode[1]; /* cif */
break;
}
gspca_dev->cam.nmodes = 1;
} else {
gspca_dev->cam.cam_mode = vga_mode;
switch (sd->webcam) {
case Generic802:
case Kr651us:
case Proscope:
case P35u:
Expand Down

0 comments on commit 8cb5527

Please sign in to comment.