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

TOMOYO Linux Cross Reference
Linux/include/media/drv-intf/cx2341x.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/media/drv-intf/cx2341x.h (Version linux-6.12-rc7) and /include/media/drv-intf/cx2341x.h (Version linux-3.10.108)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3     cx23415/6/8 header containing common defin    
  4                                                   
  5  */                                               
  6                                                   
  7 #ifndef CX2341X_H                                 
  8 #define CX2341X_H                                 
  9                                                   
 10 #include <media/v4l2-ctrls.h>                     
 11                                                   
 12 enum cx2341x_port {                               
 13         CX2341X_PORT_MEMORY    = 0,               
 14         CX2341X_PORT_STREAMING = 1,               
 15         CX2341X_PORT_SERIAL    = 2                
 16 };                                                
 17                                                   
 18 enum cx2341x_cap {                                
 19         CX2341X_CAP_HAS_SLICED_VBI = 1 << 0,      
 20         CX2341X_CAP_HAS_TS         = 1 << 1,      
 21         CX2341X_CAP_HAS_AC3        = 1 << 2,      
 22 };                                                
 23                                                   
 24 struct cx2341x_mpeg_params {                      
 25         /* misc */                                
 26         u32 capabilities;                         
 27         enum cx2341x_port port;                   
 28         u16 width;                                
 29         u16 height;                               
 30         u16 is_50hz;                              
 31                                                   
 32         /* stream */                              
 33         enum v4l2_mpeg_stream_type stream_type    
 34         enum v4l2_mpeg_stream_vbi_fmt stream_v    
 35         u16 stream_insert_nav_packets;            
 36                                                   
 37         /* audio */                               
 38         enum v4l2_mpeg_audio_sampling_freq aud    
 39         enum v4l2_mpeg_audio_encoding audio_en    
 40         enum v4l2_mpeg_audio_l2_bitrate audio_    
 41         enum v4l2_mpeg_audio_ac3_bitrate audio    
 42         enum v4l2_mpeg_audio_mode audio_mode;     
 43         enum v4l2_mpeg_audio_mode_extension au    
 44         enum v4l2_mpeg_audio_emphasis audio_em    
 45         enum v4l2_mpeg_audio_crc audio_crc;       
 46         u32 audio_properties;                     
 47         u16 audio_mute;                           
 48                                                   
 49         /* video */                               
 50         enum v4l2_mpeg_video_encoding video_en    
 51         enum v4l2_mpeg_video_aspect video_aspe    
 52         u16 video_b_frames;                       
 53         u16 video_gop_size;                       
 54         u16 video_gop_closure;                    
 55         enum v4l2_mpeg_video_bitrate_mode vide    
 56         u32 video_bitrate;                        
 57         u32 video_bitrate_peak;                   
 58         u16 video_temporal_decimation;            
 59         u16 video_mute;                           
 60         u32 video_mute_yuv;                       
 61                                                   
 62         /* encoding filters */                    
 63         enum v4l2_mpeg_cx2341x_video_spatial_f    
 64         u16 video_spatial_filter;                 
 65         enum v4l2_mpeg_cx2341x_video_luma_spat    
 66         enum v4l2_mpeg_cx2341x_video_chroma_sp    
 67         enum v4l2_mpeg_cx2341x_video_temporal_    
 68         u16 video_temporal_filter;                
 69         enum v4l2_mpeg_cx2341x_video_median_fi    
 70         u16 video_luma_median_filter_top;         
 71         u16 video_luma_median_filter_bottom;      
 72         u16 video_chroma_median_filter_top;       
 73         u16 video_chroma_median_filter_bottom;    
 74 };                                                
 75                                                   
 76 #define CX2341X_MBOX_MAX_DATA 16                  
 77                                                   
 78 extern const u32 cx2341x_mpeg_ctrls[];            
 79 typedef int (*cx2341x_mbox_func)(void *priv, u    
 80                 u32 data[CX2341X_MBOX_MAX_DATA    
 81 int cx2341x_update(void *priv, cx2341x_mbox_fu    
 82                 const struct cx2341x_mpeg_para    
 83                 const struct cx2341x_mpeg_para    
 84 int cx2341x_ctrl_query(const struct cx2341x_mp    
 85                 struct v4l2_queryctrl *qctrl);    
 86 const char * const *cx2341x_ctrl_get_menu(cons    
 87 int cx2341x_ext_ctrls(struct cx2341x_mpeg_para    
 88                 struct v4l2_ext_controls *ctrl    
 89 void cx2341x_fill_defaults(struct cx2341x_mpeg    
 90 void cx2341x_log_status(const struct cx2341x_m    
 91                                                   
 92 struct cx2341x_handler;                           
 93                                                   
 94 struct cx2341x_handler_ops {                      
 95         /* needed for the video clock freq */     
 96         int (*s_audio_sampling_freq)(struct cx    
 97         /* needed for dualwatch */                
 98         int (*s_audio_mode)(struct cx2341x_han    
 99         /* needed for setting up the video res    
100         int (*s_video_encoding)(struct cx2341x    
101         /* needed for setting up the sliced vb    
102         int (*s_stream_vbi_fmt)(struct cx2341x    
103 };                                                
104                                                   
105 struct cx2341x_handler {                          
106         u32 capabilities;                         
107         enum cx2341x_port port;                   
108         u16 width;                                
109         u16 height;                               
110         u16 is_50hz;                              
111         u32 audio_properties;                     
112                                                   
113         struct v4l2_ctrl_handler hdl;             
114         void *priv;                               
115         cx2341x_mbox_func func;                   
116         const struct cx2341x_handler_ops *ops;    
117                                                   
118         struct v4l2_ctrl *stream_vbi_fmt;         
119                                                   
120         struct {                                  
121                 /* audio cluster */               
122                 struct v4l2_ctrl *audio_sampli    
123                 struct v4l2_ctrl *audio_encodi    
124                 struct v4l2_ctrl *audio_l2_bit    
125                 struct v4l2_ctrl *audio_mode;     
126                 struct v4l2_ctrl *audio_mode_e    
127                 struct v4l2_ctrl *audio_emphas    
128                 struct v4l2_ctrl *audio_crc;      
129                 struct v4l2_ctrl *audio_ac3_bi    
130         };                                        
131                                                   
132         struct {                                  
133                 /* video gop cluster */           
134                 struct v4l2_ctrl *video_b_fram    
135                 struct v4l2_ctrl *video_gop_si    
136         };                                        
137                                                   
138         struct {                                  
139                 /* stream type cluster */         
140                 struct v4l2_ctrl *stream_type;    
141                 struct v4l2_ctrl *video_encodi    
142                 struct v4l2_ctrl *video_bitrat    
143                 struct v4l2_ctrl *video_bitrat    
144                 struct v4l2_ctrl *video_bitrat    
145         };                                        
146                                                   
147         struct {                                  
148                 /* video mute cluster */          
149                 struct v4l2_ctrl *video_mute;     
150                 struct v4l2_ctrl *video_mute_y    
151         };                                        
152                                                   
153         struct {                                  
154                 /* video filter mode cluster *    
155                 struct v4l2_ctrl *video_spatia    
156                 struct v4l2_ctrl *video_tempor    
157                 struct v4l2_ctrl *video_median    
158         };                                        
159                                                   
160         struct {                                  
161                 /* video filter type cluster *    
162                 struct v4l2_ctrl *video_luma_s    
163                 struct v4l2_ctrl *video_chroma    
164         };                                        
165                                                   
166         struct  {                                 
167                 /* video filter cluster */        
168                 struct v4l2_ctrl *video_spatia    
169                 struct v4l2_ctrl *video_tempor    
170         };                                        
171                                                   
172         struct {                                  
173                 /* video median cluster */        
174                 struct v4l2_ctrl *video_luma_m    
175                 struct v4l2_ctrl *video_luma_m    
176                 struct v4l2_ctrl *video_chroma    
177                 struct v4l2_ctrl *video_chroma    
178         };                                        
179 };                                                
180                                                   
181 int cx2341x_handler_init(struct cx2341x_handle    
182                          unsigned nr_of_contro    
183 void cx2341x_handler_set_50hz(struct cx2341x_h    
184 int cx2341x_handler_setup(struct cx2341x_handl    
185 void cx2341x_handler_set_busy(struct cx2341x_h    
186                                                   
187 /* Firmware names */                              
188 #define CX2341X_FIRM_ENC_FILENAME "v4l-cx2341x    
189 /* Decoder firmware for the cx23415 only */       
190 #define CX2341X_FIRM_DEC_FILENAME "v4l-cx2341x    
191                                                   
192 /* Firmware API commands */                       
193                                                   
194 /* MPEG decoder API, specific to the cx23415 *    
195 #define CX2341X_DEC_PING_FW                       
196 #define CX2341X_DEC_START_PLAYBACK                
197 #define CX2341X_DEC_STOP_PLAYBACK                 
198 #define CX2341X_DEC_SET_PLAYBACK_SPEED            
199 #define CX2341X_DEC_STEP_VIDEO                    
200 #define CX2341X_DEC_SET_DMA_BLOCK_SIZE            
201 #define CX2341X_DEC_GET_XFER_INFO                 
202 #define CX2341X_DEC_GET_DMA_STATUS                
203 #define CX2341X_DEC_SCHED_DMA_FROM_HOST           
204 #define CX2341X_DEC_PAUSE_PLAYBACK                
205 #define CX2341X_DEC_HALT_FW                       
206 #define CX2341X_DEC_SET_STANDARD                  
207 #define CX2341X_DEC_GET_VERSION                   
208 #define CX2341X_DEC_SET_STREAM_INPUT              
209 #define CX2341X_DEC_GET_TIMING_INFO               
210 #define CX2341X_DEC_SET_AUDIO_MODE                
211 #define CX2341X_DEC_SET_EVENT_NOTIFICATION        
212 #define CX2341X_DEC_SET_DISPLAY_BUFFERS           
213 #define CX2341X_DEC_EXTRACT_VBI                   
214 #define CX2341X_DEC_SET_DECODER_SOURCE            
215 #define CX2341X_DEC_SET_PREBUFFERING              
216                                                   
217 /* MPEG encoder API */                            
218 #define CX2341X_ENC_PING_FW                       
219 #define CX2341X_ENC_START_CAPTURE                 
220 #define CX2341X_ENC_STOP_CAPTURE                  
221 #define CX2341X_ENC_SET_AUDIO_ID                  
222 #define CX2341X_ENC_SET_VIDEO_ID                  
223 #define CX2341X_ENC_SET_PCR_ID                    
224 #define CX2341X_ENC_SET_FRAME_RATE                
225 #define CX2341X_ENC_SET_FRAME_SIZE                
226 #define CX2341X_ENC_SET_BIT_RATE                  
227 #define CX2341X_ENC_SET_GOP_PROPERTIES            
228 #define CX2341X_ENC_SET_ASPECT_RATIO              
229 #define CX2341X_ENC_SET_DNR_FILTER_MODE           
230 #define CX2341X_ENC_SET_DNR_FILTER_PROPS          
231 #define CX2341X_ENC_SET_CORING_LEVELS             
232 #define CX2341X_ENC_SET_SPATIAL_FILTER_TYPE       
233 #define CX2341X_ENC_SET_VBI_LINE                  
234 #define CX2341X_ENC_SET_STREAM_TYPE               
235 #define CX2341X_ENC_SET_OUTPUT_PORT               
236 #define CX2341X_ENC_SET_AUDIO_PROPERTIES          
237 #define CX2341X_ENC_HALT_FW                       
238 #define CX2341X_ENC_GET_VERSION                   
239 #define CX2341X_ENC_SET_GOP_CLOSURE               
240 #define CX2341X_ENC_GET_SEQ_END                   
241 #define CX2341X_ENC_SET_PGM_INDEX_INFO            
242 #define CX2341X_ENC_SET_VBI_CONFIG                
243 #define CX2341X_ENC_SET_DMA_BLOCK_SIZE            
244 #define CX2341X_ENC_GET_PREV_DMA_INFO_MB_10       
245 #define CX2341X_ENC_GET_PREV_DMA_INFO_MB_9        
246 #define CX2341X_ENC_SCHED_DMA_TO_HOST             
247 #define CX2341X_ENC_INITIALIZE_INPUT              
248 #define CX2341X_ENC_SET_FRAME_DROP_RATE           
249 #define CX2341X_ENC_PAUSE_ENCODER                 
250 #define CX2341X_ENC_REFRESH_INPUT                 
251 #define CX2341X_ENC_SET_COPYRIGHT                 
252 #define CX2341X_ENC_SET_EVENT_NOTIFICATION        
253 #define CX2341X_ENC_SET_NUM_VSYNC_LINES           
254 #define CX2341X_ENC_SET_PLACEHOLDER               
255 #define CX2341X_ENC_MUTE_VIDEO                    
256 #define CX2341X_ENC_MUTE_AUDIO                    
257 #define CX2341X_ENC_SET_VERT_CROP_LINE            
258 #define CX2341X_ENC_MISC                          
259                                                   
260 /* OSD API, specific to the cx23415 */            
261 #define CX2341X_OSD_GET_FRAMEBUFFER               
262 #define CX2341X_OSD_GET_PIXEL_FORMAT              
263 #define CX2341X_OSD_SET_PIXEL_FORMAT              
264 #define CX2341X_OSD_GET_STATE                     
265 #define CX2341X_OSD_SET_STATE                     
266 #define CX2341X_OSD_GET_OSD_COORDS                
267 #define CX2341X_OSD_SET_OSD_COORDS                
268 #define CX2341X_OSD_GET_SCREEN_COORDS             
269 #define CX2341X_OSD_SET_SCREEN_COORDS             
270 #define CX2341X_OSD_GET_GLOBAL_ALPHA              
271 #define CX2341X_OSD_SET_GLOBAL_ALPHA              
272 #define CX2341X_OSD_SET_BLEND_COORDS              
273 #define CX2341X_OSD_GET_FLICKER_STATE             
274 #define CX2341X_OSD_SET_FLICKER_STATE             
275 #define CX2341X_OSD_BLT_COPY                      
276 #define CX2341X_OSD_BLT_FILL                      
277 #define CX2341X_OSD_BLT_TEXT                      
278 #define CX2341X_OSD_SET_FRAMEBUFFER_WINDOW        
279 #define CX2341X_OSD_SET_CHROMA_KEY                
280 #define CX2341X_OSD_GET_ALPHA_CONTENT_INDEX       
281 #define CX2341X_OSD_SET_ALPHA_CONTENT_INDEX       
282                                                   
283 #endif /* CX2341X_H */                            
284                                                   

~ [ 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