diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 18:42:54 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 18:42:54 -0400 |
| commit | 1eb63378354ac37b7e27d256bbf84684751bac32 (patch) | |
| tree | 0775591a2dced778d1ba0bd8a946831e424d02d7 /include/linux | |
| parent | 1a4ceab195e66bce9c1638fdded6d92988100ba4 (diff) | |
| parent | bac2dacd5fb9ddad093d7a2dc5ab44e764874821 (diff) | |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (348 commits)
[media] pctv452e: Remove bogus code
[media] adv7175: Make use of media bus pixel codes
[media] media: vb2: fix incorrect return value
[media] em28xx: implement VIDIOC_ENUM_FRAMESIZES
[media] cx23885: Stop the risc video fifo before reconfiguring it
[media] cx23885: Avoid incorrect error handling and reporting
[media] cx23885: Avoid stopping the risc engine during buffer timeout
[media] cx23885: Removed a spurious function cx23885_set_scale()
[media] cx23885: v4l2 api compliance, set the audioset field correctly
[media] cx23885: hook the audio selection functions into the main driver
[media] cx23885: add generic functions for dealing with audio input selection
[media] cx23885: fixes related to maximum number of inputs and range checking
[media] cx23885: Initial support for the MPX-885 mini-card
[media] cx25840: Ensure AUDIO6 and AUDIO7 trigger line-in baseband use
[media] cx23885: Enable audio line in support from the back panel
[media] cx23885: Allow the audio mux config to be specified on a per input basis
[media] cx25840: Enable support for non-tuner LR1/LR2 audio inputs
[media] cx23885: Name an internal i2c part and declare a bitfield by name
[media] cx23885: Ensure VBI buffers timeout quickly - bugfix for vbi hangs during streaming
[media] cx23885: remove channel dump diagnostics when a vbi buffer times out
...
Fix up trivial conflicts in drivers/misc/altera-stapl/altera.c (header
file rename vs add)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dvb/frontend.h | 1 | ||||
| -rw-r--r-- | include/linux/dvb/version.h | 2 | ||||
| -rw-r--r-- | include/linux/omap3isp.h | 2 | ||||
| -rw-r--r-- | include/linux/usb/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/videodev2.h | 92 |
5 files changed, 72 insertions, 26 deletions
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h index 36a3ed63f571..1b1094c35e4f 100644 --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h | |||
| @@ -349,6 +349,7 @@ typedef enum fe_delivery_system { | |||
| 349 | SYS_CMMB, | 349 | SYS_CMMB, |
| 350 | SYS_DAB, | 350 | SYS_DAB, |
| 351 | SYS_DVBT2, | 351 | SYS_DVBT2, |
| 352 | SYS_TURBO, | ||
| 352 | } fe_delivery_system_t; | 353 | } fe_delivery_system_t; |
| 353 | 354 | ||
| 354 | struct dtv_cmds_h { | 355 | struct dtv_cmds_h { |
diff --git a/include/linux/dvb/version.h b/include/linux/dvb/version.h index 1421cc84afaa..66594b1d5d7b 100644 --- a/include/linux/dvb/version.h +++ b/include/linux/dvb/version.h | |||
| @@ -24,6 +24,6 @@ | |||
| 24 | #define _DVBVERSION_H_ | 24 | #define _DVBVERSION_H_ |
| 25 | 25 | ||
| 26 | #define DVB_API_VERSION 5 | 26 | #define DVB_API_VERSION 5 |
| 27 | #define DVB_API_VERSION_MINOR 3 | 27 | #define DVB_API_VERSION_MINOR 4 |
| 28 | 28 | ||
| 29 | #endif /*_DVBVERSION_H_*/ | 29 | #endif /*_DVBVERSION_H_*/ |
diff --git a/include/linux/omap3isp.h b/include/linux/omap3isp.h index b6111f8cd49a..c73a34c3434d 100644 --- a/include/linux/omap3isp.h +++ b/include/linux/omap3isp.h | |||
| @@ -62,14 +62,12 @@ | |||
| 62 | * V4L2_EVENT_OMAP3ISP_AEWB: AEWB statistics data ready | 62 | * V4L2_EVENT_OMAP3ISP_AEWB: AEWB statistics data ready |
| 63 | * V4L2_EVENT_OMAP3ISP_AF: AF statistics data ready | 63 | * V4L2_EVENT_OMAP3ISP_AF: AF statistics data ready |
| 64 | * V4L2_EVENT_OMAP3ISP_HIST: Histogram statistics data ready | 64 | * V4L2_EVENT_OMAP3ISP_HIST: Histogram statistics data ready |
| 65 | * V4L2_EVENT_OMAP3ISP_HS_VS: Horizontal/vertical synchronization detected | ||
| 66 | */ | 65 | */ |
| 67 | 66 | ||
| 68 | #define V4L2_EVENT_OMAP3ISP_CLASS (V4L2_EVENT_PRIVATE_START | 0x100) | 67 | #define V4L2_EVENT_OMAP3ISP_CLASS (V4L2_EVENT_PRIVATE_START | 0x100) |
| 69 | #define V4L2_EVENT_OMAP3ISP_AEWB (V4L2_EVENT_OMAP3ISP_CLASS | 0x1) | 68 | #define V4L2_EVENT_OMAP3ISP_AEWB (V4L2_EVENT_OMAP3ISP_CLASS | 0x1) |
| 70 | #define V4L2_EVENT_OMAP3ISP_AF (V4L2_EVENT_OMAP3ISP_CLASS | 0x2) | 69 | #define V4L2_EVENT_OMAP3ISP_AF (V4L2_EVENT_OMAP3ISP_CLASS | 0x2) |
| 71 | #define V4L2_EVENT_OMAP3ISP_HIST (V4L2_EVENT_OMAP3ISP_CLASS | 0x3) | 70 | #define V4L2_EVENT_OMAP3ISP_HIST (V4L2_EVENT_OMAP3ISP_CLASS | 0x3) |
| 72 | #define V4L2_EVENT_OMAP3ISP_HS_VS (V4L2_EVENT_OMAP3ISP_CLASS | 0x4) | ||
| 73 | 71 | ||
| 74 | struct omap3isp_stat_event_status { | 72 | struct omap3isp_stat_event_status { |
| 75 | __u32 frame_number; | 73 | __u32 frame_number; |
diff --git a/include/linux/usb/Kbuild b/include/linux/usb/Kbuild index ed91fb62674b..b607f3532e88 100644 --- a/include/linux/usb/Kbuild +++ b/include/linux/usb/Kbuild | |||
| @@ -7,3 +7,4 @@ header-y += gadgetfs.h | |||
| 7 | header-y += midi.h | 7 | header-y += midi.h |
| 8 | header-y += g_printer.h | 8 | header-y += g_printer.h |
| 9 | header-y += tmc.h | 9 | header-y += tmc.h |
| 10 | header-y += video.h | ||
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index fca24cc50436..225560c1a10f 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
| @@ -759,10 +759,10 @@ typedef __u64 v4l2_std_id; | |||
| 759 | #define V4L2_STD_PAL_Nc ((v4l2_std_id)0x00000400) | 759 | #define V4L2_STD_PAL_Nc ((v4l2_std_id)0x00000400) |
| 760 | #define V4L2_STD_PAL_60 ((v4l2_std_id)0x00000800) | 760 | #define V4L2_STD_PAL_60 ((v4l2_std_id)0x00000800) |
| 761 | 761 | ||
| 762 | #define V4L2_STD_NTSC_M ((v4l2_std_id)0x00001000) | 762 | #define V4L2_STD_NTSC_M ((v4l2_std_id)0x00001000) /* BTSC */ |
| 763 | #define V4L2_STD_NTSC_M_JP ((v4l2_std_id)0x00002000) | 763 | #define V4L2_STD_NTSC_M_JP ((v4l2_std_id)0x00002000) /* EIA-J */ |
| 764 | #define V4L2_STD_NTSC_443 ((v4l2_std_id)0x00004000) | 764 | #define V4L2_STD_NTSC_443 ((v4l2_std_id)0x00004000) |
| 765 | #define V4L2_STD_NTSC_M_KR ((v4l2_std_id)0x00008000) | 765 | #define V4L2_STD_NTSC_M_KR ((v4l2_std_id)0x00008000) /* FM A2 */ |
| 766 | 766 | ||
| 767 | #define V4L2_STD_SECAM_B ((v4l2_std_id)0x00010000) | 767 | #define V4L2_STD_SECAM_B ((v4l2_std_id)0x00010000) |
| 768 | #define V4L2_STD_SECAM_D ((v4l2_std_id)0x00020000) | 768 | #define V4L2_STD_SECAM_D ((v4l2_std_id)0x00020000) |
| @@ -786,47 +786,86 @@ typedef __u64 v4l2_std_id; | |||
| 786 | v4l2-common.c should be fixed. | 786 | v4l2-common.c should be fixed. |
| 787 | */ | 787 | */ |
| 788 | 788 | ||
| 789 | /* some merged standards */ | 789 | /* |
| 790 | #define V4L2_STD_MN (V4L2_STD_PAL_M|V4L2_STD_PAL_N|V4L2_STD_PAL_Nc|V4L2_STD_NTSC) | 790 | * Some macros to merge video standards in order to make live easier for the |
| 791 | #define V4L2_STD_B (V4L2_STD_PAL_B|V4L2_STD_PAL_B1|V4L2_STD_SECAM_B) | 791 | * drivers and V4L2 applications |
| 792 | #define V4L2_STD_GH (V4L2_STD_PAL_G|V4L2_STD_PAL_H|V4L2_STD_SECAM_G|V4L2_STD_SECAM_H) | 792 | */ |
| 793 | #define V4L2_STD_DK (V4L2_STD_PAL_DK|V4L2_STD_SECAM_DK) | ||
| 794 | 793 | ||
| 795 | /* some common needed stuff */ | 794 | /* |
| 796 | #define V4L2_STD_PAL_BG (V4L2_STD_PAL_B |\ | 795 | * "Common" NTSC/M - It should be noticed that V4L2_STD_NTSC_443 is |
| 797 | V4L2_STD_PAL_B1 |\ | 796 | * Missing here. |
| 798 | V4L2_STD_PAL_G) | 797 | */ |
| 799 | #define V4L2_STD_PAL_DK (V4L2_STD_PAL_D |\ | ||
| 800 | V4L2_STD_PAL_D1 |\ | ||
| 801 | V4L2_STD_PAL_K) | ||
| 802 | #define V4L2_STD_PAL (V4L2_STD_PAL_BG |\ | ||
| 803 | V4L2_STD_PAL_DK |\ | ||
| 804 | V4L2_STD_PAL_H |\ | ||
| 805 | V4L2_STD_PAL_I) | ||
| 806 | #define V4L2_STD_NTSC (V4L2_STD_NTSC_M |\ | 798 | #define V4L2_STD_NTSC (V4L2_STD_NTSC_M |\ |
| 807 | V4L2_STD_NTSC_M_JP |\ | 799 | V4L2_STD_NTSC_M_JP |\ |
| 808 | V4L2_STD_NTSC_M_KR) | 800 | V4L2_STD_NTSC_M_KR) |
| 801 | /* Secam macros */ | ||
| 809 | #define V4L2_STD_SECAM_DK (V4L2_STD_SECAM_D |\ | 802 | #define V4L2_STD_SECAM_DK (V4L2_STD_SECAM_D |\ |
| 810 | V4L2_STD_SECAM_K |\ | 803 | V4L2_STD_SECAM_K |\ |
| 811 | V4L2_STD_SECAM_K1) | 804 | V4L2_STD_SECAM_K1) |
| 805 | /* All Secam Standards */ | ||
| 812 | #define V4L2_STD_SECAM (V4L2_STD_SECAM_B |\ | 806 | #define V4L2_STD_SECAM (V4L2_STD_SECAM_B |\ |
| 813 | V4L2_STD_SECAM_G |\ | 807 | V4L2_STD_SECAM_G |\ |
| 814 | V4L2_STD_SECAM_H |\ | 808 | V4L2_STD_SECAM_H |\ |
| 815 | V4L2_STD_SECAM_DK |\ | 809 | V4L2_STD_SECAM_DK |\ |
| 816 | V4L2_STD_SECAM_L |\ | 810 | V4L2_STD_SECAM_L |\ |
| 817 | V4L2_STD_SECAM_LC) | 811 | V4L2_STD_SECAM_LC) |
| 812 | /* PAL macros */ | ||
| 813 | #define V4L2_STD_PAL_BG (V4L2_STD_PAL_B |\ | ||
| 814 | V4L2_STD_PAL_B1 |\ | ||
| 815 | V4L2_STD_PAL_G) | ||
| 816 | #define V4L2_STD_PAL_DK (V4L2_STD_PAL_D |\ | ||
| 817 | V4L2_STD_PAL_D1 |\ | ||
| 818 | V4L2_STD_PAL_K) | ||
| 819 | /* | ||
| 820 | * "Common" PAL - This macro is there to be compatible with the old | ||
| 821 | * V4L1 concept of "PAL": /BGDKHI. | ||
| 822 | * Several PAL standards are mising here: /M, /N and /Nc | ||
| 823 | */ | ||
| 824 | #define V4L2_STD_PAL (V4L2_STD_PAL_BG |\ | ||
| 825 | V4L2_STD_PAL_DK |\ | ||
| 826 | V4L2_STD_PAL_H |\ | ||
| 827 | V4L2_STD_PAL_I) | ||
| 828 | /* Chroma "agnostic" standards */ | ||
| 829 | #define V4L2_STD_B (V4L2_STD_PAL_B |\ | ||
| 830 | V4L2_STD_PAL_B1 |\ | ||
| 831 | V4L2_STD_SECAM_B) | ||
| 832 | #define V4L2_STD_G (V4L2_STD_PAL_G |\ | ||
| 833 | V4L2_STD_SECAM_G) | ||
| 834 | #define V4L2_STD_H (V4L2_STD_PAL_H |\ | ||
| 835 | V4L2_STD_SECAM_H) | ||
| 836 | #define V4L2_STD_L (V4L2_STD_SECAM_L |\ | ||
| 837 | V4L2_STD_SECAM_LC) | ||
| 838 | #define V4L2_STD_GH (V4L2_STD_G |\ | ||
| 839 | V4L2_STD_H) | ||
| 840 | #define V4L2_STD_DK (V4L2_STD_PAL_DK |\ | ||
| 841 | V4L2_STD_SECAM_DK) | ||
| 842 | #define V4L2_STD_BG (V4L2_STD_B |\ | ||
| 843 | V4L2_STD_G) | ||
| 844 | #define V4L2_STD_MN (V4L2_STD_PAL_M |\ | ||
| 845 | V4L2_STD_PAL_N |\ | ||
| 846 | V4L2_STD_PAL_Nc |\ | ||
| 847 | V4L2_STD_NTSC) | ||
| 848 | |||
| 849 | /* Standards where MTS/BTSC stereo could be found */ | ||
| 850 | #define V4L2_STD_MTS (V4L2_STD_NTSC_M |\ | ||
| 851 | V4L2_STD_PAL_M |\ | ||
| 852 | V4L2_STD_PAL_N |\ | ||
| 853 | V4L2_STD_PAL_Nc) | ||
| 818 | 854 | ||
| 855 | /* Standards for Countries with 60Hz Line frequency */ | ||
| 819 | #define V4L2_STD_525_60 (V4L2_STD_PAL_M |\ | 856 | #define V4L2_STD_525_60 (V4L2_STD_PAL_M |\ |
| 820 | V4L2_STD_PAL_60 |\ | 857 | V4L2_STD_PAL_60 |\ |
| 821 | V4L2_STD_NTSC |\ | 858 | V4L2_STD_NTSC |\ |
| 822 | V4L2_STD_NTSC_443) | 859 | V4L2_STD_NTSC_443) |
| 860 | /* Standards for Countries with 50Hz Line frequency */ | ||
| 823 | #define V4L2_STD_625_50 (V4L2_STD_PAL |\ | 861 | #define V4L2_STD_625_50 (V4L2_STD_PAL |\ |
| 824 | V4L2_STD_PAL_N |\ | 862 | V4L2_STD_PAL_N |\ |
| 825 | V4L2_STD_PAL_Nc |\ | 863 | V4L2_STD_PAL_Nc |\ |
| 826 | V4L2_STD_SECAM) | 864 | V4L2_STD_SECAM) |
| 865 | |||
| 827 | #define V4L2_STD_ATSC (V4L2_STD_ATSC_8_VSB |\ | 866 | #define V4L2_STD_ATSC (V4L2_STD_ATSC_8_VSB |\ |
| 828 | V4L2_STD_ATSC_16_VSB) | 867 | V4L2_STD_ATSC_16_VSB) |
| 829 | 868 | /* Macros with none and all analog standards */ | |
| 830 | #define V4L2_STD_UNKNOWN 0 | 869 | #define V4L2_STD_UNKNOWN 0 |
| 831 | #define V4L2_STD_ALL (V4L2_STD_525_60 |\ | 870 | #define V4L2_STD_ALL (V4L2_STD_525_60 |\ |
| 832 | V4L2_STD_625_50) | 871 | V4L2_STD_625_50) |
| @@ -1082,6 +1121,7 @@ struct v4l2_querymenu { | |||
| 1082 | #define V4L2_CTRL_FLAG_INACTIVE 0x0010 | 1121 | #define V4L2_CTRL_FLAG_INACTIVE 0x0010 |
| 1083 | #define V4L2_CTRL_FLAG_SLIDER 0x0020 | 1122 | #define V4L2_CTRL_FLAG_SLIDER 0x0020 |
| 1084 | #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040 | 1123 | #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040 |
| 1124 | #define V4L2_CTRL_FLAG_VOLATILE 0x0080 | ||
| 1085 | 1125 | ||
| 1086 | /* Query flag, to be ORed with the control ID */ | 1126 | /* Query flag, to be ORed with the control ID */ |
| 1087 | #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000 | 1127 | #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000 |
| @@ -2006,6 +2046,7 @@ struct v4l2_streamparm { | |||
| 2006 | #define V4L2_EVENT_VSYNC 1 | 2046 | #define V4L2_EVENT_VSYNC 1 |
| 2007 | #define V4L2_EVENT_EOS 2 | 2047 | #define V4L2_EVENT_EOS 2 |
| 2008 | #define V4L2_EVENT_CTRL 3 | 2048 | #define V4L2_EVENT_CTRL 3 |
| 2049 | #define V4L2_EVENT_FRAME_SYNC 4 | ||
| 2009 | #define V4L2_EVENT_PRIVATE_START 0x08000000 | 2050 | #define V4L2_EVENT_PRIVATE_START 0x08000000 |
| 2010 | 2051 | ||
| 2011 | /* Payload for V4L2_EVENT_VSYNC */ | 2052 | /* Payload for V4L2_EVENT_VSYNC */ |
| @@ -2032,12 +2073,17 @@ struct v4l2_event_ctrl { | |||
| 2032 | __s32 default_value; | 2073 | __s32 default_value; |
| 2033 | }; | 2074 | }; |
| 2034 | 2075 | ||
| 2076 | struct v4l2_event_frame_sync { | ||
| 2077 | __u32 frame_sequence; | ||
| 2078 | }; | ||
| 2079 | |||
| 2035 | struct v4l2_event { | 2080 | struct v4l2_event { |
| 2036 | __u32 type; | 2081 | __u32 type; |
| 2037 | union { | 2082 | union { |
| 2038 | struct v4l2_event_vsync vsync; | 2083 | struct v4l2_event_vsync vsync; |
| 2039 | struct v4l2_event_ctrl ctrl; | 2084 | struct v4l2_event_ctrl ctrl; |
| 2040 | __u8 data[64]; | 2085 | struct v4l2_event_frame_sync frame_sync; |
| 2086 | __u8 data[64]; | ||
| 2041 | } u; | 2087 | } u; |
| 2042 | __u32 pending; | 2088 | __u32 pending; |
| 2043 | __u32 sequence; | 2089 | __u32 sequence; |
