diff options
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 1c61a6b65d28..6a75e6a4fc21 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -25,12 +25,13 @@ | |||
25 | #ifndef _EM28XX_H | 25 | #ifndef _EM28XX_H |
26 | #define _EM28XX_H | 26 | #define _EM28XX_H |
27 | 27 | ||
28 | #include <linux/workqueue.h> | ||
29 | #include <linux/i2c.h> | ||
30 | #include <linux/mutex.h> | ||
28 | #include <linux/videodev2.h> | 31 | #include <linux/videodev2.h> |
32 | |||
29 | #include <media/videobuf-vmalloc.h> | 33 | #include <media/videobuf-vmalloc.h> |
30 | #include <media/v4l2-device.h> | 34 | #include <media/v4l2-device.h> |
31 | |||
32 | #include <linux/i2c.h> | ||
33 | #include <linux/mutex.h> | ||
34 | #include <media/ir-kbd-i2c.h> | 35 | #include <media/ir-kbd-i2c.h> |
35 | #include <media/ir-core.h> | 36 | #include <media/ir-core.h> |
36 | #if defined(CONFIG_VIDEO_EM28XX_DVB) || defined(CONFIG_VIDEO_EM28XX_DVB_MODULE) | 37 | #if defined(CONFIG_VIDEO_EM28XX_DVB) || defined(CONFIG_VIDEO_EM28XX_DVB_MODULE) |
@@ -73,6 +74,7 @@ | |||
73 | #define EM2820_BOARD_VIDEOLOGY_20K14XUSB 30 | 74 | #define EM2820_BOARD_VIDEOLOGY_20K14XUSB 30 |
74 | #define EM2821_BOARD_USBGEAR_VD204 31 | 75 | #define EM2821_BOARD_USBGEAR_VD204 31 |
75 | #define EM2821_BOARD_SUPERCOMP_USB_2 32 | 76 | #define EM2821_BOARD_SUPERCOMP_USB_2 32 |
77 | #define EM2860_BOARD_ELGATO_VIDEO_CAPTURE 33 | ||
76 | #define EM2860_BOARD_TERRATEC_HYBRID_XS 34 | 78 | #define EM2860_BOARD_TERRATEC_HYBRID_XS 34 |
77 | #define EM2860_BOARD_TYPHOON_DVD_MAKER 35 | 79 | #define EM2860_BOARD_TYPHOON_DVD_MAKER 35 |
78 | #define EM2860_BOARD_NETGMBH_CAM 36 | 80 | #define EM2860_BOARD_NETGMBH_CAM 36 |
@@ -184,11 +186,6 @@ enum em28xx_mode { | |||
184 | EM28XX_DIGITAL_MODE, | 186 | EM28XX_DIGITAL_MODE, |
185 | }; | 187 | }; |
186 | 188 | ||
187 | enum em28xx_stream_state { | ||
188 | STREAM_OFF, | ||
189 | STREAM_INTERRUPT, | ||
190 | STREAM_ON, | ||
191 | }; | ||
192 | 189 | ||
193 | struct em28xx; | 190 | struct em28xx; |
194 | 191 | ||
@@ -463,7 +460,6 @@ struct em28xx_audio { | |||
463 | struct snd_card *sndcard; | 460 | struct snd_card *sndcard; |
464 | 461 | ||
465 | int users; | 462 | int users; |
466 | enum em28xx_stream_state capture_stream; | ||
467 | spinlock_t slock; | 463 | spinlock_t slock; |
468 | }; | 464 | }; |
469 | 465 | ||
@@ -505,6 +501,10 @@ struct em28xx { | |||
505 | unsigned int has_audio_class:1; | 501 | unsigned int has_audio_class:1; |
506 | unsigned int has_alsa_audio:1; | 502 | unsigned int has_alsa_audio:1; |
507 | 503 | ||
504 | /* Controls audio streaming */ | ||
505 | struct work_struct wq_trigger; /* Trigger to start/stop audio for alsa module */ | ||
506 | atomic_t stream_started; /* stream should be running if true */ | ||
507 | |||
508 | struct em28xx_fmt *format; | 508 | struct em28xx_fmt *format; |
509 | 509 | ||
510 | struct em28xx_IR *ir; | 510 | struct em28xx_IR *ir; |