diff options
author | Alex Woods <devnull@localhost> | 2003-07-19 13:54:36 +0000 |
---|---|---|
committer | Alex Woods <devnull@localhost> | 2003-07-19 13:54:36 +0000 |
commit | bece0ee41ada89cb339afdecf7501eec5883d189 (patch) | |
tree | abf5d2213d45e3980b2355f9a45e7ba9cbe4cd43 /linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h | |
parent | e3006e1f0c98f42f184647b569819771bb589ae8 (diff) | |
download | mediapointer-dvb-s2-bece0ee41ada89cb339afdecf7501eec5883d189.tar.gz mediapointer-dvb-s2-bece0ee41ada89cb339afdecf7501eec5883d189.tar.bz2 |
Hand off all processing of urb data to a tasklet
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h index 7268803d2..db1c13f5e 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h @@ -22,7 +22,10 @@ #ifndef _TTUSB_DEC_H #define _TTUSB_DEC_H -#include "asm/semaphore.h" +#include <asm/semaphore.h> +#include <linux/interrupt.h> +#include <linux/list.h> +#include <linux/spinlock.h> #include "dmxdev.h" #include "dvb_demux.h" #include "dvb_filter.h" @@ -77,11 +80,20 @@ struct ttusb_dec { struct dvb_filter_pes2ts a_pes2ts; struct dvb_filter_pes2ts v_pes2ts; - struct semaphore pes2ts_sem; u8 v_pes[16 + MAX_AV_PES_LENGTH]; int v_pes_length; int v_pes_postbytes; + + struct list_head urb_frame_list; + struct tasklet_struct urb_tasklet; + spinlock_t urb_frame_list_lock; +}; + +struct urb_frame { + u8 data[ISO_FRAME_SIZE]; + int length; + struct list_head urb_frame_list; }; #endif |