Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] doc-rst: add media.h header to media contrller

Adding the header file is interesting for several reasons:

1) It makes MC documentation consistend with other parts;
2) The header file can be used as a quick index to all API
elements;
3) The cross-reference check helps to identify symbols that
aren't documented.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

+170 -12
+4 -1
Documentation/media/Makefile
··· 5 5 SRC_DIR=$(srctree)/Documentation/media 6 6 7 7 FILES = audio.h.rst ca.h.rst dmx.h.rst frontend.h.rst net.h.rst video.h.rst \ 8 - videodev2.h.rst 8 + videodev2.h.rst media.h.rst 9 9 10 10 TARGETS := $(addprefix $(BUILDDIR)/, $(FILES)) 11 11 ··· 44 44 @$($(quiet)gen_rst) 45 45 46 46 $(BUILDDIR)/videodev2.h.rst: ${UAPI}/videodev2.h ${PARSER} $(SRC_DIR)/videodev2.h.rst.exceptions 47 + @$($(quiet)gen_rst) 48 + 49 + $(BUILDDIR)/media.h.rst: ${UAPI}/media.h ${PARSER} $(SRC_DIR)/media.h.rst.exceptions 47 50 @$($(quiet)gen_rst) 48 51 49 52 cleandocs:
+30
Documentation/media/media.h.rst.exceptions
··· 1 + # Ignore header name 2 + ignore define __LINUX_MEDIA_H 3 + 4 + # Ignore macros 5 + ignore define MEDIA_API_VERSION 6 + ignore define MEDIA_ENT_F_BASE 7 + ignore define MEDIA_ENT_F_OLD_BASE 8 + ignore define MEDIA_ENT_F_OLD_SUBDEV_BASE 9 + ignore define MEDIA_INTF_T_DVB_BASE 10 + ignore define MEDIA_INTF_T_V4L_BASE 11 + ignore define MEDIA_INTF_T_ALSA_BASE 12 + 13 + #ignore legacy entity type macros 14 + ignore define MEDIA_ENT_TYPE_SHIFT 15 + ignore define MEDIA_ENT_TYPE_MASK 16 + ignore define MEDIA_ENT_SUBTYPE_MASK 17 + ignore define MEDIA_ENT_T_DEVNODE_UNKNOWN 18 + ignore define MEDIA_ENT_T_DEVNODE 19 + ignore define MEDIA_ENT_T_DEVNODE_V4L 20 + ignore define MEDIA_ENT_T_DEVNODE_FB 21 + ignore define MEDIA_ENT_T_DEVNODE_ALSA 22 + ignore define MEDIA_ENT_T_DEVNODE_DVB 23 + ignore define MEDIA_ENT_T_UNKNOWN 24 + ignore define MEDIA_ENT_T_V4L2_VIDEO 25 + ignore define MEDIA_ENT_T_V4L2_SUBDEV 26 + ignore define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR 27 + ignore define MEDIA_ENT_T_V4L2_SUBDEV_FLASH 28 + ignore define MEDIA_ENT_T_V4L2_SUBDEV_LENS 29 + ignore define MEDIA_ENT_T_V4L2_SUBDEV_DECODER 30 + ignore define MEDIA_ENT_T_V4L2_SUBDEV_TUNER
+1 -1
Documentation/media/uapi/mediactl/media-controller.rst
··· 22 22 media-controller-intro 23 23 media-controller-model 24 24 media-types 25 - 25 + media-header 26 26 27 27 .. _media-user-func: 28 28
+10
Documentation/media/uapi/mediactl/media-header.rst
··· 1 + .. -*- coding: utf-8; mode: rst -*- 2 + 3 + .. _media_header: 4 + 5 + **************************** 6 + Media Controller Header File 7 + **************************** 8 + 9 + .. kernel-include:: $BUILDDIR/media.h.rst 10 +
+1 -1
Documentation/media/uapi/mediactl/media-ioc-device-info.rst
··· 1 1 .. -*- coding: utf-8; mode: rst -*- 2 2 3 - .. _media-ioc-device-info: 3 + .. _media_ioc_device_info: 4 4 5 5 *************************** 6 6 ioctl MEDIA_IOC_DEVICE_INFO
+3 -1
Documentation/media/uapi/mediactl/media-ioc-enum-entities.rst
··· 1 1 .. -*- coding: utf-8; mode: rst -*- 2 2 3 - .. _media-ioc-enum-entities: 3 + .. _media_ioc_enum_entities: 4 4 5 5 ***************************** 6 6 ioctl MEDIA_IOC_ENUM_ENTITIES ··· 38 38 call the MEDIA_IOC_ENUM_ENTITIES ioctl with a pointer to this 39 39 structure. The driver fills the rest of the structure or returns an 40 40 EINVAL error code when the id is invalid. 41 + 42 + .. _media-ent-id-flag-next: 41 43 42 44 Entities can be enumerated by or'ing the id with the 43 45 ``MEDIA_ENT_ID_FLAG_NEXT`` flag. The driver will return information
+3 -5
Documentation/media/uapi/mediactl/media-ioc-enum-links.rst
··· 1 1 .. -*- coding: utf-8; mode: rst -*- 2 2 3 - .. _media-ioc-enum-links: 3 + .. _media_ioc_enum_links: 4 4 5 5 ************************** 6 6 ioctl MEDIA_IOC_ENUM_LINKS ··· 44 44 If the ``pads`` field is not NULL, the driver fills the ``pads`` array 45 45 with information about the entity's pads. The array must have enough 46 46 room to store all the entity's pads. The number of pads can be retrieved 47 - with the :ref:`MEDIA_IOC_ENUM_ENTITIES <media-ioc-enum-entities>` 48 - ioctl. 47 + with :ref:`MEDIA_IOC_ENUM_ENTITIES`. 49 48 50 49 If the ``links`` field is not NULL, the driver fills the ``links`` array 51 50 with information about the entity's outbound links. The array must have 52 51 enough room to store all the entity's outbound links. The number of 53 - outbound links can be retrieved with the 54 - :ref:`MEDIA_IOC_ENUM_ENTITIES <media-ioc-enum-entities>` ioctl. 52 + outbound links can be retrieved with :ref:`MEDIA_IOC_ENUM_ENTITIES`. 55 53 56 54 Only forward links that originate at one of the entity's source pads are 57 55 returned during the enumeration process.
+1 -1
Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
··· 1 1 .. -*- coding: utf-8; mode: rst -*- 2 2 3 - .. _media-g-topology: 3 + .. _media_ioc_g_topology: 4 4 5 5 ************************** 6 6 ioctl MEDIA_IOC_G_TOPOLOGY
+1 -1
Documentation/media/uapi/mediactl/media-ioc-setup-link.rst
··· 1 1 .. -*- coding: utf-8; mode: rst -*- 2 2 3 - .. _media-ioc-setup-link: 3 + .. _media_ioc_setup_link: 4 4 5 5 ************************** 6 6 ioctl MEDIA_IOC_SETUP_LINK
+116 -1
Documentation/media/uapi/mediactl/media-types.rst
··· 15 15 16 16 - .. row 1 17 17 18 + .. _MEDIA-ENT-F-UNKNOWN: 19 + .. _MEDIA-ENT-F-V4L2-SUBDEV-UNKNOWN: 20 + 18 21 - ``MEDIA_ENT_F_UNKNOWN`` and ``MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN`` 19 22 20 23 - Unknown entity. That generally indicates that a driver didn't ··· 25 22 26 23 - .. row 2 27 24 25 + .. _MEDIA-ENT-F-IO-V4L: 26 + 28 27 - ``MEDIA_ENT_F_IO_V4L`` 29 28 30 29 - Data streaming input and/or output entity. 31 30 32 31 - .. row 3 32 + 33 + .. _MEDIA-ENT-F-IO-VBI: 33 34 34 35 - ``MEDIA_ENT_F_IO_VBI`` 35 36 ··· 41 34 42 35 - .. row 4 43 36 37 + .. _MEDIA-ENT-F-IO-SWRADIO: 38 + 44 39 - ``MEDIA_ENT_F_IO_SWRADIO`` 45 40 46 41 - V4L Software Digital Radio (SDR) streaming input or output entity 47 42 48 43 - .. row 5 44 + 45 + .. _MEDIA-ENT-F-IO-DTV: 49 46 50 47 - ``MEDIA_ENT_F_IO_DTV`` 51 48 ··· 57 46 58 47 - .. row 6 59 48 49 + .. _MEDIA-ENT-F-DTV-DEMOD: 50 + 60 51 - ``MEDIA_ENT_F_DTV_DEMOD`` 61 52 62 53 - Digital TV demodulator entity. 63 54 64 55 - .. row 7 56 + 57 + .. _MEDIA-ENT-F-TS-DEMUX: 65 58 66 59 - ``MEDIA_ENT_F_TS_DEMUX`` 67 60 ··· 74 59 75 60 - .. row 8 76 61 62 + .. _MEDIA-ENT-F-DTV-CA: 63 + 77 64 - ``MEDIA_ENT_F_DTV_CA`` 78 65 79 66 - Digital TV Conditional Access module (CAM) entity 80 67 81 68 - .. row 9 69 + 70 + .. _MEDIA-ENT-F-DTV-NET-DECAP: 82 71 83 72 - ``MEDIA_ENT_F_DTV_NET_DECAP`` 84 73 ··· 91 72 92 73 - .. row 10 93 74 75 + .. _MEDIA-ENT-F-CONN-RF: 76 + 94 77 - ``MEDIA_ENT_F_CONN_RF`` 95 78 96 79 - Connector for a Radio Frequency (RF) signal. 97 80 98 81 - .. row 11 82 + 83 + .. _MEDIA-ENT-F-CONN-SVIDEO: 99 84 100 85 - ``MEDIA_ENT_F_CONN_SVIDEO`` 101 86 ··· 107 84 108 85 - .. row 12 109 86 87 + .. _MEDIA-ENT-F-CONN-COMPOSITE: 88 + 110 89 - ``MEDIA_ENT_F_CONN_COMPOSITE`` 111 90 112 91 - Connector for a RGB composite signal. 113 92 114 93 - .. row 13 94 + 95 + .. _MEDIA-ENT-F-CAM-SENSOR: 115 96 116 97 - ``MEDIA_ENT_F_CAM_SENSOR`` 117 98 ··· 123 96 124 97 - .. row 14 125 98 99 + .. _MEDIA-ENT-F-FLASH: 100 + 126 101 - ``MEDIA_ENT_F_FLASH`` 127 102 128 103 - Flash controller entity. 129 104 130 105 - .. row 15 131 106 107 + .. _MEDIA-ENT-F-LENS: 108 + 132 109 - ``MEDIA_ENT_F_LENS`` 133 110 134 111 - Lens controller entity. 135 112 136 113 - .. row 16 114 + 115 + .. _MEDIA-ENT-F-ATV-DECODER: 137 116 138 117 - ``MEDIA_ENT_F_ATV_DECODER`` 139 118 ··· 152 119 153 120 - .. row 17 154 121 122 + .. _MEDIA-ENT-F-TUNER: 123 + 155 124 - ``MEDIA_ENT_F_TUNER`` 156 125 157 126 - Digital TV, analog TV, radio and/or software radio tuner, with ··· 164 129 165 130 - .. row 18 166 131 132 + .. _MEDIA-ENT-F-IF-VID-DECODER: 133 + 167 134 - ``MEDIA_ENT_F_IF_VID_DECODER`` 168 135 169 136 - IF-PLL video decoder. It receives the IF from a PLL and decodes ··· 175 138 Those devices use a different I2C address than the tuner PLL. 176 139 177 140 - .. row 19 141 + 142 + .. _MEDIA-ENT-F-IF-AUD-DECODER: 178 143 179 144 - ``MEDIA_ENT_F_IF_AUD_DECODER`` 180 145 ··· 189 150 190 151 - .. row 20 191 152 153 + .. _MEDIA-ENT-F-AUDIO-CAPTURE: 154 + 192 155 - ``MEDIA_ENT_F_AUDIO_CAPTURE`` 193 156 194 157 - Audio Capture Function Entity. 195 158 196 159 - .. row 21 160 + 161 + .. _MEDIA-ENT-F-AUDIO-PLAYBACK: 197 162 198 163 - ``MEDIA_ENT_F_AUDIO_PLAYBACK`` 199 164 ··· 205 162 206 163 - .. row 22 207 164 165 + .. _MEDIA-ENT-F-AUDIO-MIXER: 166 + 208 167 - ``MEDIA_ENT_F_AUDIO_MIXER`` 209 168 210 169 - Audio Mixer Function Entity. 211 170 212 171 - .. row 23 172 + 173 + .. _MEDIA-ENT-F-PROC-VIDEO-COMPOSER: 213 174 214 175 - ``MEDIA_ENT_F_PROC_VIDEO_COMPOSER`` 215 176 ··· 225 178 means. 226 179 227 180 - .. row 24 181 + 182 + .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-FORMATTER: 228 183 229 184 - ``MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER`` 230 185 ··· 240 191 241 192 - .. row 25 242 193 194 + .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-ENC-CONV: 195 + 243 196 - ``MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV`` 244 197 245 198 - Video pixel encoding converter. An entity capable of pixel ··· 253 202 conversions. 254 203 255 204 - .. row 26 205 + 206 + .. _MEDIA-ENT-F-PROC-VIDEO-LUT: 256 207 257 208 - ``MEDIA_ENT_F_PROC_VIDEO_LUT`` 258 209 ··· 268 215 269 216 - .. row 27 270 217 218 + .. _MEDIA-ENT-F-PROC-VIDEO-SCALER: 219 + 271 220 - ``MEDIA_ENT_F_PROC_VIDEO_SCALER`` 272 221 273 222 - Video scaler. An entity capable of video scaling must have ··· 282 227 skipping are considered as scaling. 283 228 284 229 - .. row 28 230 + 231 + .. _MEDIA-ENT-F-PROC-VIDEO-STATISTICS: 285 232 286 233 - ``MEDIA_ENT_F_PROC_VIDEO_STATISTICS`` 287 234 ··· 303 246 304 247 - .. row 1 305 248 249 + .. _MEDIA-ENT-FL-DEFAULT: 250 + 306 251 - ``MEDIA_ENT_FL_DEFAULT`` 307 252 308 253 - Default entity for its type. Used to discover the default audio, 309 254 VBI and video devices, the default camera sensor, ... 310 255 311 256 - .. row 2 257 + 258 + .. _MEDIA-ENT-FL-CONNECTOR: 312 259 313 260 - ``MEDIA_ENT_FL_CONNECTOR`` 314 261 ··· 329 268 330 269 - .. row 1 331 270 271 + .. _MEDIA-INTF-T-DVB-FE: 272 + 332 273 - ``MEDIA_INTF_T_DVB_FE`` 333 274 334 275 - Device node interface for the Digital TV frontend ··· 338 275 - typically, /dev/dvb/adapter?/frontend? 339 276 340 277 - .. row 2 278 + 279 + .. _MEDIA-INTF-T-DVB-DEMUX: 341 280 342 281 - ``MEDIA_INTF_T_DVB_DEMUX`` 343 282 ··· 349 284 350 285 - .. row 3 351 286 287 + .. _MEDIA-INTF-T-DVB-DVR: 288 + 352 289 - ``MEDIA_INTF_T_DVB_DVR`` 353 290 354 291 - Device node interface for the Digital TV DVR ··· 358 291 - typically, /dev/dvb/adapter?/dvr? 359 292 360 293 - .. row 4 294 + 295 + .. _MEDIA-INTF-T-DVB-CA: 361 296 362 297 - ``MEDIA_INTF_T_DVB_CA`` 363 298 ··· 369 300 370 301 - .. row 5 371 302 372 - - ``MEDIA_INTF_T_DVB_FE`` 303 + .. _MEDIA-INTF-T-DVB-NET: 304 + 305 + - ``MEDIA_INTF_T_DVB_NET`` 373 306 374 307 - Device node interface for the Digital TV network control 375 308 376 309 - typically, /dev/dvb/adapter?/net? 377 310 378 311 - .. row 6 312 + 313 + .. _MEDIA-INTF-T-V4L-VIDEO: 379 314 380 315 - ``MEDIA_INTF_T_V4L_VIDEO`` 381 316 ··· 389 316 390 317 - .. row 7 391 318 319 + .. _MEDIA-INTF-T-V4L-VBI: 320 + 392 321 - ``MEDIA_INTF_T_V4L_VBI`` 393 322 394 323 - Device node interface for VBI (V4L) ··· 398 323 - typically, /dev/vbi? 399 324 400 325 - .. row 8 326 + 327 + .. _MEDIA-INTF-T-V4L-RADIO: 401 328 402 329 - ``MEDIA_INTF_T_V4L_RADIO`` 403 330 ··· 409 332 410 333 - .. row 9 411 334 335 + .. _MEDIA-INTF-T-V4L-SUBDEV: 336 + 412 337 - ``MEDIA_INTF_T_V4L_SUBDEV`` 413 338 414 339 - Device node interface for a V4L subdevice ··· 418 339 - typically, /dev/v4l-subdev? 419 340 420 341 - .. row 10 342 + 343 + .. _MEDIA-INTF-T-V4L-SWRADIO: 421 344 422 345 - ``MEDIA_INTF_T_V4L_SWRADIO`` 423 346 ··· 429 348 430 349 - .. row 11 431 350 351 + .. _MEDIA-INTF-T-ALSA-PCM-CAPTURE: 352 + 432 353 - ``MEDIA_INTF_T_ALSA_PCM_CAPTURE`` 433 354 434 355 - Device node interface for ALSA PCM Capture ··· 438 355 - typically, /dev/snd/pcmC?D?c 439 356 440 357 - .. row 12 358 + 359 + .. _MEDIA-INTF-T-ALSA-PCM-PLAYBACK: 441 360 442 361 - ``MEDIA_INTF_T_ALSA_PCM_PLAYBACK`` 443 362 ··· 449 364 450 365 - .. row 13 451 366 367 + .. _MEDIA-INTF-T-ALSA-CONTROL: 368 + 452 369 - ``MEDIA_INTF_T_ALSA_CONTROL`` 453 370 454 371 - Device node interface for ALSA Control ··· 458 371 - typically, /dev/snd/controlC? 459 372 460 373 - .. row 14 374 + 375 + .. _MEDIA-INTF-T-ALSA-COMPRESS: 461 376 462 377 - ``MEDIA_INTF_T_ALSA_COMPRESS`` 463 378 ··· 469 380 470 381 - .. row 15 471 382 383 + .. _MEDIA-INTF-T-ALSA-RAWMIDI: 384 + 472 385 - ``MEDIA_INTF_T_ALSA_RAWMIDI`` 473 386 474 387 - Device node interface for ALSA Raw MIDI ··· 478 387 - typically, /dev/snd/midi? 479 388 480 389 - .. row 16 390 + 391 + .. _MEDIA-INTF-T-ALSA-HWDEP: 481 392 482 393 - ``MEDIA_INTF_T_ALSA_HWDEP`` 483 394 ··· 489 396 490 397 - .. row 17 491 398 399 + .. _MEDIA-INTF-T-ALSA-SEQUENCER: 400 + 492 401 - ``MEDIA_INTF_T_ALSA_SEQUENCER`` 493 402 494 403 - Device node interface for ALSA Sequencer ··· 498 403 - typically, /dev/snd/seq 499 404 500 405 - .. row 18 406 + 407 + .. _MEDIA-INTF-T-ALSA-TIMER: 501 408 502 409 - ``MEDIA_INTF_T_ALSA_TIMER`` 503 410 ··· 518 421 519 422 - .. row 1 520 423 424 + .. _MEDIA-PAD-FL-SINK: 425 + 521 426 - ``MEDIA_PAD_FL_SINK`` 522 427 523 428 - Input pad, relative to the entity. Input pads sink data and are ··· 527 428 528 429 - .. row 2 529 430 431 + .. _MEDIA-PAD-FL-SOURCE: 432 + 530 433 - ``MEDIA_PAD_FL_SOURCE`` 531 434 532 435 - Output pad, relative to the entity. Output pads source data and 533 436 are origins of links. 534 437 535 438 - .. row 3 439 + 440 + .. _MEDIA-PAD-FL-MUST-CONNECT: 536 441 537 442 - ``MEDIA_PAD_FL_MUST_CONNECT`` 538 443 ··· 561 458 562 459 - .. row 1 563 460 461 + .. _MEDIA-LNK-FL-ENABLED: 462 + 564 463 - ``MEDIA_LNK_FL_ENABLED`` 565 464 566 465 - The link is enabled and can be used to transfer media data. When ··· 571 466 572 467 - .. row 2 573 468 469 + .. _MEDIA-LNK-FL-IMMUTABLE: 470 + 574 471 - ``MEDIA_LNK_FL_IMMUTABLE`` 575 472 576 473 - The link enabled state can't be modified at runtime. An immutable 577 474 link is always enabled. 578 475 579 476 - .. row 3 477 + 478 + .. _MEDIA-LNK-FL-DYNAMIC: 580 479 581 480 - ``MEDIA_LNK_FL_DYNAMIC`` 582 481 ··· 589 480 590 481 - .. row 4 591 482 483 + .. _MEDIA-LNK-FL-LINK-TYPE: 484 + 592 485 - ``MEDIA_LNK_FL_LINK_TYPE`` 593 486 594 487 - This is a bitmask that defines the type of the link. Currently, 595 488 two types of links are supported: 596 489 490 + .. _MEDIA-LNK-FL-DATA-LINK: 491 + 597 492 ``MEDIA_LNK_FL_DATA_LINK`` if the link is between two pads 493 + 494 + .. _MEDIA-LNK-FL-INTERFACE-LINK: 598 495 599 496 ``MEDIA_LNK_FL_INTERFACE_LINK`` if the link is between an 600 497 interface and an entity