~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/media/v4l2-mc.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/media/v4l2-mc.h (Version linux-6.11.5) and /include/media/v4l2-mc.h (Version linux-3.10.108)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  * v4l2-mc.h - Media Controller V4L2 types and    
  4  *                                                
  5  * Copyright (C) 2016 Mauro Carvalho Chehab <m    
  6  * Copyright (C) 2006-2010 Nokia Corporation      
  7  * Copyright (c) 2016 Intel Corporation.          
  8  */                                               
  9                                                   
 10 #ifndef _V4L2_MC_H                                
 11 #define _V4L2_MC_H                                
 12                                                   
 13 #include <media/media-device.h>                   
 14 #include <media/v4l2-dev.h>                       
 15 #include <media/v4l2-subdev.h>                    
 16 #include <linux/types.h>                          
 17                                                   
 18 /* We don't need to include pci.h or usb.h her    
 19 struct pci_dev;                                   
 20 struct usb_device;                                
 21                                                   
 22 #ifdef CONFIG_MEDIA_CONTROLLER                    
 23 /**                                               
 24  * v4l2_mc_create_media_graph() - create Media    
 25  *                                                
 26  * @mdev:       pointer to the &media_device s    
 27  *                                                
 28  * Add links between the entities commonly fou    
 29  * the V4L2 side: camera sensors, audio and vi    
 30  * analog TV decoder and I/O entities (video,     
 31  *                                                
 32  * .. note::                                      
 33  *                                                
 34  *    Webcams are modelled on a very simple wa    
 35  *    connected directly to the I/O entity. Al    
 36  *    scaler and crop HW are hidden. While suc    
 37  *    interface centric PC-consumer's hardware    
 38  *    hardware should not use this routine, as    
 39  */                                               
 40 int v4l2_mc_create_media_graph(struct media_de    
 41                                                   
 42 /**                                               
 43  * v4l_enable_media_source() -  Hold media sou    
 44  *                              if free           
 45  *                                                
 46  * @vdev:       pointer to struct video_device    
 47  *                                                
 48  * This interface calls enable_source handler     
 49  * media source is free for use. The enable_so    
 50  * responsible for checking is the media sourc    
 51  * start a pipeline between the media source a    
 52  * entity associated with the video device. Th    
 53  * should be called from v4l2-core and dvb-cor    
 54  * that change the source configuration.          
 55  *                                                
 56  * Return: returns zero on success or a negati    
 57  */                                               
 58 int v4l_enable_media_source(struct video_devic    
 59                                                   
 60 /**                                               
 61  * v4l_disable_media_source() - Release media     
 62  *                                                
 63  * @vdev:       pointer to struct video_device    
 64  *                                                
 65  * This interface calls disable_source handler    
 66  * the media source. The disable_source handle    
 67  * active media pipeline between the media sou    
 68  * media entity associated with the video devi    
 69  *                                                
 70  * Return: returns zero on success or a negati    
 71  */                                               
 72 void v4l_disable_media_source(struct video_dev    
 73                                                   
 74 /*                                                
 75  * v4l_vb2q_enable_media_tuner -  Hold media s    
 76  *                                if free.        
 77  * @q - pointer to struct vb2_queue               
 78  *                                                
 79  * Wrapper for v4l_enable_media_source(). This    
 80  * be called from v4l2-core to enable the medi    
 81  * pointer to struct vb2_queue as the input ar    
 82  * v4l2-core interfaces don't have access to v    
 83  * this interface finds the struct video_devic    
 84  * calls v4l_enable_media_source().               
 85  */                                               
 86 int v4l_vb2q_enable_media_source(struct vb2_qu    
 87                                                   
 88 /**                                               
 89  * v4l2_create_fwnode_links_to_pad - Create fw    
 90  *                                   source su    
 91  *                                                
 92  * @src_sd: pointer to a source subdev            
 93  * @sink:  pointer to a sink pad                  
 94  * @flags: the link flags                         
 95  *                                                
 96  * This function searches for fwnode endpoint     
 97  * subdevice to a single sink pad, and if suit    
 98  * translates them into media links to that pa    
 99  * called by the sink, in its v4l2-async notif    
100  * links from a bound source subdevice.           
101  *                                                
102  * The @flags argument specifies the link flag    
103  * the flags are valid regardless of the numbe    
104  * For instance, setting the MEDIA_LNK_FL_ENAB    
105  * links to be enabled, which isn't valid if m    
106  *                                                
107  * .. note::                                      
108  *                                                
109  *    Any sink subdevice that calls this funct    
110  *    .get_fwnode_pad media operation in order    
111  *    to the sink are owned by the sink.          
112  *                                                
113  * Return 0 on success or a negative error cod    
114  */                                               
115 int v4l2_create_fwnode_links_to_pad(struct v4l    
116                                     struct med    
117                                                   
118 /**                                               
119  * v4l2_create_fwnode_links - Create fwnode-ba    
120  *                            subdev to a sink    
121  *                                                
122  * @src_sd: pointer to a source subdevice         
123  * @sink_sd: pointer to a sink subdevice          
124  *                                                
125  * This function searches for any and all fwno    
126  * between source and sink subdevices, and tra    
127  * links. The function can be called by the si    
128  * v4l2-async notifier subdev bound callback,     
129  * a bound source subdevice.                      
130  *                                                
131  * .. note::                                      
132  *                                                
133  *    Any sink subdevice that calls this funct    
134  *    .get_fwnode_pad media operation in order    
135  *    to the sink are owned by the sink.          
136  *                                                
137  * Return 0 on success or a negative error cod    
138  */                                               
139 int v4l2_create_fwnode_links(struct v4l2_subde    
140                              struct v4l2_subde    
141                                                   
142 /**                                               
143  * v4l2_pipeline_pm_get - Increase the use cou    
144  * @entity: The root entity of a pipeline         
145  *                                                
146  * THIS FUNCTION IS DEPRECATED. DO NOT USE IN     
147  * ON SUB-DEVICE DRIVERS INSTEAD.                 
148  *                                                
149  * Update the use count of all entities in the    
150  *                                                
151  * This function is intended to be called in v    
152  * struct media_entity.use_count to track the     
153  * of this function should be paired with v4l2    
154  *                                                
155  * Return 0 on success or a negative error cod    
156  */                                               
157 int v4l2_pipeline_pm_get(struct media_entity *    
158                                                   
159 /**                                               
160  * v4l2_pipeline_pm_put - Decrease the use cou    
161  * @entity: The root entity of a pipeline         
162  *                                                
163  * THIS FUNCTION IS DEPRECATED. DO NOT USE IN     
164  * ON SUB-DEVICE DRIVERS INSTEAD.                 
165  *                                                
166  * Update the use count of all entities in the    
167  *                                                
168  * This function is intended to be called in v    
169  * struct media_entity.use_count to track the     
170  * of this function should be paired with v4l2    
171  */                                               
172 void v4l2_pipeline_pm_put(struct media_entity     
173                                                   
174                                                   
175 /**                                               
176  * v4l2_pipeline_link_notify - Link management    
177  * @link: The link                                
178  * @flags: New link flags that will be applied    
179  * @notification: The link's state change noti    
180  *                                                
181  * React to link management on powered pipelin    
182  * all entities in the source and sink sides o    
183  * on or off accordingly. The use of this func    
184  * with v4l2_pipeline_pm_{get,put}().             
185  *                                                
186  * Return 0 on success or a negative error cod    
187  * off is assumed to never fail. This function    
188  * events.                                        
189  */                                               
190 int v4l2_pipeline_link_notify(struct media_lin    
191                               unsigned int not    
192                                                   
193 #else /* CONFIG_MEDIA_CONTROLLER */               
194                                                   
195 static inline int v4l2_mc_create_media_graph(s    
196 {                                                 
197         return 0;                                 
198 }                                                 
199                                                   
200 static inline int v4l_enable_media_source(stru    
201 {                                                 
202         return 0;                                 
203 }                                                 
204                                                   
205 static inline void v4l_disable_media_source(st    
206 {                                                 
207 }                                                 
208                                                   
209 static inline int v4l_vb2q_enable_media_source    
210 {                                                 
211         return 0;                                 
212 }                                                 
213                                                   
214 static inline int v4l2_pipeline_pm_get(struct     
215 {                                                 
216         return 0;                                 
217 }                                                 
218                                                   
219 static inline void v4l2_pipeline_pm_put(struct    
220 {}                                                
221                                                   
222 static inline int v4l2_pipeline_link_notify(st    
223                                             un    
224 {                                                 
225         return 0;                                 
226 }                                                 
227                                                   
228 #endif /* CONFIG_MEDIA_CONTROLLER */              
229 #endif /* _V4L2_MC_H */                           
230                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php