summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/au0828/au0828.h
diff options
context:
space:
mode:
authorTim Mester <ttmesterr@gmail.com>2014-01-07 05:29:25 +0100
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 14:11:11 +0100
commitf251b3e78cc57411627d825eae3c911da77b4035 (patch)
treef133f7540fa82534dad782272c2fd2e6afb54d64 /drivers/media/usb/au0828/au0828.h
parent[media] au8028: Fix cleanup on kzalloc fail (diff)
downloadlinux-f251b3e78cc57411627d825eae3c911da77b4035.tar.xz
linux-f251b3e78cc57411627d825eae3c911da77b4035.zip
[media] au0828: Add option to preallocate digital transfer buffers
Added command line parameter preallocate_big_buffers so that the digital transfer buffers can be allocated when the driver is registered. They do not have to be allocated every time a feed is started. Signed-off-by: Tim Mester <tmester@ieee.org> Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to '')
-rw-r--r--drivers/media/usb/au0828/au0828.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828.h b/drivers/media/usb/au0828/au0828.h
index a00b400f8703..5439772c1551 100644
--- a/drivers/media/usb/au0828/au0828.h
+++ b/drivers/media/usb/au0828/au0828.h
@@ -262,6 +262,10 @@ struct au0828_dev {
/* USB / URB Related */
int urb_streaming;
struct urb *urbs[URB_COUNT];
+
+ /* Preallocated transfer digital transfer buffers */
+
+ char *dig_transfer_buffer[URB_COUNT];
};
/* ----------------------------------------------------------- */