aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 12:35:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 12:35:11 -0400
commit0851668fdd97e526b2a41f794b785c204dd3d3e0 (patch)
tree4ef7c20a8be8393006c6fe9627eb29dd30877d61 /drivers/media/video/em28xx/em28xx.h
parent00ebb6382b8d9c7c15b5f8ad230670d8161d38dd (diff)
parent7655e594945289b418af39f6669fea4666a7b520 (diff)
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (505 commits) [media] af9015: Fix max I2C message size when used with tda18271 [media] IR: initialize ir_raw_event in few more drivers [media] Guard a divide in v4l1 compat layer [media] imon: fix nomouse modprobe option [media] imon: remove redundant change_protocol call [media] imon: fix my egregious brown paper bag w/rdev/idev split [media] cafe_ccic: Configure ov7670 correctly [media] ov7670: allow configuration of image size, clock speed, and I/O method [media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016] [media] af9015: map DigitalNow TinyTwin v2 remote [media] DigitalNow TinyTwin remote controller [media] af9015: RC fixes and improvements videodev2.h.xml: Update to reflect the latest changes at videodev2.h [media] v4l: document new Bayer and monochrome pixel formats [media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028 [media] firedtv: add parameter to fake ca_system_ids in CA_INFO [media] tm6000: fix a macro coding style issue tm6000: Remove some ugly debug code [media] Nova-S-Plus audio line input [media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers ...
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r--drivers/media/video/em28xx/em28xx.h18
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
187enum em28xx_stream_state {
188 STREAM_OFF,
189 STREAM_INTERRUPT,
190 STREAM_ON,
191};
192 189
193struct em28xx; 190struct 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;