blob: 889ed45be4ca63165e64eb6aef87a8699a821643 [file] [log] [blame]
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +01001What: /config/usb-gadget/gadget/functions/uvc.name
2Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +02003KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +01004Description: UVC function directory
5
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +01006 =================== =============================
7 streaming_maxburst 0..15 (ss only)
8 streaming_maxpacket 1..1023 (fs), 1..3072 (hs/ss)
9 streaming_interval 1..16
10 =================== =============================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010011
12What: /config/usb-gadget/gadget/functions/uvc.name/control
13Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020014KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010015Description: Control descriptors
16
Laurent Pinchartbf715442018-05-23 18:47:56 +030017 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010018
19 ================ =============================
20 bInterfaceNumber USB interface number for this
21 streaming interface
22 ================ =============================
Laurent Pinchartbf715442018-05-23 18:47:56 +030023
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010024What: /config/usb-gadget/gadget/functions/uvc.name/control/class
25Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020026KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010027Description: Class descriptors
28
29What: /config/usb-gadget/gadget/functions/uvc.name/control/class/ss
30Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020031KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010032Description: Super speed control class descriptors
33
34What: /config/usb-gadget/gadget/functions/uvc.name/control/class/fs
35Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020036KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010037Description: Full speed control class descriptors
38
39What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal
40Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020041KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010042Description: Terminal descriptors
43
44What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output
45Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020046KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010047Description: Output terminal descriptors
48
49What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output/default
50Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020051KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010052Description: Default output terminal descriptors
53
54 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010055
56 ============== =============================================
57 iTerminal index of string descriptor
Mauro Carvalho Chehab54a19b42020-10-30 08:40:50 +010058 bSourceID id of the terminal to which this terminal
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010059 is connected
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010060 bAssocTerminal id of the input terminal to which this output
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010061 terminal is associated
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010062 wTerminalType terminal type
63 bTerminalID a non-zero id of this terminal
64 ============== =============================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010065
66What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera
67Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020068KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010069Description: Camera terminal descriptors
70
71What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera/default
72Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020073KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010074Description: Default camera terminal descriptors
75
76 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010077
78 ======================== ====================================
79 bmControls bitmap specifying which controls are
80 supported for the video stream
81 wOcularFocalLength the value of Locular
82 wObjectiveFocalLengthMax the value of Lmin
83 wObjectiveFocalLengthMin the value of Lmax
84 iTerminal index of string descriptor
85 bAssocTerminal id of the output terminal to which
86 this terminal is connected
87 wTerminalType terminal type
88 bTerminalID a non-zero id of this terminal
89 ======================== ====================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010090
91What: /config/usb-gadget/gadget/functions/uvc.name/control/processing
92Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020093KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010094Description: Processing unit descriptors
95
96What: /config/usb-gadget/gadget/functions/uvc.name/control/processing/default
97Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +020098KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +010099Description: Default processing unit descriptors
100
101 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100102
103 =============== ========================================
104 iProcessing index of string descriptor
105 bmControls bitmap specifying which controls are
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100106 supported for the video stream
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100107 wMaxMultiplier maximum digital magnification x100
108 bSourceID id of the terminal to which this unit is
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100109 connected
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100110 bUnitID a non-zero id of this unit
111 =============== ========================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100112
113What: /config/usb-gadget/gadget/functions/uvc.name/control/header
114Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200115KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100116Description: Control header descriptors
117
118What: /config/usb-gadget/gadget/functions/uvc.name/control/header/name
119Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200120KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100121Description: Specific control header descriptors
122
123dwClockFrequency
124bcdUVC
125What: /config/usb-gadget/gadget/functions/uvc.name/streaming
126Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200127KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100128Description: Streaming descriptors
129
Laurent Pinchartbf715442018-05-23 18:47:56 +0300130 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100131
132 ================ =============================
133 bInterfaceNumber USB interface number for this
134 streaming interface
135 ================ =============================
Laurent Pinchartbf715442018-05-23 18:47:56 +0300136
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100137What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class
138Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200139KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100140Description: Streaming class descriptors
141
142What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class/ss
143Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200144KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100145Description: Super speed streaming class descriptors
146
147What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class/hs
148Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200149KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100150Description: High speed streaming class descriptors
151
152What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class/fs
153Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200154KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100155Description: Full speed streaming class descriptors
156
157What: /config/usb-gadget/gadget/functions/uvc.name/streaming/color_matching
158Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200159KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100160Description: Color matching descriptors
161
162What: /config/usb-gadget/gadget/functions/uvc.name/streaming/color_matching/default
163Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200164KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100165Description: Default color matching descriptors
166
167 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100168
169 ======================== ======================================
170 bMatrixCoefficients matrix used to compute luma and
171 chroma values from the color primaries
172 bTransferCharacteristics optoelectronic transfer
Carlos Bilbao3e42d1d2021-05-13 09:31:10 -0400173 characteristic of the source picture,
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100174 also called the gamma function
175 bColorPrimaries color primaries and the reference
176 white
177 ======================== ======================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100178
179What: /config/usb-gadget/gadget/functions/uvc.name/streaming/mjpeg
180Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200181KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100182Description: MJPEG format descriptors
183
184What: /config/usb-gadget/gadget/functions/uvc.name/streaming/mjpeg/name
185Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200186KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100187Description: Specific MJPEG format descriptors
188
189 All attributes read only,
190 except bmaControls and bDefaultFrameIndex:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100191
192 =================== =====================================
193 bFormatIndex unique id for this format descriptor;
Laurent Pinchart61ff10e2018-05-27 00:51:57 +0300194 only defined after parent header is
195 linked into the streaming class;
196 read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100197 bmaControls this format's data for bmaControls in
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100198 the streaming header
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100199 bmInterfaceFlags specifies interlace information,
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100200 read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100201 bAspectRatioY the X dimension of the picture aspect
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100202 ratio, read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100203 bAspectRatioX the Y dimension of the picture aspect
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100204 ratio, read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100205 bmFlags characteristics of this format,
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100206 read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100207 bDefaultFrameIndex optimum frame index for this stream
208 =================== =====================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100209
210What: /config/usb-gadget/gadget/functions/uvc.name/streaming/mjpeg/name/name
211Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200212KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100213Description: Specific MJPEG frame descriptors
214
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100215 ========================= =====================================
216 bFrameIndex unique id for this framedescriptor;
217 only defined after parent format is
218 linked into the streaming header;
219 read-only
220 dwFrameInterval indicates how frame interval can be
221 programmed; a number of values
222 separated by newline can be specified
223 dwDefaultFrameInterval the frame interval the device would
224 like to use as default
225 dwMaxVideoFrameBufferSize the maximum number of bytes the
226 compressor will produce for a video
227 frame or still image
228 dwMaxBitRate the maximum bit rate at the shortest
229 frame interval in bps
230 dwMinBitRate the minimum bit rate at the longest
231 frame interval in bps
232 wHeight height of decoded bitmap frame in px
233 wWidth width of decoded bitmam frame in px
234 bmCapabilities still image support, fixed frame-rate
235 support
236 ========================= =====================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100237
238What: /config/usb-gadget/gadget/functions/uvc.name/streaming/uncompressed
239Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200240KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100241Description: Uncompressed format descriptors
242
243What: /config/usb-gadget/gadget/functions/uvc.name/streaming/uncompressed/name
244Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200245KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100246Description: Specific uncompressed format descriptors
247
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100248 ================== =======================================
249 bFormatIndex unique id for this format descriptor;
Laurent Pinchart61ff10e2018-05-27 00:51:57 +0300250 only defined after parent header is
251 linked into the streaming class;
252 read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100253 bmaControls this format's data for bmaControls in
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100254 the streaming header
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100255 bmInterfaceFlags specifies interlace information,
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100256 read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100257 bAspectRatioY the X dimension of the picture aspect
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100258 ratio, read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100259 bAspectRatioX the Y dimension of the picture aspect
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100260 ratio, read-only
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100261 bDefaultFrameIndex optimum frame index for this stream
262 bBitsPerPixel number of bits per pixel used to
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100263 specify color in the decoded video
264 frame
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100265 guidFormat globally unique id used to identify
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100266 stream-encoding format
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100267 ================== =======================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100268
269What: /config/usb-gadget/gadget/functions/uvc.name/streaming/uncompressed/name/name
270Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200271KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100272Description: Specific uncompressed frame descriptors
273
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100274 ========================= =====================================
275 bFrameIndex unique id for this framedescriptor;
276 only defined after parent format is
277 linked into the streaming header;
278 read-only
279 dwFrameInterval indicates how frame interval can be
280 programmed; a number of values
281 separated by newline can be specified
282 dwDefaultFrameInterval the frame interval the device would
283 like to use as default
284 dwMaxVideoFrameBufferSize the maximum number of bytes the
285 compressor will produce for a video
286 frame or still image
287 dwMaxBitRate the maximum bit rate at the shortest
288 frame interval in bps
289 dwMinBitRate the minimum bit rate at the longest
290 frame interval in bps
291 wHeight height of decoded bitmap frame in px
292 wWidth width of decoded bitmam frame in px
293 bmCapabilities still image support, fixed frame-rate
294 support
295 ========================= =====================================
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100296
297What: /config/usb-gadget/gadget/functions/uvc.name/streaming/header
298Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200299KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100300Description: Streaming header descriptors
301
302What: /config/usb-gadget/gadget/functions/uvc.name/streaming/header/name
303Date: Dec 2014
Alexandre Belloni375f62e2016-05-22 15:35:13 +0200304KernelVersion: 4.0
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100305Description: Specific streaming header descriptors
306
307 All attributes read only:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100308
309 ==================== =====================================
310 bTriggerUsage how the host software will respond to
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100311 a hardware trigger interrupt event
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100312 bTriggerSupport flag specifying if hardware
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100313 triggering is supported
Carlos Bilbao3e42d1d2021-05-13 09:31:10 -0400314 bStillCaptureMethod method of still image capture
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100315 supported
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100316 bTerminalLink id of the output terminal to which
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100317 the video endpoint of this interface
318 is connected
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100319 bmInfo capabilities of this video streaming
Andrzej Pietrasiewicz46919a22014-12-10 12:34:02 +0100320 interface
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +0100321 ==================== =====================================
Kieran Binghamd7af78b2018-05-24 17:16:12 +0100322
323What: /sys/class/udc/udc.name/device/gadget/video4linux/video.name/function_name
324Date: May 2018
325KernelVersion: 4.19
326Description: UVC configfs function instance name