Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242088
b: refs/heads/master
c: 59929ce
h: refs/heads/master
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent c42ccf6 commit 7fa1725
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 58c92d37e7d34433cfbc3989bec20e48fba0799e
refs/heads/master: 59929cefa5f573178df3c4abfb36d55f7b33f214
13 changes: 7 additions & 6 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Main USB camera driver
*
* Copyright (C) 2008-2010 Jean-François Moine <http://moinejf.free.fr>
* Copyright (C) 2008-2011 Jean-François Moine <http://moinejf.free.fr>
*
* Camera button input handling by Márton Németh
* Copyright (C) 2009-2010 Márton Németh <nm127@freemail.hu>
Expand Down Expand Up @@ -414,7 +414,6 @@ static void bulk_irq(struct urb *urb)
* - 0 or many INTER_PACKETs
* - one LAST_PACKET
* DISCARD_PACKET invalidates the whole frame.
* On LAST_PACKET, a new frame is returned.
*/
void gspca_frame_add(struct gspca_dev *gspca_dev,
enum gspca_packet_type packet_type,
Expand Down Expand Up @@ -1525,10 +1524,12 @@ static int vidioc_reqbufs(struct file *file, void *priv,
gspca_dev->usb_err = 0;
gspca_stream_off(gspca_dev);
mutex_unlock(&gspca_dev->usb_lock);

/* Don't restart the stream when switching from read
* to mmap mode */
if (gspca_dev->memory == GSPCA_MEMORY_READ)
streaming = 0;
}
/* Don't restart the stream when switching from read to mmap mode */
if (gspca_dev->memory == GSPCA_MEMORY_READ)
streaming = 0;

/* free the previous allocated buffers, if any */
if (gspca_dev->nframes != 0)
Expand Down Expand Up @@ -2152,7 +2153,7 @@ static const struct v4l2_ioctl_ops dev_ioctl_ops = {
.vidioc_g_chip_ident = vidioc_g_chip_ident,
};

static struct video_device gspca_template = {
static const struct video_device gspca_template = {
.name = "gspca main driver",
.fops = &dev_fops,
.ioctl_ops = &dev_ioctl_ops,
Expand Down

0 comments on commit 7fa1725

Please sign in to comment.