summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorHolger Nelson2011-12-28 22:55:41 +0100
committerMauro Carvalho Chehab2012-01-06 14:37:07 +0100
commit8ab3362665a699bd54fc489ff7fb6372678b94c1 (patch)
tree05baa99a41717f5abdd9f690488d22ffe63c0833 /drivers/media/video/em28xx/em28xx.h
parent[media] Added USB Id & configuration array for Honestech Vidbox NW03 (diff)
downloadkernel-qcow2-linux-8ab3362665a699bd54fc489ff7fb6372678b94c1.tar.gz
kernel-qcow2-linux-8ab3362665a699bd54fc489ff7fb6372678b94c1.tar.xz
kernel-qcow2-linux-8ab3362665a699bd54fc489ff7fb6372678b94c1.zip
[media] em28xx: Reworked probe code to get rid of some hacks
Reworked device probing to get rid of hacks to guess the maximum size of dvb iso transfer packets. The new code also selects the first alternate config which supports the largest possible iso transfers for dvb. [mchehab@redhat.com: Fix a few checkpatch.pl CodingStyle compliants] Signed-off-by: Holger Nelson <hnelson@hnelson.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r--drivers/media/video/em28xx/em28xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
index 2dbb12c73339..7c3ebe2fcce5 100644
--- a/drivers/media/video/em28xx/em28xx.h
+++ b/drivers/media/video/em28xx/em28xx.h
@@ -598,6 +598,8 @@ struct em28xx {
int max_pkt_size; /* max packet size of isoc transaction */
int num_alt; /* Number of alternative settings */
unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */
+ int dvb_alt; /* alternate for DVB */
+ unsigned int dvb_max_pkt_size; /* wMaxPacketSize for DVB */
struct urb *urb[EM28XX_NUM_BUFS]; /* urb for isoc transfers */
char *transfer_buffer[EM28XX_NUM_BUFS]; /* transfer buffers for isoc
transfer */