diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 15:53:57 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 15:53:57 -0400 |
| commit | b043b673dc8a73daa233d5d92cf70b32e7351314 (patch) | |
| tree | d17fd0616420886adca7eb1bc19ba7a55a789fa8 /include | |
| parent | cd5e25d93e6efeb93db7b6731b0a674495270621 (diff) | |
| parent | fb9c280d4c6d4586670e3dfd041d8258db36b330 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (49 commits)
V4L/DVB (3667b): cpia2: fix function prototype
V4L/DVB (3702): Make msp3400 routing defines more consistent
V4L/DVB (3700): Remove obsolete commands from tvp5150.c
V4L/DVB (3697): More msp3400 and bttv fixes
V4L/DVB (3696): Previous change for cx2341X boards broke the remote support
V4L/DVB (3693): Fix msp3400c and bttv stereo/mono/bilingual detection/handling
V4L/DVB (3692): Keep experimental SLICED_VBI defines under an #if 0
V4L/DVB (3689): Kconfig: fix VP-3054 Secondary I2C Bus build configuration menu dependencies
V4L/DVB (3673): Fix budget-av CAM reset
V4L/DVB (3672): Fix memory leak in dvr open
V4L/DVB (3671): New module parameter 'tv_standard' (dvb-ttpci driver)
V4L/DVB (3670): Fix typo in comment
V4L/DVB (3669): Configurable dma buffer size for saa7146-based budget dvb cards
V4L/DVB (3653h): Move usb v4l docs into Documentation/video4linux
V4L/DVB (3667a): Fix SAP + stereo mode at msp3400
V4L/DVB (3666): Remove trailing newlines
V4L/DVB (3665): Add new NEC uPD64031A and uPD64083 i2c drivers
V4L/DVB (3663): Fix msp3400c wait time and better audio mode fallbacks
V4L/DVB (3662): Don't set msp3400c-non-existent register
V4L/DVB (3661): Add wm8739 stereo audio ADC i2c driver
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/videodev2.h | 65 | ||||
| -rw-r--r-- | include/media/cx25840.h | 64 | ||||
| -rw-r--r-- | include/media/msp3400.h | 60 | ||||
| -rw-r--r-- | include/media/saa7115.h | 37 | ||||
| -rw-r--r-- | include/media/saa7127.h | 41 | ||||
| -rw-r--r-- | include/media/upd64031a.h | 40 | ||||
| -rw-r--r-- | include/media/upd64083.h | 58 |
7 files changed, 278 insertions, 87 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index af2d6155d3..d7670ec1ec 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
| @@ -966,66 +966,17 @@ struct v4l2_sliced_vbi_format | |||
| 966 | 966 | ||
| 967 | /* Teletext World System Teletext | 967 | /* Teletext World System Teletext |
| 968 | (WST), defined on ITU-R BT.653-2 */ | 968 | (WST), defined on ITU-R BT.653-2 */ |
| 969 | #define V4L2_SLICED_TELETEXT_PAL_B (0x000001) | 969 | #define V4L2_SLICED_TELETEXT_B (0x0001) |
| 970 | #define V4L2_SLICED_TELETEXT_PAL_C (0x000002) | ||
| 971 | #define V4L2_SLICED_TELETEXT_NTSC_B (0x000010) | ||
| 972 | #define V4L2_SLICED_TELETEXT_SECAM (0x000020) | ||
| 973 | |||
| 974 | /* Teletext North American Broadcast Teletext Specification | ||
| 975 | (NABTS), defined on ITU-R BT.653-2 */ | ||
| 976 | #define V4L2_SLICED_TELETEXT_NTSC_C (0x000040) | ||
| 977 | #define V4L2_SLICED_TELETEXT_NTSC_D (0x000080) | ||
| 978 | |||
| 979 | /* Video Program System, defined on ETS 300 231*/ | 970 | /* Video Program System, defined on ETS 300 231*/ |
| 980 | #define V4L2_SLICED_VPS (0x000400) | 971 | #define V4L2_SLICED_VPS (0x0400) |
| 981 | |||
| 982 | /* Closed Caption, defined on EIA-608 */ | 972 | /* Closed Caption, defined on EIA-608 */ |
| 983 | #define V4L2_SLICED_CAPTION_525 (0x001000) | 973 | #define V4L2_SLICED_CAPTION_525 (0x1000) |
| 984 | #define V4L2_SLICED_CAPTION_625 (0x002000) | ||
| 985 | |||
| 986 | /* Wide Screen System, defined on ITU-R BT1119.1 */ | 974 | /* Wide Screen System, defined on ITU-R BT1119.1 */ |
| 987 | #define V4L2_SLICED_WSS_625 (0x004000) | 975 | #define V4L2_SLICED_WSS_625 (0x4000) |
| 988 | 976 | ||
| 989 | /* Wide Screen System, defined on IEC 61880 */ | 977 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525) |
| 990 | #define V4L2_SLICED_WSS_525 (0x008000) | 978 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625) |
| 991 | 979 | ||
| 992 | /* Vertical Interval Timecode (VITC), defined on SMPTE 12M */ | ||
| 993 | #define V4l2_SLICED_VITC_625 (0x010000) | ||
| 994 | #define V4l2_SLICED_VITC_525 (0x020000) | ||
| 995 | |||
| 996 | #define V4L2_SLICED_TELETEXT_B (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
| 997 | V4L2_SLICED_TELETEXT_NTSC_B) | ||
| 998 | |||
| 999 | #define V4L2_SLICED_TELETEXT (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
| 1000 | V4L2_SLICED_TELETEXT_PAL_C |\ | ||
| 1001 | V4L2_SLICED_TELETEXT_SECAM |\ | ||
| 1002 | V4L2_SLICED_TELETEXT_NTSC_B |\ | ||
| 1003 | V4L2_SLICED_TELETEXT_NTSC_C |\ | ||
| 1004 | V4L2_SLICED_TELETEXT_NTSC_D) | ||
| 1005 | |||
| 1006 | #define V4L2_SLICED_CAPTION (V4L2_SLICED_CAPTION_525 |\ | ||
| 1007 | V4L2_SLICED_CAPTION_625) | ||
| 1008 | |||
| 1009 | #define V4L2_SLICED_WSS (V4L2_SLICED_WSS_525 |\ | ||
| 1010 | V4L2_SLICED_WSS_625) | ||
| 1011 | |||
| 1012 | #define V4L2_SLICED_VITC (V4L2_SLICED_VITC_525 |\ | ||
| 1013 | V4L2_SLICED_VITC_625) | ||
| 1014 | |||
| 1015 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_TELETEXT_NTSC_B |\ | ||
| 1016 | V4L2_SLICED_TELETEXT_NTSC_C |\ | ||
| 1017 | V4L2_SLICED_TELETEXT_NTSC_D |\ | ||
| 1018 | V4L2_SLICED_CAPTION_525 |\ | ||
| 1019 | V4L2_SLICED_WSS_525 |\ | ||
| 1020 | V4l2_SLICED_VITC_525) | ||
| 1021 | |||
| 1022 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
| 1023 | V4L2_SLICED_TELETEXT_PAL_C |\ | ||
| 1024 | V4L2_SLICED_TELETEXT_SECAM |\ | ||
| 1025 | V4L2_SLICED_VPS |\ | ||
| 1026 | V4L2_SLICED_CAPTION_625 |\ | ||
| 1027 | V4L2_SLICED_WSS_625 |\ | ||
| 1028 | V4l2_SLICED_VITC_625) | ||
| 1029 | 980 | ||
| 1030 | struct v4l2_sliced_vbi_cap | 981 | struct v4l2_sliced_vbi_cap |
| 1031 | { | 982 | { |
diff --git a/include/media/cx25840.h b/include/media/cx25840.h new file mode 100644 index 0000000000..8e7e52d659 --- /dev/null +++ b/include/media/cx25840.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* | ||
| 2 | cx25840.h - definition for cx25840/1/2/3 inputs | ||
| 3 | |||
| 4 | Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl) | ||
| 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 as published by | ||
| 8 | the Free Software Foundation; either version 2 of the License, or | ||
| 9 | (at your option) any later version. | ||
| 10 | |||
| 11 | This program is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program; if not, write to the Free Software | ||
| 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef _CX25840_H_ | ||
| 22 | #define _CX25840_H_ | ||
| 23 | |||
| 24 | enum cx25840_video_input { | ||
| 25 | /* Composite video inputs In1-In8 */ | ||
| 26 | CX25840_COMPOSITE1 = 1, | ||
| 27 | CX25840_COMPOSITE2, | ||
| 28 | CX25840_COMPOSITE3, | ||
| 29 | CX25840_COMPOSITE4, | ||
| 30 | CX25840_COMPOSITE5, | ||
| 31 | CX25840_COMPOSITE6, | ||
| 32 | CX25840_COMPOSITE7, | ||
| 33 | CX25840_COMPOSITE8, | ||
| 34 | |||
| 35 | /* S-Video inputs consist of one luma input (In1-In4) ORed with one | ||
| 36 | chroma input (In5-In8) */ | ||
| 37 | CX25840_SVIDEO_LUMA1 = 0x10, | ||
| 38 | CX25840_SVIDEO_LUMA2 = 0x20, | ||
| 39 | CX25840_SVIDEO_LUMA3 = 0x30, | ||
| 40 | CX25840_SVIDEO_LUMA4 = 0x40, | ||
| 41 | CX25840_SVIDEO_CHROMA4 = 0x400, | ||
| 42 | CX25840_SVIDEO_CHROMA5 = 0x500, | ||
| 43 | CX25840_SVIDEO_CHROMA6 = 0x600, | ||
| 44 | CX25840_SVIDEO_CHROMA7 = 0x700, | ||
| 45 | CX25840_SVIDEO_CHROMA8 = 0x800, | ||
| 46 | |||
| 47 | /* S-Video aliases for common luma/chroma combinations */ | ||
| 48 | CX25840_SVIDEO1 = 0x510, | ||
| 49 | CX25840_SVIDEO2 = 0x620, | ||
| 50 | CX25840_SVIDEO3 = 0x730, | ||
| 51 | CX25840_SVIDEO4 = 0x840, | ||
| 52 | }; | ||
| 53 | |||
| 54 | enum cx25840_audio_input { | ||
| 55 | /* Audio inputs: serial or In4-In8 */ | ||
| 56 | CX25840_AUDIO_SERIAL, | ||
| 57 | CX25840_AUDIO4 = 4, | ||
| 58 | CX25840_AUDIO5, | ||
| 59 | CX25840_AUDIO6, | ||
| 60 | CX25840_AUDIO7, | ||
| 61 | CX25840_AUDIO8, | ||
| 62 | }; | ||
| 63 | |||
| 64 | #endif | ||
diff --git a/include/media/msp3400.h b/include/media/msp3400.h index 0be61a021d..6ab854931c 100644 --- a/include/media/msp3400.h +++ b/include/media/msp3400.h | |||
| @@ -80,16 +80,16 @@ | |||
| 80 | */ | 80 | */ |
| 81 | 81 | ||
| 82 | /* SCART input to DSP selection */ | 82 | /* SCART input to DSP selection */ |
| 83 | #define MSP_IN_SCART_1 0 /* Pin SC1_IN */ | 83 | #define MSP_IN_SCART1 0 /* Pin SC1_IN */ |
| 84 | #define MSP_IN_SCART_2 1 /* Pin SC2_IN */ | 84 | #define MSP_IN_SCART2 1 /* Pin SC2_IN */ |
| 85 | #define MSP_IN_SCART_3 2 /* Pin SC3_IN */ | 85 | #define MSP_IN_SCART3 2 /* Pin SC3_IN */ |
| 86 | #define MSP_IN_SCART_4 3 /* Pin SC4_IN */ | 86 | #define MSP_IN_SCART4 3 /* Pin SC4_IN */ |
| 87 | #define MSP_IN_MONO 6 /* Pin MONO_IN */ | 87 | #define MSP_IN_MONO 6 /* Pin MONO_IN */ |
| 88 | #define MSP_IN_MUTE 7 /* Mute DSP input */ | 88 | #define MSP_IN_MUTE 7 /* Mute DSP input */ |
| 89 | #define MSP_SCART_TO_DSP(in) (in) | 89 | #define MSP_SCART_TO_DSP(in) (in) |
| 90 | /* Tuner input to demodulator and DSP selection */ | 90 | /* Tuner input to demodulator and DSP selection */ |
| 91 | #define MSP_IN_TUNER_1 0 /* Analog Sound IF input pin ANA_IN1 */ | 91 | #define MSP_IN_TUNER1 0 /* Analog Sound IF input pin ANA_IN1 */ |
| 92 | #define MSP_IN_TUNER_2 1 /* Analog Sound IF input pin ANA_IN2 */ | 92 | #define MSP_IN_TUNER2 1 /* Analog Sound IF input pin ANA_IN2 */ |
| 93 | #define MSP_TUNER_TO_DSP(in) ((in) << 3) | 93 | #define MSP_TUNER_TO_DSP(in) ((in) << 3) |
| 94 | 94 | ||
| 95 | /* The msp has up to 5 DSP outputs, each output can independently select | 95 | /* The msp has up to 5 DSP outputs, each output can independently select |
| @@ -109,14 +109,14 @@ | |||
| 109 | DSP. This is currently not implemented. Also not implemented is the | 109 | DSP. This is currently not implemented. Also not implemented is the |
| 110 | multi-channel capable I2S3 input of the 44x0G. If someone can demonstrate | 110 | multi-channel capable I2S3 input of the 44x0G. If someone can demonstrate |
| 111 | a need for one of those features then additional support can be added. */ | 111 | a need for one of those features then additional support can be added. */ |
| 112 | #define MSP_DSP_OUT_TUNER 0 /* Tuner output */ | 112 | #define MSP_DSP_IN_TUNER 0 /* Tuner DSP input */ |
| 113 | #define MSP_DSP_OUT_SCART 2 /* SCART output */ | 113 | #define MSP_DSP_IN_SCART 2 /* SCART DSP input */ |
| 114 | #define MSP_DSP_OUT_I2S1 5 /* I2S1 output */ | 114 | #define MSP_DSP_IN_I2S1 5 /* I2S1 DSP input */ |
| 115 | #define MSP_DSP_OUT_I2S2 6 /* I2S2 output */ | 115 | #define MSP_DSP_IN_I2S2 6 /* I2S2 DSP input */ |
| 116 | #define MSP_DSP_OUT_I2S3 7 /* I2S3 output */ | 116 | #define MSP_DSP_IN_I2S3 7 /* I2S3 DSP input */ |
| 117 | #define MSP_DSP_OUT_MAIN_AVC 11 /* MAIN AVC processed output */ | 117 | #define MSP_DSP_IN_MAIN_AVC 11 /* MAIN AVC processed DSP input */ |
| 118 | #define MSP_DSP_OUT_MAIN 12 /* MAIN output */ | 118 | #define MSP_DSP_IN_MAIN 12 /* MAIN DSP input */ |
| 119 | #define MSP_DSP_OUT_AUX 13 /* AUX output */ | 119 | #define MSP_DSP_IN_AUX 13 /* AUX DSP input */ |
| 120 | #define MSP_DSP_TO_MAIN(in) ((in) << 4) | 120 | #define MSP_DSP_TO_MAIN(in) ((in) << 4) |
| 121 | #define MSP_DSP_TO_AUX(in) ((in) << 8) | 121 | #define MSP_DSP_TO_AUX(in) ((in) << 8) |
