aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-10-09 13:00:54 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-10-09 13:00:54 -0400
commita66d05d504a24894a8fdf11e4569752f313e5764 (patch)
tree2bb40c1f6c301b231d7aeaad08c190aa5a82ba1f /include/media
parentbfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (diff)
parent5563caaf8b8cd22e35997d5d74cb3609df86b223 (diff)
Merge branch 'patchwork' into v4l_for_linus
* patchwork: (544 commits) [media] ir-hix5hd2: fix build on c6x arch [media] pt3: fix DTV FE I2C driver load error paths Revert "[media] media: em28xx - remove reset_resume interface" [media] exynos4-is: fix some warnings when compiling on arm64 [media] usb drivers: use %zu instead of %zd [media] pci drivers: use %zu instead of %zd [media] dvb-frontends: use %zu instead of %zd [media] s5p-mfc: Fix several printk warnings [media] s5p_mfc_opr: Fix warnings [media] ti-vpe: Fix typecast [media] s3c-camif: fix dma_addr_t printks [media] s5p_mfc_opr_v6: get rid of warnings when compiled with 64 bits [media] s5p_mfc_opr_v5: Fix lots of warnings on x86_64 [media] em28xx: Fix identation [media] drxd: remove a dead code [media] saa7146: remove return after BUG() [media] cx88: remove return after BUG() [media] cx88: fix cards table CodingStyle [media] radio-sf16fmr2: declare some structs as static [media] radio-sf16fmi: declare pnp_attached as static ... Conflicts: Documentation/DocBook/media/v4l/compat.xml
Diffstat (limited to 'include/media')
-rw-r--r--include/media/davinci/dm644x_ccdc.h2
-rw-r--r--include/media/omap3isp.h3
-rw-r--r--include/media/rc-map.h1
-rw-r--r--include/media/videobuf2-core.h15
4 files changed, 18 insertions, 3 deletions
diff --git a/include/media/davinci/dm644x_ccdc.h b/include/media/davinci/dm644x_ccdc.h
index 852e96c4bb46..984fb79031de 100644
--- a/include/media/davinci/dm644x_ccdc.h
+++ b/include/media/davinci/dm644x_ccdc.h
@@ -114,7 +114,7 @@ struct ccdc_fault_pixel {
114 /* Number of fault pixel */ 114 /* Number of fault pixel */
115 unsigned short fp_num; 115 unsigned short fp_num;
116 /* Address of fault pixel table */ 116 /* Address of fault pixel table */
117 unsigned int fpc_table_addr; 117 unsigned long fpc_table_addr;
118}; 118};
119 119
120/* Structure for CCDC configuration parameters for raw capture mode passed 120/* Structure for CCDC configuration parameters for raw capture mode passed
diff --git a/include/media/omap3isp.h b/include/media/omap3isp.h
index c9d06d9f7e6e..398279dd1922 100644
--- a/include/media/omap3isp.h
+++ b/include/media/omap3isp.h
@@ -57,6 +57,8 @@ enum {
57 * 0 - Active high, 1 - Active low 57 * 0 - Active high, 1 - Active low
58 * @vs_pol: Vertical synchronization polarity 58 * @vs_pol: Vertical synchronization polarity
59 * 0 - Active high, 1 - Active low 59 * 0 - Active high, 1 - Active low
60 * @fld_pol: Field signal polarity
61 * 0 - Positive, 1 - Negative
60 * @data_pol: Data polarity 62 * @data_pol: Data polarity
61 * 0 - Normal, 1 - One's complement 63 * 0 - Normal, 1 - One's complement
62 */ 64 */
@@ -65,6 +67,7 @@ struct isp_parallel_platform_data {
65 unsigned int clk_pol:1; 67 unsigned int clk_pol:1;
66 unsigned int hs_pol:1; 68 unsigned int hs_pol:1;
67 unsigned int vs_pol:1; 69 unsigned int vs_pol:1;
70 unsigned int fld_pol:1;
68 unsigned int data_pol:1; 71 unsigned int data_pol:1;
69}; 72};
70 73
diff --git a/include/media/rc-map.h b/include/media/rc-map.h
index 80f951890b4c..e7a1514075ec 100644
--- a/include/media/rc-map.h
+++ b/include/media/rc-map.h
@@ -135,6 +135,7 @@ void rc_map_init(void);
135#define RC_MAP_DM1105_NEC "rc-dm1105-nec" 135#define RC_MAP_DM1105_NEC "rc-dm1105-nec"
136#define RC_MAP_DNTV_LIVE_DVBT_PRO "rc-dntv-live-dvbt-pro" 136#define RC_MAP_DNTV_LIVE_DVBT_PRO "rc-dntv-live-dvbt-pro"
137#define RC_MAP_DNTV_LIVE_DVB_T "rc-dntv-live-dvb-t" 137#define RC_MAP_DNTV_LIVE_DVB_T "rc-dntv-live-dvb-t"
138#define RC_MAP_DVBSKY "rc-dvbsky"
138#define RC_MAP_EMPTY "rc-empty" 139#define RC_MAP_EMPTY "rc-empty"
139#define RC_MAP_EM_TERRATEC "rc-em-terratec" 140#define RC_MAP_EM_TERRATEC "rc-em-terratec"
140#define RC_MAP_ENCORE_ENLTV2 "rc-encore-enltv2" 141#define RC_MAP_ENCORE_ENLTV2 "rc-encore-enltv2"
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index 2fefcf491aa8..6ef2d01197da 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -356,8 +356,8 @@ struct v4l2_fh;
356 * @buf_struct_size: size of the driver-specific buffer structure; 356 * @buf_struct_size: size of the driver-specific buffer structure;
357 * "0" indicates the driver doesn't want to use a custom buffer 357 * "0" indicates the driver doesn't want to use a custom buffer
358 * structure type, so sizeof(struct vb2_buffer) will is used 358 * structure type, so sizeof(struct vb2_buffer) will is used
359 * @timestamp_flags: Timestamp flags; V4L2_BUF_FLAGS_TIMESTAMP_* and 359 * @timestamp_flags: Timestamp flags; V4L2_BUF_FLAG_TIMESTAMP_* and
360 * V4L2_BUF_FLAGS_TSTAMP_SRC_* 360 * V4L2_BUF_FLAG_TSTAMP_SRC_*
361 * @gfp_flags: additional gfp flags used when allocating the buffers. 361 * @gfp_flags: additional gfp flags used when allocating the buffers.
362 * Typically this is 0, but it may be e.g. GFP_DMA or __GFP_DMA32 362 * Typically this is 0, but it may be e.g. GFP_DMA or __GFP_DMA32
363 * to force the buffer allocation to a specific memory zone. 363 * to force the buffer allocation to a specific memory zone.
@@ -366,6 +366,7 @@ struct v4l2_fh;
366 * cannot be started unless at least this number of buffers 366 * cannot be started unless at least this number of buffers
367 * have been queued into the driver. 367 * have been queued into the driver.
368 * 368 *
369 * @mmap_lock: private mutex used when buffers are allocated/freed/mmapped
369 * @memory: current memory type used 370 * @memory: current memory type used
370 * @bufs: videobuf buffer structures 371 * @bufs: videobuf buffer structures
371 * @num_buffers: number of allocated/used buffers 372 * @num_buffers: number of allocated/used buffers
@@ -402,6 +403,7 @@ struct vb2_queue {
402 u32 min_buffers_needed; 403 u32 min_buffers_needed;
403 404
404/* private: internal use only */ 405/* private: internal use only */
406 struct mutex mmap_lock;
405 enum v4l2_memory memory; 407 enum v4l2_memory memory;
406 struct vb2_buffer *bufs[VIDEO_MAX_FRAME]; 408 struct vb2_buffer *bufs[VIDEO_MAX_FRAME];
407 unsigned int num_buffers; 409 unsigned int num_buffers;
@@ -592,6 +594,15 @@ vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no)
592 return 0; 594 return 0;
593} 595}
594 596
597/**
598 * vb2_start_streaming_called() - return streaming status of driver
599 * @q: videobuf queue
600 */
601static inline bool vb2_start_streaming_called(struct vb2_queue *q)
602{
603 return q->start_streaming_called;
604}
605
595/* 606/*
596 * The following functions are not part of the vb2 core API, but are simple 607 * The following functions are not part of the vb2 core API, but are simple
597 * helper functions that you can use in your struct v4l2_file_operations, 608 * helper functions that you can use in your struct v4l2_file_operations,