diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dvb/frontend.h | 2 | ||||
| -rw-r--r-- | include/linux/i2c-id.h | 2 | ||||
| -rw-r--r-- | include/media/soc_camera_platform.h | 11 | ||||
| -rw-r--r-- | include/media/tuner.h | 1 | ||||
| -rw-r--r-- | include/media/v4l2-i2c-drv-legacy.h | 11 | ||||
| -rw-r--r-- | include/media/v4l2-i2c-drv.h | 11 | ||||
| -rw-r--r-- | include/media/videobuf-dvb.h | 29 |
7 files changed, 62 insertions, 5 deletions
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h index 6e4ace270276..79a8ed8e6a7d 100644 --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h | |||
| @@ -166,6 +166,7 @@ typedef enum fe_modulation { | |||
| 166 | VSB_16, | 166 | VSB_16, |
| 167 | PSK_8, | 167 | PSK_8, |
| 168 | APSK_16, | 168 | APSK_16, |
| 169 | APSK_32, | ||
| 169 | DQPSK, | 170 | DQPSK, |
| 170 | } fe_modulation_t; | 171 | } fe_modulation_t; |
| 171 | 172 | ||
| @@ -295,6 +296,7 @@ typedef enum fe_delivery_system { | |||
| 295 | SYS_DVBC_ANNEX_AC, | 296 | SYS_DVBC_ANNEX_AC, |
| 296 | SYS_DVBC_ANNEX_B, | 297 | SYS_DVBC_ANNEX_B, |
| 297 | SYS_DVBT, | 298 | SYS_DVBT, |
| 299 | SYS_DSS, | ||
| 298 | SYS_DVBS, | 300 | SYS_DVBS, |
| 299 | SYS_DVBS2, | 301 | SYS_DVBS2, |
| 300 | SYS_DVBH, | 302 | SYS_DVBH, |
diff --git a/include/linux/i2c-id.h b/include/linux/i2c-id.h index 493435bcdbe5..01d67ba9e985 100644 --- a/include/linux/i2c-id.h +++ b/include/linux/i2c-id.h | |||
| @@ -60,7 +60,7 @@ | |||
| 60 | #define I2C_DRIVERID_WM8775 69 /* wm8775 audio processor */ | 60 | #define I2C_DRIVERID_WM8775 69 /* wm8775 audio processor */ |
| 61 | #define I2C_DRIVERID_CS53L32A 70 /* cs53l32a audio processor */ | 61 | #define I2C_DRIVERID_CS53L32A 70 /* cs53l32a audio processor */ |
| 62 | #define I2C_DRIVERID_CX25840 71 /* cx2584x video encoder */ | 62 | #define I2C_DRIVERID_CX25840 71 /* cx2584x video encoder */ |
| 63 | #define I2C_DRIVERID_SAA7127 72 /* saa7124 video encoder */ | 63 | #define I2C_DRIVERID_SAA7127 72 /* saa7127 video encoder */ |
| 64 | #define I2C_DRIVERID_SAA711X 73 /* saa711x video encoders */ | 64 | #define I2C_DRIVERID_SAA711X 73 /* saa711x video encoders */ |
| 65 | #define I2C_DRIVERID_AKITAIOEXP 74 /* IO Expander on Sharp SL-C1000 */ | 65 | #define I2C_DRIVERID_AKITAIOEXP 74 /* IO Expander on Sharp SL-C1000 */ |
| 66 | #define I2C_DRIVERID_INFRARED 75 /* I2C InfraRed on Video boards */ | 66 | #define I2C_DRIVERID_INFRARED 75 /* I2C InfraRed on Video boards */ |
diff --git a/include/media/soc_camera_platform.h b/include/media/soc_camera_platform.h index 851f18220984..1d092b4678aa 100644 --- a/include/media/soc_camera_platform.h +++ b/include/media/soc_camera_platform.h | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | /* | ||
| 2 | * Generic Platform Camera Driver Header | ||
| 3 | * | ||
| 4 | * Copyright (C) 2008 Magnus Damm | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | */ | ||
| 10 | |||
| 1 | #ifndef __SOC_CAMERA_H__ | 11 | #ifndef __SOC_CAMERA_H__ |
| 2 | #define __SOC_CAMERA_H__ | 12 | #define __SOC_CAMERA_H__ |
| 3 | 13 | ||
| @@ -9,6 +19,7 @@ struct soc_camera_platform_info { | |||
| 9 | unsigned long format_depth; | 19 | unsigned long format_depth; |
| 10 | struct v4l2_pix_format format; | 20 | struct v4l2_pix_format format; |
| 11 | unsigned long bus_param; | 21 | unsigned long bus_param; |
| 22 | void (*power)(int); | ||
| 12 | int (*set_capture)(struct soc_camera_platform_info *info, int enable); | 23 | int (*set_capture)(struct soc_camera_platform_info *info, int enable); |
| 13 | }; | 24 | }; |
| 14 | 25 | ||
diff --git a/include/media/tuner.h b/include/media/tuner.h index 67c1f514d0e2..7d4e2db78076 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
| @@ -123,6 +123,7 @@ | |||
| 123 | #define TUNER_TEA5761 75 /* Only FM Radio Tuner */ | 123 | #define TUNER_TEA5761 75 /* Only FM Radio Tuner */ |
| 124 | #define TUNER_XC5000 76 /* Xceive Silicon Tuner */ | 124 | #define TUNER_XC5000 76 /* Xceive Silicon Tuner */ |
| 125 | #define TUNER_TCL_MF02GIP_5N 77 /* TCL MF02GIP_5N */ | 125 | #define TUNER_TCL_MF02GIP_5N 77 /* TCL MF02GIP_5N */ |
| 126 | #define TUNER_PHILIPS_FMD1216MEX_MK3 78 | ||
| 126 | 127 | ||
| 127 | /* tv card specific */ | 128 | /* tv card specific */ |
| 128 | #define TDA9887_PRESENT (1<<0) | 129 | #define TDA9887_PRESENT (1<<0) |
diff --git a/include/media/v4l2-i2c-drv-legacy.h b/include/media/v4l2-i2c-drv-legacy.h index 975ffbf4e2c5..e65dd9d84e8b 100644 --- a/include/media/v4l2-i2c-drv-legacy.h +++ b/include/media/v4l2-i2c-drv-legacy.h | |||
| @@ -21,6 +21,17 @@ | |||
| 21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | /* NOTE: the full version of this header is in the v4l-dvb repository | ||
| 25 | * and allows v4l i2c drivers to be compiled on older kernels as well. | ||
| 26 | * The version of this header as it appears in the kernel is a stripped | ||
| 27 | * version (without all the backwards compatibility stuff) and so it | ||
| 28 | * looks a bit odd. | ||
| 29 | * | ||
| 30 | * If you look at the full version then you will understand the reason | ||
| 31 | * for introducing this header since you really don't want to have all | ||
| 32 | * the tricky backwards compatibility code in each and every i2c driver. | ||
| 33 | */ | ||
| 34 | |||
| 24 | struct v4l2_i2c_driver_data { | 35 | struct v4l2_i2c_driver_data { |
| 25 | const char * const name; | 36 | const char * const name; |
| 26 | int driverid; | 37 | int driverid; |
diff --git a/include/media/v4l2-i2c-drv.h b/include/media/v4l2-i2c-drv.h index 40ecef29801d..efdc8bf27f87 100644 --- a/include/media/v4l2-i2c-drv.h +++ b/include/media/v4l2-i2c-drv.h | |||
| @@ -21,6 +21,17 @@ | |||
| 21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | /* NOTE: the full version of this header is in the v4l-dvb repository | ||
| 25 | * and allows v4l i2c drivers to be compiled on older kernels as well. | ||
| 26 | * The version of this header as it appears in the kernel is a stripped | ||
| 27 | * version (without all the backwards compatibility stuff) and so it | ||
| 28 | * looks a bit odd. | ||
| 29 | * | ||
| 30 | * If you look at the full version then you will understand the reason | ||
| 31 | * for introducing this header since you really don't want to have all | ||
| 32 | * the tricky backwards compatibility code in each and every i2c driver. | ||
| 33 | */ | ||
| 34 | |||
| 24 | #ifndef __V4L2_I2C_DRV_H__ | 35 | #ifndef __V4L2_I2C_DRV_H__ |
| 25 | #define __V4L2_I2C_DRV_H__ | 36 | #define __V4L2_I2C_DRV_H__ |
| 26 | 37 | ||
diff --git a/include/media/videobuf-dvb.h b/include/media/videobuf-dvb.h index b77748696329..80471c2b6343 100644 --- a/include/media/videobuf-dvb.h +++ b/include/media/videobuf-dvb.h | |||
| @@ -16,7 +16,6 @@ struct videobuf_dvb { | |||
| 16 | int nfeeds; | 16 | int nfeeds; |
| 17 | 17 | ||
| 18 | /* videobuf_dvb_(un)register manges this */ | 18 | /* videobuf_dvb_(un)register manges this */ |
| 19 | struct dvb_adapter adapter; | ||
| 20 | struct dvb_demux demux; | 19 | struct dvb_demux demux; |
| 21 | struct dmxdev dmxdev; | 20 | struct dmxdev dmxdev; |
| 22 | struct dmx_frontend fe_hw; | 21 | struct dmx_frontend fe_hw; |
| @@ -24,12 +23,34 @@ struct videobuf_dvb { | |||
| 24 | struct dvb_net net; | 23 | struct dvb_net net; |
| 25 | }; | 24 | }; |
| 26 | 25 | ||
| 27 | int videobuf_dvb_register(struct videobuf_dvb *dvb, | 26 | struct videobuf_dvb_frontend { |
| 27 | struct list_head felist; | ||
| 28 | int id; | ||
| 29 | struct videobuf_dvb dvb; | ||
| 30 | }; | ||
| 31 | |||
| 32 | struct videobuf_dvb_frontends { | ||
| 33 | struct list_head felist; | ||
| 34 | struct mutex lock; | ||
| 35 | struct dvb_adapter adapter; | ||
| 36 | int active_fe_id; /* Indicates which frontend in the felist is in use */ | ||
| 37 | int gate; /* Frontend with gate control 0=!MFE,1=fe0,2=fe1 etc */ | ||
| 38 | }; | ||
| 39 | |||
| 40 | int videobuf_dvb_register_bus(struct videobuf_dvb_frontends *f, | ||
| 28 | struct module *module, | 41 | struct module *module, |
| 29 | void *adapter_priv, | 42 | void *adapter_priv, |
| 30 | struct device *device, | 43 | struct device *device, |
| 31 | short *adapter_nr); | 44 | short *adapter_nr, |
| 32 | void videobuf_dvb_unregister(struct videobuf_dvb *dvb); | 45 | int mfe_shared); |
| 46 | |||
| 47 | void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f); | ||
| 48 | |||
| 49 | struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id); | ||
| 50 | |||
| 51 | struct videobuf_dvb_frontend * videobuf_dvb_get_frontend(struct videobuf_dvb_frontends *f, int id); | ||
| 52 | int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_frontend *p); | ||
| 53 | |||
| 33 | 54 | ||
| 34 | /* | 55 | /* |
| 35 | * Local variables: | 56 | * Local variables: |
