diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 00:14:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 00:14:42 -0400 |
commit | f894d18380e7e7ff05f6622ccb75d2881922c6e9 (patch) | |
tree | e3c11b831b68096239a49dec539a49e49c1d90b7 /drivers/media/video/em28xx/em28xx.h | |
parent | d13ff0559fea73f237a01669887d2c10e11d7662 (diff) | |
parent | d20b27478d6ccf7c4c8de4f09db2bdbaec82a6c0 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (277 commits)
V4L/DVB (8415): gspca: Infinite loop in i2c_w() of etoms.
V4L/DVB (8414): videodev/cx18: fix get_index bug and error-handling lock-ups
V4L/DVB (8411): videobuf-dma-contig.c: fix 64-bit build for pre-2.6.24 kernels
V4L/DVB (8410): sh_mobile_ceu_camera: fix 64-bit compiler warnings
V4L/DVB (8397): video: convert select VIDEO_ZORAN_ZR36060 into depends on
V4L/DVB (8396): video: Fix Kbuild dependency for VIDEO_IR_I2C
V4L/DVB (8395): saa7134: Fix Kbuild dependency of ir-kbd-i2c
V4L/DVB (8394): ir-common: CodingStyle fix: move EXPORT_SYMBOL_GPL to their proper places
V4L/DVB (8393): media/video: Fix depencencies for VIDEOBUF
V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on"
V4L/DVB (8390): videodev: add comment and remove magic number.
V4L/DVB (8389): videodev: simplify get_index()
V4L/DVB (8387): Some cosmetic changes
V4L/DVB (8381): ov7670: fix compile warnings
V4L/DVB (8380): saa7115: use saa7115_auto instead of saa711x as the autodetect driver name.
V4L/DVB (8379): saa7127: Make device detection optional
V4L/DVB (8378): cx18: move cx18_av_vbi_setup to av-core.c and rename to cx18_av_std_setup
V4L/DVB (8377): ivtv/cx18: ensure the default control values are correct
V4L/DVB (8376): cx25840: move cx25840_vbi_setup to core.c and rename to cx25840_std_setup
V4L/DVB (8374): gspca: No conflict of 0c45:6011 with the sn9c102 driver.
...
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 002f170b211a..89842c5d64a1 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -55,6 +55,9 @@ | |||
55 | #define EM2820_BOARD_PROLINK_PLAYTV_USB2 14 | 55 | #define EM2820_BOARD_PROLINK_PLAYTV_USB2 14 |
56 | #define EM2800_BOARD_VGEAR_POCKETTV 15 | 56 | #define EM2800_BOARD_VGEAR_POCKETTV 15 |
57 | #define EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950 16 | 57 | #define EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950 16 |
58 | #define EM2880_BOARD_PINNACLE_PCTV_HD_PRO 17 | ||
59 | #define EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2 18 | ||
60 | #define EM2860_BOARD_POINTNIX_INTRAORAL_CAMERA 19 | ||
58 | 61 | ||
59 | /* Limits minimum and default number of buffers */ | 62 | /* Limits minimum and default number of buffers */ |
60 | #define EM28XX_MIN_BUF 4 | 63 | #define EM28XX_MIN_BUF 4 |
@@ -247,6 +250,7 @@ struct em28xx_board { | |||
247 | unsigned int has_12mhz_i2s:1; | 250 | unsigned int has_12mhz_i2s:1; |
248 | unsigned int max_range_640_480:1; | 251 | unsigned int max_range_640_480:1; |
249 | unsigned int has_dvb:1; | 252 | unsigned int has_dvb:1; |
253 | unsigned int has_snapshot_button:1; | ||
250 | 254 | ||
251 | enum em28xx_decoder decoder; | 255 | enum em28xx_decoder decoder; |
252 | 256 | ||
@@ -326,6 +330,7 @@ struct em28xx { | |||
326 | unsigned int has_12mhz_i2s:1; | 330 | unsigned int has_12mhz_i2s:1; |
327 | unsigned int max_range_640_480:1; | 331 | unsigned int max_range_640_480:1; |
328 | unsigned int has_dvb:1; | 332 | unsigned int has_dvb:1; |
333 | unsigned int has_snapshot_button:1; | ||
329 | 334 | ||
330 | /* Some older em28xx chips needs a waiting time after writing */ | 335 | /* Some older em28xx chips needs a waiting time after writing */ |
331 | unsigned int wait_after_write; | 336 | unsigned int wait_after_write; |
@@ -416,6 +421,11 @@ struct em28xx { | |||
416 | /* Caches GPO and GPIO registers */ | 421 | /* Caches GPO and GPIO registers */ |
417 | unsigned char reg_gpo, reg_gpio; | 422 | unsigned char reg_gpo, reg_gpio; |
418 | 423 | ||
424 | /* Snapshot button */ | ||
425 | char snapshot_button_path[30]; /* path of the input dev */ | ||
426 | struct input_dev *sbutton_input_dev; | ||
427 | struct delayed_work sbutton_query_work; | ||
428 | |||
419 | struct em28xx_dvb *dvb; | 429 | struct em28xx_dvb *dvb; |
420 | }; | 430 | }; |
421 | 431 | ||
@@ -481,6 +491,8 @@ int em28xx_get_key_terratec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw); | |||
481 | int em28xx_get_key_em_haup(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw); | 491 | int em28xx_get_key_em_haup(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw); |
482 | int em28xx_get_key_pinnacle_usb_grey(struct IR_i2c *ir, u32 *ir_key, | 492 | int em28xx_get_key_pinnacle_usb_grey(struct IR_i2c *ir, u32 *ir_key, |
483 | u32 *ir_raw); | 493 | u32 *ir_raw); |
494 | void em28xx_register_snapshot_button(struct em28xx *dev); | ||
495 | void em28xx_deregister_snapshot_button(struct em28xx *dev); | ||
484 | 496 | ||
485 | /* printk macros */ | 497 | /* printk macros */ |
486 | 498 | ||