Skip to content

Commit

Permalink
V4L/DVB (9085): gspca: URB_NO_TRANSFER_DMA_MAP is required for isoc a…
Browse files Browse the repository at this point in the history
…nd bulk transfers.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Frank Zago authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 219423c commit 6c49da7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ static int create_urbs(struct gspca_dev *gspca_dev,
if (npkt != 0) { /* ISOC */
urb->pipe = usb_rcvisocpipe(gspca_dev->dev,
ep->desc.bEndpointAddress);
urb->transfer_flags = URB_ISO_ASAP;
urb->transfer_flags = URB_ISO_ASAP
| URB_NO_TRANSFER_DMA_MAP;
urb->interval = ep->desc.bInterval;
urb->complete = isoc_irq;
urb->number_of_packets = npkt;
Expand All @@ -551,6 +552,7 @@ static int create_urbs(struct gspca_dev *gspca_dev,
} else { /* bulk */
urb->pipe = usb_rcvbulkpipe(gspca_dev->dev,
ep->desc.bEndpointAddress),
urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP;
urb->complete = bulk_irq;
}
}
Expand Down

0 comments on commit 6c49da7

Please sign in to comment.