diff options
author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:59:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:59:18 -0500 |
commit | bb7320d1d96dc2e479180ae8e7a112caf0726ace (patch) | |
tree | 65a81fefd82d188f5496b70439db73ca911b3f76 /include | |
parent | 6aa8b732ca01c3d7a54e93f4d701b8aabbe60fb7 (diff) | |
parent | 1de1bf06330920802d3b7646a088965bdd918356 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (132 commits)
V4L/DVB 4949b: Fix container_of pointer retreival
V4L/DVB (4949a): Fix INIT_WORK
V4L/DVB (4949): Cxusb: codingstyle cleanups
V4L/DVB (4948): Cxusb: Convert tuner functions to use dvb_pll_attach
V4L/DVB (4947): Cx88: trivial cleanups
V4L/DVB (4946): Cx88: Move cx88_dvb_bus_ctrl out of the card-specific area
V4L/DVB (4945): Cx88: consolidate cx22702_config structs
V4L/DVB (4944): Cx88: Convert DViCO FusionHDTV Hybrid to use dvb_pll_attach
V4L/DVB (4943): Cx88: cleanup dvb_pll_attach for lgdt3302 tuners
V4L/DVB (4953): Usbvision minor fixes
V4L/DVB (4951): Add version.h, since it is required for VIDIOC_QUERYCAP
V4L/DVB (4940): Or51211: Changed SNR and signal strength calculations
V4L/DVB (4939): Or51132: Changed SNR and signal strength reporting
V4L/DVB (4938): Cx88: Convert lgdt3302 tuning function to use dvb_pll_attach
V4L/DVB (4941): Remove LINUX_VERSION_CODE and fix identations
V4L/DVB (4942): Whitespace cleanups
V4L/DVB (4937): Usbvision cleanup and code reorganization
V4L/DVB (4936): Make MT4049FM5 tuner to set FM Gain to Normal
V4L/DVB (4935): Added the capability of selecting fm gain by tuner
V4L/DVB (4934): Usbvision radio requires GainNormal at e register
...
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c-id.h | 2 | ||||
-rw-r--r-- | include/linux/videodev2.h | 1 | ||||
-rw-r--r-- | include/media/ir-common.h | 1 | ||||
-rw-r--r-- | include/media/saa7146.h | 20 | ||||
-rw-r--r-- | include/media/tuner-types.h | 4 | ||||
-rw-r--r-- | include/media/tuner.h | 1 | ||||
-rw-r--r-- | include/media/tveeprom.h | 2 | ||||
-rw-r--r-- | include/media/v4l2-common.h | 7 | ||||
-rw-r--r-- | include/media/v4l2-dev.h | 14 |
9 files changed, 37 insertions, 15 deletions
diff --git a/include/linux/i2c-id.h b/include/linux/i2c-id.h index 0a8f750cbede..0f4cf34b6fa2 100644 --- a/include/linux/i2c-id.h +++ b/include/linux/i2c-id.h | |||
@@ -159,6 +159,7 @@ | |||
159 | #define I2C_DRIVERID_ASB100 1043 | 159 | #define I2C_DRIVERID_ASB100 1043 |
160 | #define I2C_DRIVERID_FSCHER 1046 | 160 | #define I2C_DRIVERID_FSCHER 1046 |
161 | #define I2C_DRIVERID_W83L785TS 1047 | 161 | #define I2C_DRIVERID_W83L785TS 1047 |
162 | #define I2C_DRIVERID_OV7670 1048 /* Omnivision 7670 camera */ | ||
162 | 163 | ||
163 | /* | 164 | /* |
164 | * ---- Adapter types ---------------------------------------------------- | 165 | * ---- Adapter types ---------------------------------------------------- |
@@ -250,6 +251,7 @@ | |||
250 | #define I2C_HW_SMBUS_OV518 0x04000f /* OV518(+) USB 1.1 webcam ICs */ | 251 | #define I2C_HW_SMBUS_OV518 0x04000f /* OV518(+) USB 1.1 webcam ICs */ |
251 | #define I2C_HW_SMBUS_OV519 0x040010 /* OV519 USB 1.1 webcam IC */ | 252 | #define I2C_HW_SMBUS_OV519 0x040010 /* OV519 USB 1.1 webcam IC */ |
252 | #define I2C_HW_SMBUS_OVFX2 0x040011 /* Cypress/OmniVision FX2 webcam */ | 253 | #define I2C_HW_SMBUS_OVFX2 0x040011 /* Cypress/OmniVision FX2 webcam */ |
254 | #define I2C_HW_SMBUS_CAFE 0x040012 /* Marvell 88ALP01 "CAFE" cam */ | ||
253 | 255 | ||
254 | /* --- ISA pseudo-adapter */ | 256 | /* --- ISA pseudo-adapter */ |
255 | #define I2C_HW_ISA 0x050000 | 257 | #define I2C_HW_ISA 0x050000 |
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index df5c4654360d..5cb380a559fd 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -244,6 +244,7 @@ struct v4l2_pix_format | |||
244 | #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y','Y','U','V') /* 16 YUV 4:2:2 */ | 244 | #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y','Y','U','V') /* 16 YUV 4:2:2 */ |
245 | #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H','I','2','4') /* 8 8-bit color */ | 245 | #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H','I','2','4') /* 8 8-bit color */ |
246 | #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H','M','1','2') /* 8 YUV 4:2:0 16x16 macroblocks */ | 246 | #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H','M','1','2') /* 8 YUV 4:2:0 16x16 macroblocks */ |
247 | #define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R','4','4','4') /* 16 xxxxrrrr ggggbbbb */ | ||
247 | 248 | ||
248 | /* see http://www.siliconimaging.com/RGB%20Bayer.htm */ | 249 | /* see http://www.siliconimaging.com/RGB%20Bayer.htm */ |
249 | #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B','A','8','1') /* 8 BGBG.. GRGR.. */ | 250 | #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B','A','8','1') /* 8 BGBG.. GRGR.. */ |
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 8f58406533c6..2b25f5c95006 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -92,6 +92,7 @@ extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; | |||
92 | extern IR_KEYTAB_TYPE ir_codes_npgtech[IR_KEYTAB_SIZE]; | 92 | extern IR_KEYTAB_TYPE ir_codes_npgtech[IR_KEYTAB_SIZE]; |
93 | extern IR_KEYTAB_TYPE ir_codes_norwood[IR_KEYTAB_SIZE]; | 93 | extern IR_KEYTAB_TYPE ir_codes_norwood[IR_KEYTAB_SIZE]; |
94 | extern IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE]; | 94 | extern IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE]; |
95 | extern IR_KEYTAB_TYPE ir_codes_budget_ci_old[IR_KEYTAB_SIZE]; | ||
95 | 96 | ||
96 | #endif | 97 | #endif |
97 | 98 | ||
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index fee579f10b32..796bcf151a3a 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h | |||
@@ -42,10 +42,6 @@ extern unsigned int saa7146_debug; | |||
42 | #define DEB_INT(x) if (0!=(DEBUG_VARIABLE&0x20)) { DEBUG_PROLOG; printk x; } /* interrupt debug messages */ | 42 | #define DEB_INT(x) if (0!=(DEBUG_VARIABLE&0x20)) { DEBUG_PROLOG; printk x; } /* interrupt debug messages */ |
43 | #define DEB_CAP(x) if (0!=(DEBUG_VARIABLE&0x40)) { DEBUG_PROLOG; printk x; } /* capture debug messages */ | 43 | #define DEB_CAP(x) if (0!=(DEBUG_VARIABLE&0x40)) { DEBUG_PROLOG; printk x; } /* capture debug messages */ |
44 | 44 | ||
45 | #define SAA7146_IER_DISABLE(x,y) \ | ||
46 | saa7146_write(x, IER, saa7146_read(x, IER) & ~(y)); | ||
47 | #define SAA7146_IER_ENABLE(x,y) \ | ||
48 | saa7146_write(x, IER, saa7146_read(x, IER) | (y)); | ||
49 | #define SAA7146_ISR_CLEAR(x,y) \ | 45 | #define SAA7146_ISR_CLEAR(x,y) \ |
50 | saa7146_write(x, ISR, (y)); | 46 | saa7146_write(x, ISR, (y)); |
51 | 47 | ||
@@ -441,4 +437,20 @@ int saa7146_wait_for_debi_done(struct saa7146_dev *dev, int nobusyloop); | |||
441 | #define SAA7146_I2C_BUS_BIT_RATE_80 (0x200) | 437 | #define SAA7146_I2C_BUS_BIT_RATE_80 (0x200) |
442 | #define SAA7146_I2C_BUS_BIT_RATE_60 (0x300) | 438 | #define SAA7146_I2C_BUS_BIT_RATE_60 (0x300) |
443 | 439 | ||
440 | static inline void SAA7146_IER_DISABLE(struct saa7146_dev *x, unsigned y) | ||
441 | { | ||
442 | unsigned long flags; | ||
443 | spin_lock_irqsave(&x->int_slock, flags); | ||
444 | saa7146_write(x, IER, saa7146_read(x, IER) & ~y); | ||
445 | spin_unlock_irqrestore(&x->int_slock, flags); | ||
446 | } | ||
447 | |||
448 | static inline void SAA7146_IER_ENABLE(struct saa7146_dev *x, unsigned y) | ||
449 | { | ||
450 | unsigned long flags; | ||
451 | spin_lock_irqsave(&x->int_slock, flags); | ||
452 | saa7146_write(x, IER, saa7146_read(x, IER) | y); | ||
453 | spin_unlock_irqrestore(&x->int_slock, flags); | ||
454 | } | ||
455 | |||
444 | #endif | 456 | #endif |
diff --git a/include/media/tuner-types.h b/include/media/tuner-types.h index 37dad07a8439..e5ad3fcfe984 100644 --- a/include/media/tuner-types.h +++ b/include/media/tuner-types.h | |||
@@ -50,6 +50,10 @@ struct tuner_params { | |||
50 | sensitivity. If this setting is 1, then set PORT2 to 1 to | 50 | sensitivity. If this setting is 1, then set PORT2 to 1 to |
51 | get proper FM reception. */ | 51 | get proper FM reception. */ |
52 | unsigned int port2_fm_high_sensitivity:1; | 52 | unsigned int port2_fm_high_sensitivity:1; |
53 | /* Some Philips tuners use tda9887 cGainNormal to select the FM radio | ||
54 | sensitivity. If this setting is 1, e register will use cGainNormal | ||
55 | instead of cGainLow. */ | ||
56 | unsigned int fm_gain_normal:1; | ||
53 | /* Most tuners with a tda9887 use QSS mode. Some (cheaper) tuners | 57 | /* Most tuners with a tda9887 use QSS mode. Some (cheaper) tuners |
54 | use Intercarrier mode. If this setting is 1, then the tuner | 58 | use Intercarrier mode. If this setting is 1, then the tuner |
55 | needs to be set to intercarrier mode. */ | 59 | needs to be set to intercarrier mode. */ |
diff --git a/include/media/tuner.h b/include/media/tuner.h index 3116e750132f..99acf847365c 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -145,6 +145,7 @@ extern int tuner_debug; | |||
145 | #define TDA9887_DEEMPHASIS_75 (3<<16) | 145 | #define TDA9887_DEEMPHASIS_75 (3<<16) |
146 | #define TDA9887_AUTOMUTE (1<<18) | 146 | #define TDA9887_AUTOMUTE (1<<18) |
147 | #define TDA9887_GATING_18 (1<<19) | 147 | #define TDA9887_GATING_18 (1<<19) |
148 | #define TDA9887_GAIN_NORMAL (1<<20) | ||
148 | 149 | ||
149 | #ifdef __KERNEL__ | 150 | #ifdef __KERNEL__ |
150 | 151 | ||
diff --git a/include/media/tveeprom.h b/include/media/tveeprom.h index e9fc1a785497..5660ea24996b 100644 --- a/include/media/tveeprom.h +++ b/include/media/tveeprom.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | struct tveeprom { | 4 | struct tveeprom { |
5 | u32 has_radio; | 5 | u32 has_radio; |
6 | u32 has_ir; /* 0: no IR, 1: IR present, 2: unknown */ | 6 | u32 has_ir; /* bit 0: IR receiver present, bit 1: IR transmitter (blaster) present. -1 == unknown */ |
7 | u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */ | 7 | u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */ |
8 | 8 | ||
9 | u32 tuner_type; | 9 | u32 tuner_type; |
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index aecc946980a3..91b19921f958 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -144,6 +144,9 @@ enum v4l2_chip_ident { | |||
144 | V4L2_IDENT_CX25841 = 241, | 144 | V4L2_IDENT_CX25841 = 241, |
145 | V4L2_IDENT_CX25842 = 242, | 145 | V4L2_IDENT_CX25842 = 242, |
146 | V4L2_IDENT_CX25843 = 243, | 146 | V4L2_IDENT_CX25843 = 243, |
147 | |||
148 | /* OmniVision sensors - range 250-299 */ | ||
149 | V4L2_IDENT_OV7670 = 250, | ||
147 | }; | 150 | }; |
148 | 151 | ||
149 | /* audio ioctls */ | 152 | /* audio ioctls */ |
@@ -251,4 +254,8 @@ struct v4l2_crystal_freq { | |||
251 | If the frequency is not supported, then -EINVAL is returned. */ | 254 | If the frequency is not supported, then -EINVAL is returned. */ |
252 | #define VIDIOC_INT_S_CRYSTAL_FREQ _IOW ('d', 113, struct v4l2_crystal_freq) | 255 | #define VIDIOC_INT_S_CRYSTAL_FREQ _IOW ('d', 113, struct v4l2_crystal_freq) |
253 | 256 | ||
257 | /* Initialize the sensor registors to some sort of reasonable | ||
258 | default values. */ | ||
259 | #define VIDIOC_INT_INIT _IOW ('d', 114, u32) | ||
260 | |||
254 | #endif /* V4L2_COMMON_H_ */ | 261 | #endif /* V4L2_COMMON_H_ */ |
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 6a11d772700f..fb96472a1bd3 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
@@ -43,6 +43,7 @@ | |||
43 | 43 | ||
44 | /* Video standard functions */ | 44 | /* Video standard functions */ |
45 | extern unsigned int v4l2_video_std_fps(struct v4l2_standard *vs); | 45 | extern unsigned int v4l2_video_std_fps(struct v4l2_standard *vs); |
46 | extern char *v4l2_norm_to_name(v4l2_std_id id); | ||
46 | extern int v4l2_video_std_construct(struct v4l2_standard *vs, | 47 | extern int v4l2_video_std_construct(struct v4l2_standard *vs, |
47 | int id, char *name); | 48 | int id, char *name); |
48 | 49 | ||
@@ -81,12 +82,6 @@ extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd, | |||
81 | * This version moves redundant code from video device code to | 82 | * This version moves redundant code from video device code to |
82 | * the common handler | 83 | * the common handler |
83 | */ | 84 | */ |
84 | struct v4l2_tvnorm { | ||
85 | char *name; | ||
86 | v4l2_std_id id; | ||
87 | |||
88 | void *priv_data; | ||
89 | }; | ||
90 | 85 | ||
91 | struct video_device | 86 | struct video_device |
92 | { | 87 | { |
@@ -104,9 +99,8 @@ struct video_device | |||
104 | int debug; /* Activates debug level*/ | 99 | int debug; /* Activates debug level*/ |
105 | 100 | ||
106 | /* Video standard vars */ | 101 | /* Video standard vars */ |
107 | int tvnormsize; /* Size of tvnorm array */ | 102 | v4l2_std_id tvnorms; /* Supported tv norms */ |
108 | v4l2_std_id current_norm; /* Current tvnorm */ | 103 | v4l2_std_id current_norm; /* Current tvnorm */ |
109 | struct v4l2_tvnorm *tvnorms; | ||
110 | 104 | ||
111 | /* callbacks */ | 105 | /* callbacks */ |
112 | void (*release)(struct video_device *vfd); | 106 | void (*release)(struct video_device *vfd); |
@@ -211,7 +205,7 @@ struct video_device | |||
211 | /* Standard handling | 205 | /* Standard handling |
212 | G_STD and ENUMSTD are handled by videodev.c | 206 | G_STD and ENUMSTD are handled by videodev.c |
213 | */ | 207 | */ |
214 | int (*vidioc_s_std) (struct file *file, void *fh, v4l2_std_id a); | 208 | int (*vidioc_s_std) (struct file *file, void *fh, v4l2_std_id *norm); |
215 | int (*vidioc_querystd) (struct file *file, void *fh, v4l2_std_id *a); | 209 | int (*vidioc_querystd) (struct file *file, void *fh, v4l2_std_id *a); |
216 | 210 | ||
217 | /* Input handling */ | 211 | /* Input handling */ |