sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget0/translations/zh_CN/driver-api/media/v4l2-subdevmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget0/translations/zh_TW/driver-api/media/v4l2-subdevmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget0/translations/it_IT/driver-api/media/v4l2-subdevmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget0/translations/ja_JP/driver-api/media/v4l2-subdevmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget0/translations/ko_KR/driver-api/media/v4l2-subdevmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget0/translations/sp_SP/driver-api/media/v4l2-subdevmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhJ/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev.rsthKubhsection)}(hhh](htitle)}(hV4L2 sub-devicesh]hV4L2 sub-devices}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hMany drivers need to communicate with sub-devices. These devices can do all sort of tasks, but most commonly they handle audio and/or video muxing, encoding or decoding. For webcams common sub-devices are sensors and camera controllers.h]hMany drivers need to communicate with sub-devices. These devices can do all sort of tasks, but most commonly they handle audio and/or video muxing, encoding or decoding. For webcams common sub-devices are sensors and camera controllers.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hUsually these are I2C devices, but not necessarily. In order to provide the driver with a consistent interface to these sub-devices the :c:type:`v4l2_subdev` struct (v4l2-subdev.h) was created.h](hUsually these are I2C devices, but not necessarily. In order to provide the driver with a consistent interface to these sub-devices the }(hhhhhNhNubh)}(h:c:type:`v4l2_subdev`h]hliteral)}(hhh]h v4l2_subdev}(hhhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdocdriver-api/media/v4l2-subdev refdomainhreftypetype refexplicitrefwarn reftarget v4l2_subdevuh1hhhhK hhubh$ struct (v4l2-subdev.h) was created.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hX(Each sub-device driver must have a :c:type:`v4l2_subdev` struct. This struct can be stand-alone for simple sub-devices or it might be embedded in a larger struct if more state information needs to be stored. Usually there is a low-level device struct (e.g. ``i2c_client``) that contains the device data as setup by the kernel. It is recommended to store that pointer in the private data of :c:type:`v4l2_subdev` using :c:func:`v4l2_set_subdevdata`. That makes it easy to go from a :c:type:`v4l2_subdev` to the actual low-level bus-specific device data.h](h#Each sub-device driver must have a }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh struct. This struct can be stand-alone for simple sub-devices or it might be embedded in a larger struct if more state information needs to be stored. Usually there is a low-level device struct (e.g. }(hjhhhNhNubh)}(h``i2c_client``h]h i2c_client}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhw) that contains the device data as setup by the kernel. It is recommended to store that pointer in the private data of }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjOh]h v4l2_subdev}(hjQhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh using }(hjhhhNhNubh)}(h:c:func:`v4l2_set_subdevdata`h]h)}(hjrh]hv4l2_set_subdevdata()}(hjthhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_set_subdevdatauh1hhhhKhjubh". That makes it easy to go from a }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh2 to the actual low-level bus-specific device data.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hYou also need a way to go from the low-level struct to :c:type:`v4l2_subdev`. For the common i2c_client struct the i2c_set_clientdata() call is used to store a :c:type:`v4l2_subdev` pointer, for other buses you may have to use other methods.h](h7You also need a way to go from the low-level struct to }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubhT. For the common i2c_client struct the i2c_set_clientdata() call is used to store a }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh< pointer, for other buses you may have to use other methods.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX,Bridges might also need to store per-subdev private data, such as a pointer to bridge-specific per-subdev private data. The :c:type:`v4l2_subdev` structure provides host private data for that purpose that can be accessed with :c:func:`v4l2_get_subdev_hostdata` and :c:func:`v4l2_set_subdev_hostdata`.h](h|Bridges might also need to store per-subdev private data, such as a pointer to bridge-specific per-subdev private data. The }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubhQ structure provides host private data for that purpose that can be accessed with }(hjhhhNhNubh)}(h":c:func:`v4l2_get_subdev_hostdata`h]h)}(hj=h]hv4l2_get_subdev_hostdata()}(hj?hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_get_subdev_hostdatauh1hhhhKhjubh and }(hjhhhNhNubh)}(h":c:func:`v4l2_set_subdev_hostdata`h]h)}(hj`h]hv4l2_set_subdev_hostdata()}(hjbhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_set_subdev_hostdatauh1hhhhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXLFrom the bridge driver perspective, you load the sub-device module and somehow obtain the :c:type:`v4l2_subdev` pointer. For i2c devices this is easy: you call ``i2c_get_clientdata()``. For other buses something similar needs to be done. Helper functions exist for sub-devices on an I2C bus that do most of this tricky work for you.h](hZFrom the bridge driver perspective, you load the sub-device module and somehow obtain the }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhK"hjubh1 pointer. For i2c devices this is easy: you call }(hjhhhNhNubh)}(h``i2c_get_clientdata()``h]hi2c_get_clientdata()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh. For other buses something similar needs to be done. Helper functions exist for sub-devices on an I2C bus that do most of this tricky work for you.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hhhhubh)}(hXEach :c:type:`v4l2_subdev` contains function pointers that sub-device drivers can implement (or leave ``NULL`` if it is not applicable). Since sub-devices can do so many different things and you do not want to end up with a huge ops struct of which only a handful of ops are commonly implemented, the function pointers are sorted according to category and each category has its own ops struct.h](hEach }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhK(hjubhL contains function pointers that sub-device drivers can implement (or leave }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhX if it is not applicable). Since sub-devices can do so many different things and you do not want to end up with a huge ops struct of which only a handful of ops are commonly implemented, the function pointers are sorted according to category and each category has its own ops struct.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK(hhhhubh)}(hThe top-level ops struct contains pointers to the category ops structs, which may be NULL if the subdev driver does not support anything from that category.h]hThe top-level ops struct contains pointers to the category ops structs, which may be NULL if the subdev driver does not support anything from that category.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hhhhubh)}(hIt looks like this:h]hIt looks like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hhhhubh literal_block)}(hXhstruct v4l2_subdev_core_ops { int (*log_status)(struct v4l2_subdev *sd); int (*init)(struct v4l2_subdev *sd, u32 val); ... }; struct v4l2_subdev_tuner_ops { ... }; struct v4l2_subdev_audio_ops { ... }; struct v4l2_subdev_video_ops { ... }; struct v4l2_subdev_pad_ops { ... }; struct v4l2_subdev_ops { const struct v4l2_subdev_core_ops *core; const struct v4l2_subdev_tuner_ops *tuner; const struct v4l2_subdev_audio_ops *audio; const struct v4l2_subdev_video_ops *video; const struct v4l2_subdev_pad_ops *video; };h]hXhstruct v4l2_subdev_core_ops { int (*log_status)(struct v4l2_subdev *sd); int (*init)(struct v4l2_subdev *sd, u32 val); ... }; struct v4l2_subdev_tuner_ops { ... }; struct v4l2_subdev_audio_ops { ... }; struct v4l2_subdev_video_ops { ... }; struct v4l2_subdev_pad_ops { ... }; struct v4l2_subdev_ops { const struct v4l2_subdev_core_ops *core; const struct v4l2_subdev_tuner_ops *tuner; const struct v4l2_subdev_audio_ops *audio; const struct v4l2_subdev_video_ops *video; const struct v4l2_subdev_pad_ops *video; };}hj+sbah}(h]h ]h"]h$]h&]hhforcelanguagehhighlight_args}uh1j)hhhK3hhhhubh)}(hThe core ops are common to all subdevs, the other categories are implemented depending on the sub-device. E.g. a video device is unlikely to support the audio ops and vice versa.h]hThe core ops are common to all subdevs, the other categories are implemented depending on the sub-device. E.g. a video device is unlikely to support the audio ops and vice versa.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShhhhubh)}(hkThis setup limits the number of function pointers while still making it easy to add new ops and categories.h]hkThis setup limits the number of function pointers while still making it easy to add new ops and categories.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKWhhhhubh)}(hGA sub-device driver initializes the :c:type:`v4l2_subdev` struct using:h](h$A sub-device driver initializes the }(hjYhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjch]h v4l2_subdev}(hjehhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKZhjYubh struct using:}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKZhhhhubh block_quote)}(hq:c:func:`v4l2_subdev_init ` (:c:type:`sd `, &\ :c:type:`ops `). h]h)}(ho:c:func:`v4l2_subdev_init ` (:c:type:`sd `, &\ :c:type:`ops `).h](h)}(h-:c:func:`v4l2_subdev_init `h]h)}(hjh]hv4l2_subdev_init}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_subdev_inituh1hhhhK\hjubh (}(hjhhhNhNubh)}(h:c:type:`sd `h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhK\hjubh, & }(hjhhhNhNubh)}(h:c:type:`ops `h]h)}(hjh]hops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_subdev_opsuh1hhhhK\hjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK\hjubah}(h]h ]h"]h$]h&]uh1jhhhK\hhhhubh)}(hAfterwards you need to initialize :c:type:`sd `->name with a unique name and set the module owner. This is done for you if you use the i2c helper functions.h](h"Afterwards you need to initialize }(hj hhhNhNubh)}(h:c:type:`sd `h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhK`hj ubhm->name with a unique name and set the module owner. This is done for you if you use the i2c helper functions.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK`hhhhubh)}(hIf integration with the media framework is needed, you must initialize the :c:type:`media_entity` struct embedded in the :c:type:`v4l2_subdev` struct (entity field) by calling :c:func:`media_entity_pads_init`, if the entity has pads:h](hKIf integration with the media framework is needed, you must initialize the }(hj:hhhNhNubh)}(h:c:type:`media_entity`h]h)}(hjDh]h media_entity}(hjFhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj media_entityuh1hhhhKdhj:ubh struct embedded in the }(hj:hhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjgh]h v4l2_subdev}(hjihhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKdhj:ubh" struct (entity field) by calling }(hj:hhhNhNubh)}(h :c:func:`media_entity_pads_init`h]h)}(hjh]hmedia_entity_pads_init()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjmedia_entity_pads_inituh1hhhhKdhj:ubh, if the entity has pads:}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKdhhhhubj*)}(hhstruct media_pad *pads = &my_sd->pads; int err; err = media_entity_pads_init(&sd->entity, npads, pads);h]hhstruct media_pad *pads = &my_sd->pads; int err; err = media_entity_pads_init(&sd->entity, npads, pads);}hjsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhKihhhhubh)}(hThe pads array must have been previously initialized. There is no need to manually set the struct media_entity function and name fields, but the revision field must be initialized if needed.h]hThe pads array must have been previously initialized. There is no need to manually set the struct media_entity function and name fields, but the revision field must be initialized if needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphhhhubh)}(hxA reference to the entity will be automatically acquired/released when the subdev device node (if any) is opened/closed.h]hxA reference to the entity will be automatically acquired/released when the subdev device node (if any) is opened/closed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKthhhhubh)}(hLDon't forget to cleanup the media entity before the sub-device is destroyed:h]hNDon’t forget to cleanup the media entity before the sub-device is destroyed:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKwhhhhubj*)}(h"media_entity_cleanup(&sd->entity);h]h"media_entity_cleanup(&sd->entity);}hjsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhKyhhhhubh)}(hXIf a sub-device driver implements sink pads, the subdev driver may set the link_validate field in :c:type:`v4l2_subdev_pad_ops` to provide its own link validation function. For every link in the pipeline, the link_validate pad operation of the sink end of the link is called. In both cases the driver is still responsible for validating the correctness of the format configuration between sub-devices and video nodes.h](hbIf a sub-device driver implements sink pads, the subdev driver may set the link_validate field in }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev_pad_ops`h]h)}(hjh]hv4l2_subdev_pad_ops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_subdev_pad_opsuh1hhhhK}hjubhX" to provide its own link validation function. For every link in the pipeline, the link_validate pad operation of the sink end of the link is called. In both cases the driver is still responsible for validating the correctness of the format configuration between sub-devices and video nodes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK}hhhhubh)}(hX_If link_validate op is not set, the default function :c:func:`v4l2_subdev_link_validate_default` is used instead. This function ensures that width, height and the media bus pixel code are equal on both source and sink of the link. Subdev drivers are also free to use this function to perform the checks mentioned above in addition to their own checks.h](h5If link_validate op is not set, the default function }(hj*hhhNhNubh)}(h+:c:func:`v4l2_subdev_link_validate_default`h]h)}(hj4h]h#v4l2_subdev_link_validate_default()}(hj6hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj!v4l2_subdev_link_validate_defaultuh1hhhhKhj*ubh is used instead. This function ensures that width, height and the media bus pixel code are equal on both source and sink of the link. Subdev drivers are also free to use this function to perform the checks mentioned above in addition to their own checks.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hSubdev registrationh]hSubdev registration}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hhhhhKubh)}(hX2There are currently two ways to register subdevices with the V4L2 core. The first (traditional) possibility is to have subdevices registered by bridge drivers. This can be done when the bridge driver has the complete information about subdevices connected to it and knows exactly when to register them. This is typically the case for internal subdevices, like video data processing units within SoCs or complex PCI(e) boards, camera sensors in USB cameras or connected to SoCs, which pass information about them to bridge drivers, usually in their platform data.h]hX2There are currently two ways to register subdevices with the V4L2 core. The first (traditional) possibility is to have subdevices registered by bridge drivers. This can be done when the bridge driver has the complete information about subdevices connected to it and knows exactly when to register them. This is typically the case for internal subdevices, like video data processing units within SoCs or complex PCI(e) boards, camera sensors in USB cameras or connected to SoCs, which pass information about them to bridge drivers, usually in their platform data.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubh)}(hXThere are however also situations where subdevices have to be registered asynchronously to bridge devices. An example of such a configuration is a Device Tree based system where information about subdevices is made available to the system independently from the bridge devices, e.g. when subdevices are defined in DT as I2C device nodes. The API used in this second case is described further below.h]hXThere are however also situations where subdevices have to be registered asynchronously to bridge devices. An example of such a configuration is a Device Tree based system where information about subdevices is made available to the system independently from the bridge devices, e.g. when subdevices are defined in DT as I2C device nodes. The API used in this second case is described further below.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubh)}(hUsing one or the other registration method only affects the probing process, the run-time bridge-subdevice interaction is in both cases the same.h]hUsing one or the other registration method only affects the probing process, the run-time bridge-subdevice interaction is in both cases the same.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubh)}(hhh](h)}(h#Registering synchronous sub-devicesh]h#Registering synchronous sub-devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hvIn the **synchronous** case a device (bridge) driver needs to register the :c:type:`v4l2_subdev` with the v4l2_device:h](hIn the }(hjhhhNhNubhstrong)}(h**synchronous**h]h synchronous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 case a device (bridge) driver needs to register the }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh with the v4l2_device:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h:c:func:`v4l2_device_register_subdev ` (:c:type:`v4l2_dev `, :c:type:`sd `). h]h)}(h:c:func:`v4l2_device_register_subdev ` (:c:type:`v4l2_dev `, :c:type:`sd `).h](h)}(hC:c:func:`v4l2_device_register_subdev `h]h)}(hjh]hv4l2_device_register_subdev}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_device_register_subdevuh1hhhhKhjubh (}(hjhhhNhNubh)}(h :c:type:`v4l2_dev `h]h)}(hjh]hv4l2_dev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_deviceuh1hhhhKhjubh, }(hjhhhNhNubh)}(h:c:type:`sd `h]h)}(hj<h]hsd}(hj>hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hThis can fail if the subdev module disappeared before it could be registered. After this function was called successfully the subdev->dev field points to the :c:type:`v4l2_device`.h](hThis can fail if the subdev module disappeared before it could be registered. After this function was called successfully the subdev->dev field points to the }(hjihhhNhNubh)}(h:c:type:`v4l2_device`h]h)}(hjsh]h v4l2_device}(hjuhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_deviceuh1hhhhKhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hIf the v4l2_device parent device has a non-NULL mdev field, the sub-device entity will be automatically registered with the media device.h]hIf the v4l2_device parent device has a non-NULL mdev field, the sub-device entity will be automatically registered with the media device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h&You can unregister a sub-device using:h]h&You can unregister a sub-device using:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hf:c:func:`v4l2_device_unregister_subdev ` (:c:type:`sd `). h]h)}(he:c:func:`v4l2_device_unregister_subdev ` (:c:type:`sd `).h](h)}(hG:c:func:`v4l2_device_unregister_subdev `h]h)}(hjh]hv4l2_device_unregister_subdev}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_device_unregister_subdevuh1hhhhKhjubh (}(hjhhhNhNubh)}(h:c:type:`sd `h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(h]Afterwards the subdev module can be unloaded and :c:type:`sd `->dev == ``NULL``.h](h1Afterwards the subdev module can be unloaded and }(hjhhhNhNubh)}(h:c:type:`sd `h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhKhjubh ->dev == }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubhtarget)}(h$.. _media-registering-async-subdevs:h]h}(h]h ]h"]h$]h&]refidmedia-registering-async-subdevsuh1jShKhjhhhhubeh}(h]#registering-synchronous-sub-devicesah ]h"]#registering synchronous sub-devicesah$]h&]uh1hhj[hhhhhKubh)}(hhh](h)}(h$Registering asynchronous sub-devicesh]h$Registering asynchronous sub-devices}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhKubh)}(hXIn the **asynchronous** case subdevice probing can be invoked independently of the bridge driver availability. The subdevice driver then has to verify whether all the requirements for a successful probing are satisfied. This can include a check for a master clock availability. If any of the conditions aren't satisfied the driver might decide to return ``-EPROBE_DEFER`` to request further reprobing attempts. Once all conditions are met the subdevice shall be registered using the :c:func:`v4l2_async_register_subdev` function. Unregistration is performed using the :c:func:`v4l2_async_unregister_subdev` call. Subdevices registered this way are stored in a global list of subdevices, ready to be picked up by bridge drivers.h](hIn the }(hjzhhhNhNubj)}(h**asynchronous**h]h asynchronous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhXM case subdevice probing can be invoked independently of the bridge driver availability. The subdevice driver then has to verify whether all the requirements for a successful probing are satisfied. This can include a check for a master clock availability. If any of the conditions aren’t satisfied the driver might decide to return }(hjzhhhNhNubh)}(h``-EPROBE_DEFER``h]h -EPROBE_DEFER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubhp to request further reprobing attempts. Once all conditions are met the subdevice shall be registered using the }(hjzhhhNhNubh)}(h$:c:func:`v4l2_async_register_subdev`h]h)}(hjh]hv4l2_async_register_subdev()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_register_subdevuh1hhhhKhjzubh1 function. Unregistration is performed using the }(hjzhhhNhNubh)}(h&:c:func:`v4l2_async_unregister_subdev`h]h)}(hjh]hv4l2_async_unregister_subdev()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_unregister_subdevuh1hhhhKhjzubhy call. Subdevices registered this way are stored in a global list of subdevices, ready to be picked up by bridge drivers.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjihhubh)}(hDrivers must complete all initialization of the sub-device before registering it using :c:func:`v4l2_async_register_subdev`, including enabling runtime PM. This is because the sub-device becomes accessible as soon as it gets registered.h](hWDrivers must complete all initialization of the sub-device before registering it using }(hjhhhNhNubh)}(h$:c:func:`v4l2_async_register_subdev`h]h)}(hjh]hv4l2_async_register_subdev()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_register_subdevuh1hhhhKhjubhq, including enabling runtime PM. This is because the sub-device becomes accessible as soon as it gets registered.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjihhubeh}(h]($registering-asynchronous-sub-devicesj`eh ]h"]($registering asynchronous sub-devicesmedia-registering-async-subdevseh$]h&]uh1hhj[hhhhhKexpect_referenced_by_name}j)jUsexpect_referenced_by_id}j`jUsubh)}(hhh](h)}(h!Asynchronous sub-device notifiersh]h!Asynchronous sub-device notifiers}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhhhhKubh)}(hXHBridge drivers in turn have to register a notifier object. This is performed using the :c:func:`v4l2_async_nf_register` call. To unregister the notifier the driver has to call :c:func:`v4l2_async_nf_unregister`. Before releasing memory of an unregister notifier, it must be cleaned up by calling :c:func:`v4l2_async_nf_cleanup`.h](hWBridge drivers in turn have to register a notifier object. This is performed using the }(hjAhhhNhNubh)}(h :c:func:`v4l2_async_nf_register`h]h)}(hjKh]hv4l2_async_nf_register()}(hjMhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_registeruh1hhhhKhjAubh9 call. To unregister the notifier the driver has to call }(hjAhhhNhNubh)}(h":c:func:`v4l2_async_nf_unregister`h]h)}(hjnh]hv4l2_async_nf_unregister()}(hjphhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_unregisteruh1hhhhKhjAubhV. Before releasing memory of an unregister notifier, it must be cleaned up by calling }(hjAhhhNhNubh)}(h:c:func:`v4l2_async_nf_cleanup`h]h)}(hjh]hv4l2_async_nf_cleanup()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_cleanupuh1hhhhKhjAubh.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj0hhubh)}(hXBefore registering the notifier, bridge drivers must do two things: first, the notifier must be initialized using the :c:func:`v4l2_async_nf_init`. Second, bridge drivers can then begin to form a list of async connection descriptors that the bridge device needs for its operation. :c:func:`v4l2_async_nf_add_fwnode`, :c:func:`v4l2_async_nf_add_fwnode_remote` and :c:func:`v4l2_async_nf_add_i2c`h](hvBefore registering the notifier, bridge drivers must do two things: first, the notifier must be initialized using the }(hjhhhNhNubh)}(h:c:func:`v4l2_async_nf_init`h]h)}(hjh]hv4l2_async_nf_init()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_inituh1hhhhKhjubh. Second, bridge drivers can then begin to form a list of async connection descriptors that the bridge device needs for its operation. }(hjhhhNhNubh)}(h":c:func:`v4l2_async_nf_add_fwnode`h]h)}(hjh]hv4l2_async_nf_add_fwnode()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_add_fwnodeuh1hhhhKhjubh, }(hjhhhNhNubh)}(h):c:func:`v4l2_async_nf_add_fwnode_remote`h]h)}(hj h]h!v4l2_async_nf_add_fwnode_remote()}(hj hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_add_fwnode_remoteuh1hhhhKhjubh and }(hjhhhNhNubh)}(h:c:func:`v4l2_async_nf_add_i2c`h]h)}(hj+ h]hv4l2_async_nf_add_i2c()}(hj- hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj) ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_nf_add_i2cuh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhj0hhubh)}(hXAsync connection descriptors describe connections to external sub-devices the drivers for which are not yet probed. Based on an async connection, a media data or ancillary link may be created when the related sub-device becomes available. There may be one or more async connections to a given sub-device but this is not known at the time of adding the connections to the notifier. Async connections are bound as matching async sub-devices are found, one by one.h]hXAsync connection descriptors describe connections to external sub-devices the drivers for which are not yet probed. Based on an async connection, a media data or ancillary link may be created when the related sub-device becomes available. There may be one or more async connections to a given sub-device but this is not known at the time of adding the connections to the notifier. Async connections are bound as matching async sub-devices are found, one by one.}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0hhubeh}(h]!asynchronous-sub-device-notifiersah ]h"]!asynchronous sub-device notifiersah$]h&]uh1hhj[hhhhhKubh)}(hhh](h)}(h0Asynchronous sub-device notifier for sub-devicesh]h0Asynchronous sub-device notifier for sub-devices}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd hhhhhKubh)}(hXA driver that registers an asynchronous sub-device may also register an asynchronous notifier. This is called an asynchronous sub-device notifier and the process is similar to that of a bridge driver apart from that the notifier is initialised using :c:func:`v4l2_async_subdev_nf_init` instead. A sub-device notifier may complete only after the V4L2 device becomes available, i.e. there's a path via async sub-devices and notifiers to a notifier that is not an asynchronous sub-device notifier.h](hA driver that registers an asynchronous sub-device may also register an asynchronous notifier. This is called an asynchronous sub-device notifier and the process is similar to that of a bridge driver apart from that the notifier is initialised using }(hju hhhNhNubh)}(h#:c:func:`v4l2_async_subdev_nf_init`h]h)}(hj h]hv4l2_async_subdev_nf_init()}(hj hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj} ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_subdev_nf_inituh1hhhhKhju ubh instead. A sub-device notifier may complete only after the V4L2 device becomes available, i.e. there’s a path via async sub-devices and notifiers to a notifier that is not an asynchronous sub-device notifier.}(hju hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjd hhubeh}(h]0asynchronous-sub-device-notifier-for-sub-devicesah ]h"]0asynchronous sub-device notifier for sub-devicesah$]h&]uh1hhj[hhhhhKubh)}(hhh](h)}(hEAsynchronous sub-device registration helper for camera sensor driversh]hEAsynchronous sub-device registration helper for camera sensor drivers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hXz:c:func:`v4l2_async_register_subdev_sensor` is a helper function for sensor drivers registering their own async connection, but it also registers a notifier and further registers async connections for lens and flash devices found in firmware. The notifier for the sub-device is unregistered and cleaned up with the async sub-device, using :c:func:`v4l2_async_unregister_subdev`.h](h)}(h+:c:func:`v4l2_async_register_subdev_sensor`h]h)}(hj h]h#v4l2_async_register_subdev_sensor()}(hj hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj!v4l2_async_register_subdev_sensoruh1hhhhKhj ubhX( is a helper function for sensor drivers registering their own async connection, but it also registers a notifier and further registers async connections for lens and flash devices found in firmware. The notifier for the sub-device is unregistered and cleaned up with the async sub-device, using }(hj hhhNhNubh)}(h&:c:func:`v4l2_async_unregister_subdev`h]h)}(hj h]hv4l2_async_unregister_subdev()}(hj hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_async_unregister_subdevuh1hhhhKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubeh}(h]Easynchronous-sub-device-registration-helper-for-camera-sensor-driversah ]h"]Easynchronous sub-device registration helper for camera sensor driversah$]h&]uh1hhj[hhhhhKubh)}(hhh](h)}(h(Asynchronous sub-device notifier exampleh]h(Asynchronous sub-device notifier example}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hThese functions allocate an async connection descriptor which is of type struct :c:type:`v4l2_async_connection` embedded in a driver-specific struct. The &struct :c:type:`v4l2_async_connection` shall be the first member of this struct:h](hPThese functions allocate an async connection descriptor which is of type struct }(hj( hhhNhNubh)}(h:c:type:`v4l2_async_connection`h]h)}(hj2 h]hv4l2_async_connection}(hj4 hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj0 ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_async_connectionuh1hhhhKhj( ubh3 embedded in a driver-specific struct. The &struct }(hj( hhhNhNubh)}(h:c:type:`v4l2_async_connection`h]h)}(hjU h]hv4l2_async_connection}(hjW hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjS ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_async_connectionuh1hhhhKhj( ubh* shall be the first member of this struct:}(hj( hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj*)}(hXdstruct my_async_connection { struct v4l2_async_connection asc; ... }; struct my_async_connection *my_asc; struct fwnode_handle *ep; ... my_asc = v4l2_async_nf_add_fwnode_remote(¬ifier, ep, struct my_async_connection); fwnode_handle_put(ep); if (IS_ERR(my_asc)) return PTR_ERR(my_asc);h]hXdstruct my_async_connection { struct v4l2_async_connection asc; ... }; struct my_async_connection *my_asc; struct fwnode_handle *ep; ... my_asc = v4l2_async_nf_add_fwnode_remote(¬ifier, ep, struct my_async_connection); fwnode_handle_put(ep); if (IS_ERR(my_asc)) return PTR_ERR(my_asc);}hj| sbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhKhj hhubeh}(h](asynchronous-sub-device-notifier-exampleah ]h"](asynchronous sub-device notifier exampleah$]h&]uh1hhj[hhhhhKubh)}(hhh](h)}(h*Asynchronous sub-device notifier callbacksh]h*Asynchronous sub-device notifier callbacks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hXqThe V4L2 core will then use these connection descriptors to match asynchronously registered subdevices to them. If a match is detected the ``.bound()`` notifier callback is called. After all connections have been bound the .complete() callback is called. When a connection is removed from the system the ``.unbind()`` method is called. All three callbacks are optional.h](hThe V4L2 core will then use these connection descriptors to match asynchronously registered subdevices to them. If a match is detected the }(hj hhhNhNubh)}(h ``.bound()``h]h.bound()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh notifier callback is called. After all connections have been bound the .complete() callback is called. When a connection is removed from the system the }(hj hhhNhNubh)}(h ``.unbind()``h]h .unbind()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh4 method is called. All three callbacks are optional.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXHDrivers can store any type of custom data in their driver-specific :c:type:`v4l2_async_connection` wrapper. If any of that data requires special handling when the structure is freed, drivers must implement the ``.destroy()`` notifier callback. The framework will call it right before freeing the :c:type:`v4l2_async_connection`.h](hCDrivers can store any type of custom data in their driver-specific }(hj hhhNhNubh)}(h:c:type:`v4l2_async_connection`h]h)}(hj h]hv4l2_async_connection}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_async_connectionuh1hhhhMhj ubhp wrapper. If any of that data requires special handling when the structure is freed, drivers must implement the }(hj hhhNhNubh)}(h``.destroy()``h]h .destroy()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubhH notifier callback. The framework will call it right before freeing the }(hj hhhNhNubh)}(h:c:type:`v4l2_async_connection`h]h)}(hj h]hv4l2_async_connection}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_async_connectionuh1hhhhMhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]*asynchronous-sub-device-notifier-callbacksah ]h"]*asynchronous sub-device notifier callbacksah$]h&]uh1hhj[hhhhhMubeh}(h]subdev-registrationah ]h"]subdev registrationah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hCalling subdev operationsh]hCalling subdev operations}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL hhhhhM"ubh)}(hXThe advantage of using :c:type:`v4l2_subdev` is that it is a generic struct and does not contain any knowledge about the underlying hardware. So a driver might contain several subdevs that use an I2C bus, but also a subdev that is controlled through GPIO pins. This distinction is only relevant when setting up the device, but once the subdev is registered it is completely transparent.h](hThe advantage of using }(hj] hhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjg h]h v4l2_subdev}(hji hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhje ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhM$hj] ubhXV is that it is a generic struct and does not contain any knowledge about the underlying hardware. So a driver might contain several subdevs that use an I2C bus, but also a subdev that is controlled through GPIO pins. This distinction is only relevant when setting up the device, but once the subdev is registered it is completely transparent.}(hj] hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM$hjL hhubh)}(hQOnce the subdev has been registered you can call an ops function either directly:h]hQOnce the subdev has been registered you can call an ops function either directly:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hjL hhubj*)}(h&err = sd->ops->core->g_std(sd, &norm);h]h&err = sd->ops->core->g_std(sd, &norm);}hj sbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhM-hjL hhubh)}(h.but it is better and easier to use this macro:h]h.but it is better and easier to use this macro:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hjL hhubj*)}(h/err = v4l2_subdev_call(sd, core, g_std, &norm);h]h/err = v4l2_subdev_call(sd, core, g_std, &norm);}hj sbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhM3hjL hhubh)}(hX8The macro will do the right ``NULL`` pointer checks and returns ``-ENODEV`` if :c:type:`sd ` is ``NULL``, ``-ENOIOCTLCMD`` if either :c:type:`sd `->core or :c:type:`sd `->core->g_std is ``NULL``, or the actual result of the :c:type:`sd `->ops->core->g_std ops.h](hThe macro will do the right }(hj hhhNhNubh)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh pointer checks and returns }(hj hhhNhNubh)}(h ``-ENODEV``h]h-ENODEV}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh if }(hj hhhNhNubh)}(h:c:type:`sd `h]h)}(hj h]hsd}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhM7hj ubh is }(hj hhhNhNubh)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh, }(hj hhhNhNubh)}(h``-ENOIOCTLCMD``h]h -ENOIOCTLCMD}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh if either }(hj hhhNhNubh)}(h:c:type:`sd `h]h)}(hj= h]hsd}(hj? hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj; ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhM7hj ubh ->core or }(hj hhhNhNubh)}(h:c:type:`sd `h]h)}(hj` h]hsd}(hjb hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj^ ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhM7hj ubh->core->g_std is }(hj hhhNhNubh)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh, or the actual result of the }(hj hhhNhNubh)}(h:c:type:`sd `h]h)}(hj h]hsd}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhM7hj ubh->ops->core->g_std ops.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM7hjL hhubh)}(h?It is also possible to call all or a subset of the sub-devices:h]h?It is also possible to call all or a subset of the sub-devices:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM<hjL hhubj*)}(h6v4l2_device_call_all(v4l2_dev, 0, core, g_std, &norm);h]h6v4l2_device_call_all(v4l2_dev, 0, core, g_std, &norm);}hj sbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhM>hjL hhubh)}(h}Any subdev that does not support this ops is skipped and error results are ignored. If you want to check for errors use this:h]h}Any subdev that does not support this ops is skipped and error results are ignored. If you want to check for errors use this:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhjL hhubj*)}(hBerr = v4l2_device_call_until_err(v4l2_dev, 0, core, g_std, &norm);h]hBerr = v4l2_device_call_until_err(v4l2_dev, 0, core, g_std, &norm);}hj sbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhMEhjL hhubh)}(hAny error except ``-ENOIOCTLCMD`` will exit the loop with that error. If no errors (except ``-ENOIOCTLCMD``) occurred, then 0 is returned.h](hAny error except }(hj hhhNhNubh)}(h``-ENOIOCTLCMD``h]h -ENOIOCTLCMD}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh: will exit the loop with that error. If no errors (except }(hj hhhNhNubh)}(h``-ENOIOCTLCMD``h]h -ENOIOCTLCMD}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh) occurred, then 0 is returned.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMIhjL hhubh)}(hXThe second argument to both calls is a group ID. If 0, then all subdevs are called. If non-zero, then only those whose group ID match that value will be called. Before a bridge driver registers a subdev it can set :c:type:`sd `->grp_id to whatever value it wants (it's 0 by default). This value is owned by the bridge driver and the sub-device driver will never modify or use it.h](hThe second argument to both calls is a group ID. If 0, then all subdevs are called. If non-zero, then only those whose group ID match that value will be called. Before a bridge driver registers a subdev it can set }(hj( hhhNhNubh)}(h:c:type:`sd `h]h)}(hj2 h]hsd}(hj4 hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj0 ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMLhj( ubh->grp_id to whatever value it wants (it’s 0 by default). This value is owned by the bridge driver and the sub-device driver will never modify or use it.}(hj( hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMLhjL hhubh)}(hXThe group ID gives the bridge driver more control how callbacks are called. For example, there may be multiple audio chips on a board, each capable of changing the volume. But usually only one will actually be used when the user want to change the volume. You can set the group ID for that subdev to e.g. AUDIO_CONTROLLER and specify that as the group ID value when calling ``v4l2_device_call_all()``. That ensures that it will only go to the subdev that needs it.h](hXvThe group ID gives the bridge driver more control how callbacks are called. For example, there may be multiple audio chips on a board, each capable of changing the volume. But usually only one will actually be used when the user want to change the volume. You can set the group ID for that subdev to e.g. AUDIO_CONTROLLER and specify that as the group ID value when calling }(hjY hhhNhNubh)}(h``v4l2_device_call_all()``h]hv4l2_device_call_all()}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY ubh@. That ensures that it will only go to the subdev that needs it.}(hjY hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMShjL hhubh)}(hX#If the sub-device needs to notify its v4l2_device parent of an event, then it can call ``v4l2_subdev_notify(sd, notification, arg)``. This macro checks whether there is a ``notify()`` callback defined and returns ``-ENODEV`` if not. Otherwise the result of the ``notify()`` call is returned.h](hWIf the sub-device needs to notify its v4l2_device parent of an event, then it can call }(hjy hhhNhNubh)}(h-``v4l2_subdev_notify(sd, notification, arg)``h]h)v4l2_subdev_notify(sd, notification, arg)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy ubh'. This macro checks whether there is a }(hjy hhhNhNubh)}(h ``notify()``h]hnotify()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy ubh callback defined and returns }(hjy hhhNhNubh)}(h ``-ENODEV``h]h-ENODEV}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy ubh% if not. Otherwise the result of the }(hjy hhhNhNubh)}(h ``notify()``h]hnotify()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy ubh call is returned.}(hjy hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM[hjL hhubeh}(h]calling-subdev-operationsah ]h"]calling subdev operationsah$]h&]uh1hhhhhhhhM"ubeh}(h]v4l2-sub-devicesah ]h"]v4l2 sub-devicesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hV4L2 sub-device userspace APIh]hV4L2 sub-device userspace API}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMaubh)}(hXBridge drivers traditionally expose one or multiple video nodes to userspace, and control subdevices through the :c:type:`v4l2_subdev_ops` operations in response to video node operations. This hides the complexity of the underlying hardware from applications. For complex devices, finer-grained control of the device than what the video nodes offer may be required. In those cases, bridge drivers that implement :ref:`the media controller API ` may opt for making the subdevice operations directly accessible from userspace.h](hqBridge drivers traditionally expose one or multiple video nodes to userspace, and control subdevices through the }(hj hhhNhNubh)}(h:c:type:`v4l2_subdev_ops`h]h)}(hj h]hv4l2_subdev_ops}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_subdev_opsuh1hhhhMchj ubhX operations in response to video node operations. This hides the complexity of the underlying hardware from applications. For complex devices, finer-grained control of the device than what the video nodes offer may be required. In those cases, bridge drivers that implement }(hj hhhNhNubh)}(h2:ref:`the media controller API `h]hinline)}(hjh]hthe media controller API}(hj!hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainj+reftyperef refexplicitrefwarnjmedia_controlleruh1hhhhMchj ubhP may opt for making the subdevice operations directly accessible from userspace.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMchj hhubh)}(hDevice nodes named ``v4l-subdev``\ *X* can be created in ``/dev`` to access sub-devices directly. If a sub-device supports direct userspace configuration it must set the ``V4L2_SUBDEV_FL_HAS_DEVNODE`` flag before being registered.h](hDevice nodes named }(hjGhhhNhNubh)}(h``v4l-subdev``h]h v4l-subdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubh }(hjGhhhNhNubhemphasis)}(h*X*h]hX}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jahjGubh can be created in }(hjGhhhNhNubh)}(h``/dev``h]h/dev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubhi to access sub-devices directly. If a sub-device supports direct userspace configuration it must set the }(hjGhhhNhNubh)}(h``V4L2_SUBDEV_FL_HAS_DEVNODE``h]hV4L2_SUBDEV_FL_HAS_DEVNODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubh flag before being registered.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMkhj hhubh)}(hX-After registering sub-devices, the :c:type:`v4l2_device` driver can create device nodes for all registered sub-devices marked with ``V4L2_SUBDEV_FL_HAS_DEVNODE`` by calling :c:func:`v4l2_device_register_subdev_nodes`. Those device nodes will be automatically removed when sub-devices are unregistered.h](h#After registering sub-devices, the }(hjhhhNhNubh)}(h:c:type:`v4l2_device`h]h)}(hjh]h v4l2_device}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_deviceuh1hhhhMohjubhK driver can create device nodes for all registered sub-devices marked with }(hjhhhNhNubh)}(h``V4L2_SUBDEV_FL_HAS_DEVNODE``h]hV4L2_SUBDEV_FL_HAS_DEVNODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh by calling }(hjhhhNhNubh)}(h+:c:func:`v4l2_device_register_subdev_nodes`h]h)}(hjh]h#v4l2_device_register_subdev_nodes()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj!v4l2_device_register_subdev_nodesuh1hhhhMohjubhU. Those device nodes will be automatically removed when sub-devices are unregistered.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMohj hhubh)}(h1The device node handles a subset of the V4L2 API.h]h1The device node handles a subset of the V4L2 API.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhj hhubh)}(h``VIDIOC_QUERYCTRL``, ``VIDIOC_QUERYMENU``, ``VIDIOC_G_CTRL``, ``VIDIOC_S_CTRL``, ``VIDIOC_G_EXT_CTRLS``, ``VIDIOC_S_EXT_CTRLS`` and ``VIDIOC_TRY_EXT_CTRLS``:h](h)}(h``VIDIOC_QUERYCTRL``h]hVIDIOC_QUERYCTRL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }(hjhhhNhNubh)}(h``VIDIOC_QUERYMENU``h]hVIDIOC_QUERYMENU}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }hjsbh)}(h``VIDIOC_G_CTRL``h]h VIDIOC_G_CTRL}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }hjsbh)}(h``VIDIOC_S_CTRL``h]h VIDIOC_S_CTRL}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }hjsbh)}(h``VIDIOC_G_EXT_CTRLS``h]hVIDIOC_G_EXT_CTRLS}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }hjsbh)}(h``VIDIOC_S_EXT_CTRLS``h]hVIDIOC_S_EXT_CTRLS}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh and }(hjhhhNhNubh)}(h``VIDIOC_TRY_EXT_CTRLS``h]hVIDIOC_TRY_EXT_CTRLS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMwhj hhubj)}(hXThe controls ioctls are identical to the ones defined in V4L2. They behave identically, with the only exception that they deal only with controls implemented in the sub-device. Depending on the driver, those controls can be also be accessed through one (or several) V4L2 device nodes. h]h)}(hXThe controls ioctls are identical to the ones defined in V4L2. They behave identically, with the only exception that they deal only with controls implemented in the sub-device. Depending on the driver, those controls can be also be accessed through one (or several) V4L2 device nodes.h]hXThe controls ioctls are identical to the ones defined in V4L2. They behave identically, with the only exception that they deal only with controls implemented in the sub-device. Depending on the driver, those controls can be also be accessed through one (or several) V4L2 device nodes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhhhMhj hhubh)}(hO``VIDIOC_DQEVENT``, ``VIDIOC_SUBSCRIBE_EVENT`` and ``VIDIOC_UNSUBSCRIBE_EVENT``h](h)}(h``VIDIOC_DQEVENT``h]hVIDIOC_DQEVENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }(hjhhhNhNubh)}(h``VIDIOC_SUBSCRIBE_EVENT``h]hVIDIOC_SUBSCRIBE_EVENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh and }(hjhhhNhNubh)}(h``VIDIOC_UNSUBSCRIBE_EVENT``h]hVIDIOC_UNSUBSCRIBE_EVENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(hXYThe events ioctls are identical to the ones defined in V4L2. They behave identically, with the only exception that they deal only with events generated by the sub-device. Depending on the driver, those events can also be reported by one (or several) V4L2 device nodes. Sub-device drivers that want to use events need to set the ``V4L2_SUBDEV_FL_HAS_EVENTS`` :c:type:`v4l2_subdev`.flags before registering the sub-device. After registration events can be queued as usual on the :c:type:`v4l2_subdev`.devnode device node. To properly support events, the ``poll()`` file operation is also implemented. h](h)}(hX The events ioctls are identical to the ones defined in V4L2. They behave identically, with the only exception that they deal only with events generated by the sub-device. Depending on the driver, those events can also be reported by one (or several) V4L2 device nodes.h]hX The events ioctls are identical to the ones defined in V4L2. They behave identically, with the only exception that they deal only with events generated by the sub-device. Depending on the driver, those events can also be reported by one (or several) V4L2 device nodes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hSub-device drivers that want to use events need to set the ``V4L2_SUBDEV_FL_HAS_EVENTS`` :c:type:`v4l2_subdev`.flags before registering the sub-device. After registration events can be queued as usual on the :c:type:`v4l2_subdev`.devnode device node.h](h;Sub-device drivers that want to use events need to set the }(hjhhhNhNubh)}(h``V4L2_SUBDEV_FL_HAS_EVENTS``h]hV4L2_SUBDEV_FL_HAS_EVENTS}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubhb.flags before registering the sub-device. After registration events can be queued as usual on the }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hj@h]h v4l2_subdev}(hjBhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubh.devnode device node.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hNTo properly support events, the ``poll()`` file operation is also implemented.h](h To properly support events, the }(hjghhhNhNubh)}(h ``poll()``h]hpoll()}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubh$ file operation is also implemented.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhj hhubh)}(hPrivate ioctlsh]hPrivate ioctls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(hqAll ioctls not in the above list are passed directly to the sub-device driver through the core::ioctl operation. h]h)}(hpAll ioctls not in the above list are passed directly to the sub-device driver through the core::ioctl operation.h]hpAll ioctls not in the above list are passed directly to the sub-device driver through the core::ioctl operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhhhMhj hhubeh}(h]v4l2-sub-device-userspace-apiah ]h"]v4l2 sub-device userspace apiah$]h&]uh1hhhhhhhhMaubh)}(hhh](h)}(h"Read-only sub-device userspace APIh]h"Read-only sub-device userspace API}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hXBridge drivers that control their connected subdevices through direct calls to the kernel API realized by :c:type:`v4l2_subdev_ops` structure do not usually want userspace to be able to change the same parameters through the subdevice device node and thus do not usually register any.h](hjBridge drivers that control their connected subdevices through direct calls to the kernel API realized by }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev_ops`h]h)}(hjh]hv4l2_subdev_ops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjv4l2_subdev_opsuh1hhhhMhjubh structure do not usually want userspace to be able to change the same parameters through the subdevice device node and thus do not usually register any.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hIt is sometimes useful to report to userspace the current subdevice configuration through a read-only API, that does not permit applications to change to the device parameters but allows interfacing to the subdevice device node to inspect them.h]hIt is sometimes useful to report to userspace the current subdevice configuration through a read-only API, that does not permit applications to change to the device parameters but allows interfacing to the subdevice device node to inspect them.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hXWFor instance, to implement cameras based on computational photography, userspace needs to know the detailed camera sensor configuration (in terms of skipping, binning, cropping and scaling) for each supported output resolution. To support such use cases, bridge drivers may expose the subdevice operations to userspace through a read-only API.h]hXWFor instance, to implement cameras based on computational photography, userspace needs to know the detailed camera sensor configuration (in terms of skipping, binning, cropping and scaling) for each supported output resolution. To support such use cases, bridge drivers may expose the subdevice operations to userspace through a read-only API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hTo create a read-only device node for all the subdevices registered with the ``V4L2_SUBDEV_FL_HAS_DEVNODE`` set, the :c:type:`v4l2_device` driver should call :c:func:`v4l2_device_register_ro_subdev_nodes`.h](hMTo create a read-only device node for all the subdevices registered with the }(hjhhhNhNubh)}(h``V4L2_SUBDEV_FL_HAS_DEVNODE``h]hV4L2_SUBDEV_FL_HAS_DEVNODE}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh set, the }(hjhhhNhNubh)}(h:c:type:`v4l2_device`h]h)}(hj5h]h v4l2_device}(hj7hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_deviceuh1hhhhMhjubh driver should call }(hjhhhNhNubh)}(h.:c:func:`v4l2_device_register_ro_subdev_nodes`h]h)}(hjXh]h&v4l2_device_register_ro_subdev_nodes()}(hjZhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj$v4l2_device_register_ro_subdev_nodesuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hAccess to the following ioctls for userspace applications is restricted on sub-device device nodes registered with :c:func:`v4l2_device_register_ro_subdev_nodes`.h](hsAccess to the following ioctls for userspace applications is restricted on sub-device device nodes registered with }(hjhhhNhNubh)}(h.:c:func:`v4l2_device_register_ro_subdev_nodes`h]h)}(hjh]h&v4l2_device_register_ro_subdev_nodes()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj$v4l2_device_register_ro_subdev_nodesuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hQ``VIDIOC_SUBDEV_S_FMT``, ``VIDIOC_SUBDEV_S_CROP``, ``VIDIOC_SUBDEV_S_SELECTION``:h](h)}(h``VIDIOC_SUBDEV_S_FMT``h]hVIDIOC_SUBDEV_S_FMT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }(hjhhhNhNubh)}(h``VIDIOC_SUBDEV_S_CROP``h]hVIDIOC_SUBDEV_S_CROP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, }hjsbh)}(h``VIDIOC_SUBDEV_S_SELECTION``h]hVIDIOC_SUBDEV_S_SELECTION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hThese ioctls are only allowed on a read-only subdevice device node for the :ref:`V4L2_SUBDEV_FORMAT_TRY ` formats and selection rectangles. h]h)}(hThese ioctls are only allowed on a read-only subdevice device node for the :ref:`V4L2_SUBDEV_FORMAT_TRY ` formats and selection rectangles.h](hKThese ioctls are only allowed on a read-only subdevice device node for the }(hjhhhNhNubh)}(h9:ref:`V4L2_SUBDEV_FORMAT_TRY `h]j )}(hjh]hV4L2_SUBDEV_FORMAT_TRY}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainj reftyperef refexplicitrefwarnjv4l2-subdev-format-whenceuh1hhhhMhjubh" formats and selection rectangles.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubh)}(h\``VIDIOC_SUBDEV_S_FRAME_INTERVAL``, ``VIDIOC_SUBDEV_S_DV_TIMINGS``, ``VIDIOC_SUBDEV_S_STD``:h](h)}(h"``VIDIOC_SUBDEV_S_FRAME_INTERVAL``h]hVIDIOC_SUBDEV_S_FRAME_INTERVAL}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubh, }(hj,hhhNhNubh)}(h``VIDIOC_SUBDEV_S_DV_TIMINGS``h]hVIDIOC_SUBDEV_S_DV_TIMINGS}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubh, }hj,sbh)}(h``VIDIOC_SUBDEV_S_STD``h]hVIDIOC_SUBDEV_S_STD}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubh:}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hsd, client, subdev_ops);h]h5v4l2_i2c_subdev_init(&state->sd, client, subdev_ops);}hjsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhMhjhhubh)}(hThis function will fill in all the fields of :c:type:`v4l2_subdev` ensure that the :c:type:`v4l2_subdev` and i2c_client both point to one another.h](h-This function will fill in all the fields of }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubh ensure that the }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubh* and i2c_client both point to one another.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hsYou should also add a helper inline function to go from a :c:type:`v4l2_subdev` pointer to a chipname_state struct:h](h:You should also add a helper inline function to go from a }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hj!h]h v4l2_subdev}(hj#hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubh$ pointer to a chipname_state struct:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj*)}(hstatic inline struct chipname_state *to_state(struct v4l2_subdev *sd) { return container_of(sd, struct chipname_state, sd); }h]hstatic inline struct chipname_state *to_state(struct v4l2_subdev *sd) { return container_of(sd, struct chipname_state, sd); }}hjHsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhMhjhhubh)}(hRUse this to go from the :c:type:`v4l2_subdev` struct to the ``i2c_client`` struct:h](hUse this to go from the }(hjWhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjah]h v4l2_subdev}(hjchhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjWubh struct to the }(hjWhhhNhNubh)}(h``i2c_client``h]h i2c_client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubh struct:}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj*)}(h4struct i2c_client *client = v4l2_get_subdevdata(sd);h]h4struct i2c_client *client = v4l2_get_subdevdata(sd);}hjsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhMhjhhubh)}(hHAnd this to go from an ``i2c_client`` to a :c:type:`v4l2_subdev` struct:h](hAnd this to go from an }(hjhhhNhNubh)}(h``i2c_client``h]h i2c_client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh to a }(hjhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjh]h v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubh struct:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj*)}(h4struct v4l2_subdev *sd = i2c_get_clientdata(client);h]h4struct v4l2_subdev *sd = i2c_get_clientdata(client);}hjsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhMhjhhubh)}(hXMake sure to call :c:func:`v4l2_device_unregister_subdev`\ (:c:type:`sd `) when the ``remove()`` callback is called. This will unregister the sub-device from the bridge driver. It is safe to call this even if the sub-device was never registered.h](hMake sure to call }(hjhhhNhNubh)}(h':c:func:`v4l2_device_unregister_subdev`h]h)}(hjh]hv4l2_device_unregister_subdev()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_device_unregister_subdevuh1hhhhMhjubh (}(hjhhhNhNubh)}(h:c:type:`sd `h]h)}(hj(h]hsd}(hj*hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjubh ) when the }(hjhhhNhNubh)}(h ``remove()``h]hremove()}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh callback is called. This will unregister the sub-device from the bridge driver. It is safe to call this even if the sub-device was never registered.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hXYou need to do this because when the bridge driver destroys the i2c adapter the ``remove()`` callbacks are called of the i2c devices on that adapter. After that the corresponding v4l2_subdev structures are invalid, so they have to be unregistered first. Calling :c:func:`v4l2_device_unregister_subdev`\ (:c:type:`sd `) from the ``remove()`` callback ensures that this is always done correctly.h](hPYou need to do this because when the bridge driver destroys the i2c adapter the }(hjahhhNhNubh)}(h ``remove()``h]hremove()}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubh callbacks are called of the i2c devices on that adapter. After that the corresponding v4l2_subdev structures are invalid, so they have to be unregistered first. Calling }(hjahhhNhNubh)}(h':c:func:`v4l2_device_unregister_subdev`h]h)}(hj}h]hv4l2_device_unregister_subdev()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_device_unregister_subdevuh1hhhhMhjaubh (}(hjahhhNhNubh)}(h:c:type:`sd `h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhMhjaubh ) from the }(hjahhhNhNubh)}(h ``remove()``h]hremove()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubh5 callback ensures that this is always done correctly.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(h` receive the correct state to operate on through the 'state' parameter. The state must be locked and unlocked by the caller by calling :c:func:`v4l2_subdev_lock_state()` and :c:func:`v4l2_subdev_unlock_state()`. The caller can do so by calling the subdev operation through the :c:func:`v4l2_subdev_call_state_active()` macro.h](h-V4L2 sub-device operations that use both the }(hjkhhhNhNubh)}(h9:ref:`ACTIVE and TRY formats `h]j )}(hjuh]hACTIVE and TRY formats}(hjwhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjv4l2-subdev-format-whenceuh1hhhhMPhjkubh receive the correct state to operate on through the ‘state’ parameter. The state must be locked and unlocked by the caller by calling }(hjkhhhNhNubh)}(h":c:func:`v4l2_subdev_lock_state()`h]h)}(hjh]hv4l2_subdev_lock_state()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_subdev_lock_stateuh1hhhhMPhjkubh and }(hjkhhhNhNubh)}(h$:c:func:`v4l2_subdev_unlock_state()`h]h)}(hjh]hv4l2_subdev_unlock_state()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_subdev_unlock_stateuh1hhhhMPhjkubhC. The caller can do so by calling the subdev operation through the }(hjkhhhNhNubh)}(h):c:func:`v4l2_subdev_call_state_active()`h]h)}(hjh]hv4l2_subdev_call_state_active()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_subdev_call_state_activeuh1hhhhMPhjkubh macro.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMPhjhhubh)}(hX+Operations that do not receive a state parameter implicitly operate on the subdevice active state, which drivers can exclusively access by calling :c:func:`v4l2_subdev_lock_and_get_active_state()`. The sub-device active state must equally be released by calling :c:func:`v4l2_subdev_unlock_state()`.h](hOperations that do not receive a state parameter implicitly operate on the subdevice active state, which drivers can exclusively access by calling }(hjhhhNhNubh)}(h1:c:func:`v4l2_subdev_lock_and_get_active_state()`h]h)}(hjh]h'v4l2_subdev_lock_and_get_active_state()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj%v4l2_subdev_lock_and_get_active_stateuh1hhhhMWhjubhB. The sub-device active state must equally be released by calling }(hjhhhNhNubh)}(h$:c:func:`v4l2_subdev_unlock_state()`h]h)}(hj3h]hv4l2_subdev_unlock_state()}(hj5hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_subdev_unlock_stateuh1hhhhMWhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMWhjhhubh)}(hDrivers must never manually access the state stored in the :c:type:`v4l2_subdev` or in the file handle without going through the designated helpers.h](h;Drivers must never manually access the state stored in the }(hjZhhhNhNubh)}(h:c:type:`v4l2_subdev`h]h)}(hjdh]h v4l2_subdev}(hjfhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnj v4l2_subdevuh1hhhhM\hjZubhD or in the file handle without going through the designated helpers.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM\hjhhubh)}(hXWhile the V4L2 core passes the correct try or active state to the subdevice operations, many existing device drivers pass a NULL state when calling operations with :c:func:`v4l2_subdev_call()`. This legacy construct causes issues with subdevice drivers that let the V4L2 core manage the active state, as they expect to receive the appropriate state as a parameter. To help the conversion of subdevice drivers to a managed active state without having to convert all callers at the same time, an additional wrapper layer has been added to v4l2_subdev_call(), which handles the NULL case by getting and locking the callee's active state with :c:func:`v4l2_subdev_lock_and_get_active_state()`, and unlocking the state after the call.h](hWhile the V4L2 core passes the correct try or active state to the subdevice operations, many existing device drivers pass a NULL state when calling operations with }(hjhhhNhNubh)}(h:c:func:`v4l2_subdev_call()`h]h)}(hjh]hv4l2_subdev_call()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjv4l2_subdev_calluh1hhhhM_hjubhX. This legacy construct causes issues with subdevice drivers that let the V4L2 core manage the active state, as they expect to receive the appropriate state as a parameter. To help the conversion of subdevice drivers to a managed active state without having to convert all callers at the same time, an additional wrapper layer has been added to v4l2_subdev_call(), which handles the NULL case by getting and locking the callee’s active state with }(hjhhhNhNubh)}(h1:c:func:`v4l2_subdev_lock_and_get_active_state()`h]h)}(hjh]h'v4l2_subdev_lock_and_get_active_state()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnj%v4l2_subdev_lock_and_get_active_stateuh1hhhhM_hjubh), and unlocking the state after the call.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM_hjhhubh)}(hXThe whole subdev state is in reality split into three parts: the v4l2_subdev_state, subdev controls and subdev driver's internal state. In the future these parts should be combined into a single state. For the time being we need a way to handle the locking for these parts. This can be accomplished by sharing a lock. The v4l2_ctrl_handler already supports this via its 'lock' pointer and the same model is used with states. The driver can do the following before calling v4l2_subdev_init_finalize():h]hXThe whole subdev state is in reality split into three parts: the v4l2_subdev_state, subdev controls and subdev driver’s internal state. In the future these parts should be combined into a single state. For the time being we need a way to handle the locking for these parts. This can be accomplished by sharing a lock. The v4l2_ctrl_handler already supports this via its ‘lock’ pointer and the same model is used with states. The driver can do the following before calling v4l2_subdev_init_finalize():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhjhhubj*)}(hEsd->ctrl_handler->lock = &priv->mutex; sd->state_lock = &priv->mutex;h]hEsd->ctrl_handler->lock = &priv->mutex; sd->state_lock = &priv->mutex;}hjsbah}(h]h ]h"]h$]h&]hhj9j:hj;}uh1j)hhhMrhjhhubh)}(hKThis shares the driver's private mutex between the controls and the states.h]hMThis shares the driver’s private mutex between the controls and the states.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjhhubeh}(h]%centrally-managed-subdev-active-stateah ]h"]%centrally managed subdev active stateah$]h&]uh1hhhhhhhhM5ubh)}(hhh](h)}(h4Streams, multiplexed media pads and internal routingh]h4Streams, multiplexed media pads and internal routing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMzubh)}(hA subdevice driver can implement support for multiplexed streams by setting the V4L2_SUBDEV_FL_STREAMS subdev flag and implementing support for centrally managed subdev active state, routing and stream based configuration.h]hA subdevice driver can implement support for multiplexed streams by setting the V4L2_SUBDEV_FL_STREAMS subdev flag and implementing support for centrally managed subdev active state, routing and stream based configuration.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hjhhubeh}(h]3streams-multiplexed-media-pads-and-internal-routingah ]h"]4streams, multiplexed media pads and internal routingah$]h&]uh1hhhhhhhhMzubh)}(hhh](h)}(h-V4L2 sub-device functions and data structuresh]h-V4L2 sub-device functions and data structures}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hhhhhMubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlev4l2_decode_vbi_line (C struct)c.v4l2_decode_vbi_linehNtauh1jJhj9hhhNhNubhdesc)}(hhh](hdesc_signature)}(hv4l2_decode_vbi_lineh]hdesc_signature_line)}(hstruct v4l2_decode_vbi_lineh](hdesc_sig_keyword)}(hstructh]hstruct}(hjnhhhNhNubah}(h]h ]kah"]h$]h&]uh1jlhjhhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1j~hjhhhhj}hKubh desc_name)}(hv4l2_decode_vbi_lineh]h desc_sig_name)}(hjdh]hv4l2_decode_vbi_line}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jhjhhhhj}hKubeh}(h]h ]h"]h$]h&]hh add_permalinkuh1jfsphinx_line_type declaratorhjbhhhj}hKubah}(h]jYah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j`hj}hKhj]hhubh desc_content)}(hhh]h)}(hused to decode_vbi_lineh]hused to decode_vbi_line}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK,hjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj}hKubeh}(h]h ](hstructeh"]h$]h&]domainhobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j[hhhj9hNhNubh container)}(hX**Definition**:: struct v4l2_decode_vbi_line { u32 is_second_field; u8 *p; u32 line; u32 type; }; **Members** ``is_second_field`` Set to 0 for the first (odd) field; set to 1 for the second (even) field. ``p`` Pointer to the sliced VBI data from the decoder. On exit, points to the start of the payload. ``line`` Line number of the sliced VBI data (1-23) ``type`` VBI service type (V4L2_SLICED_*). 0 if no service foundh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK0hjubj*)}(h`struct v4l2_decode_vbi_line { u32 is_second_field; u8 *p; u32 line; u32 type; };h]h`struct v4l2_decode_vbi_line { u32 is_second_field; u8 *p; u32 line; u32 type; };}hj sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK2hjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK9hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h^``is_second_field`` Set to 0 for the first (odd) field; set to 1 for the second (even) field. h](hterm)}(h``is_second_field``h]h)}(hjAh]his_second_field}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK0hj9ubh definition)}(hhh]h)}(hISet to 0 for the first (odd) field; set to 1 for the second (even) field.h]hISet to 0 for the first (odd) field; set to 1 for the second (even) field.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK/hjYubah}(h]h ]h"]h$]h&]uh1jWhj9ubeh}(h]h ]h"]h$]h&]uh1j7hjVhK0hj4ubj8)}(hd``p`` Pointer to the sliced VBI data from the decoder. On exit, points to the start of the payload. h](j>)}(h``p``h]h)}(hj}h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK2hjwubjX)}(hhh]h)}(h]Pointer to the sliced VBI data from the decoder. On exit, points to the start of the payload.h]h]Pointer to the sliced VBI data from the decoder. On exit, points to the start of the payload.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK1hjubah}(h]h ]h"]h$]h&]uh1jWhjwubeh}(h]h ]h"]h$]h&]uh1j7hjhK2hj4ubj8)}(h3``line`` Line number of the sliced VBI data (1-23) h](j>)}(h``line``h]h)}(hjh]hline}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK3hjubjX)}(hhh]h)}(h)Line number of the sliced VBI data (1-23)h]h)Line number of the sliced VBI data (1-23)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK3hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhK3hj4ubj8)}(h@``type`` VBI service type (V4L2_SLICED_*). 0 if no service foundh](j>)}(h``type``h]h)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK3hjubjX)}(hhh]h)}(h7VBI service type (V4L2_SLICED_*). 0 if no service foundh]h7VBI service type (V4L2_SLICED_*). 0 if no service found}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK4hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhK3hj4ubeh}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_subdev_io_pin_bits (C enum)c.v4l2_subdev_io_pin_bitshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_io_pin_bitsh]jg)}(henum v4l2_subdev_io_pin_bitsh](jm)}(henumh]henum}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK:ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjFhhhjXhK:ubj)}(hv4l2_subdev_io_pin_bitsh]j)}(hjDh]hv4l2_subdev_io_pin_bits}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]hhuh1jhjFhhhjXhK:ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjBhhhjXhK:ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1j`hjXhK:hj?hhubj)}(hhh]h)}(h,Subdevice external IO pin configuration bitsh]h,Subdevice external IO pin configuration bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhhjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhK:ubeh}(h]h ](henumeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX**Constants** ``V4L2_SUBDEV_IO_PIN_DISABLE`` disables a pin config. ENABLE assumed. ``V4L2_SUBDEV_IO_PIN_OUTPUT`` set it if pin is an output. ``V4L2_SUBDEV_IO_PIN_INPUT`` set it if pin is an input. ``V4L2_SUBDEV_IO_PIN_SET_VALUE`` to set the output value via :c:type:`struct v4l2_subdev_io_pin_config `->value. ``V4L2_SUBDEV_IO_PIN_ACTIVE_LOW`` pin active is bit 0. Otherwise, ACTIVE HIGH is assumed.h](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKlhjubj3)}(hhh](j8)}(hF``V4L2_SUBDEV_IO_PIN_DISABLE`` disables a pin config. ENABLE assumed. h](j>)}(h``V4L2_SUBDEV_IO_PIN_DISABLE``h]h)}(hjh]hV4L2_SUBDEV_IO_PIN_DISABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKohjubjX)}(hhh]h)}(h&disables a pin config. ENABLE assumed.h]h&disables a pin config. ENABLE assumed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKohjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhKohjubj8)}(h:``V4L2_SUBDEV_IO_PIN_OUTPUT`` set it if pin is an output. h](j>)}(h``V4L2_SUBDEV_IO_PIN_OUTPUT``h]h)}(hjh]hV4L2_SUBDEV_IO_PIN_OUTPUT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKrhjubjX)}(hhh]h)}(hset it if pin is an output.h]hset it if pin is an output.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKrhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhKrhjubj8)}(h8``V4L2_SUBDEV_IO_PIN_INPUT`` set it if pin is an input. h](j>)}(h``V4L2_SUBDEV_IO_PIN_INPUT``h]h)}(hj@h]hV4L2_SUBDEV_IO_PIN_INPUT}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKuhj:ubjX)}(hhh]h)}(hset it if pin is an input.h]hset it if pin is an input.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKuhjVubah}(h]h ]h"]h$]h&]uh1jWhj:ubeh}(h]h ]h"]h$]h&]uh1j7hjUhKuhjubj8)}(h``V4L2_SUBDEV_IO_PIN_SET_VALUE`` to set the output value via :c:type:`struct v4l2_subdev_io_pin_config `->value. h](j>)}(h ``V4L2_SUBDEV_IO_PIN_SET_VALUE``h]h)}(hjyh]hV4L2_SUBDEV_IO_PIN_SET_VALUE}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKyhjsubjX)}(hhh]h)}(hjto set the output value via :c:type:`struct v4l2_subdev_io_pin_config `->value.h](hto set the output value via }(hjhhhNhNubh)}(hF:c:type:`struct v4l2_subdev_io_pin_config `h]h)}(hjh]h struct v4l2_subdev_io_pin_config}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sbjv4l2_subdev_io_pin_configuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKxhjubh->value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jWhjsubeh}(h]h ]h"]h$]h&]uh1j7hjhKyhjubj8)}(hY``V4L2_SUBDEV_IO_PIN_ACTIVE_LOW`` pin active is bit 0. Otherwise, ACTIVE HIGH is assumed.h](j>)}(h!``V4L2_SUBDEV_IO_PIN_ACTIVE_LOW``h]h)}(hjh]hV4L2_SUBDEV_IO_PIN_ACTIVE_LOW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK|hjubjX)}(hhh]h)}(h7pin active is bit 0. Otherwise, ACTIVE HIGH is assumed.h]h7pin active is bit 0. Otherwise, ACTIVE HIGH is assumed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK|hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhK|hjubeh}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_io_pin_config (C struct)c.v4l2_subdev_io_pin_confighNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_io_pin_configh]jg)}(h struct v4l2_subdev_io_pin_configh](jm)}(hjph]hstruct}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj3hhhjDhKubj)}(hv4l2_subdev_io_pin_configh]j)}(hj1h]hv4l2_subdev_io_pin_config}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]hhuh1jhj3hhhjDhKubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj/hhhjDhKubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1j`hjDhKhj,hhubj)}(hhh]h)}(h'Subdevice external IO pin configurationh]h'Subdevice external IO pin configuration}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhK|hjvhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjDhKubeh}(h]h ](hstructeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_io_pin_config { u32 flags; u8 pin; u8 function; u8 value; u8 strength; }; **Members** ``flags`` bitmask with flags for this pin's config, whose bits are defined by :c:type:`enum v4l2_subdev_io_pin_bits `. ``pin`` Chip external IO pin to configure ``function`` Internal signal pad/function to route to IO pin ``value`` Initial value for pin - e.g. GPIO output value ``strength`` Pin drive strengthh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubj*)}(hpstruct v4l2_subdev_io_pin_config { u32 flags; u8 pin; u8 function; u8 value; u8 strength; };h]hpstruct v4l2_subdev_io_pin_config { u32 flags; u8 pin; u8 function; u8 value; u8 strength; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubj3)}(hhh](j8)}(h``flags`` bitmask with flags for this pin's config, whose bits are defined by :c:type:`enum v4l2_subdev_io_pin_bits `. h](j>)}(h ``flags``h]h)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubjX)}(hhh]h)}(hbitmask with flags for this pin's config, whose bits are defined by :c:type:`enum v4l2_subdev_io_pin_bits `.h](hFbitmask with flags for this pin’s config, whose bits are defined by }(hjhhhNhNubh)}(h@:c:type:`enum v4l2_subdev_io_pin_bits `h]h)}(hj h]henum v4l2_subdev_io_pin_bits}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_io_pin_bitsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hKhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhKhjubj8)}(h*``pin`` Chip external IO pin to configure h](j>)}(h``pin``h]h)}(hjCh]hpin}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj=ubjX)}(hhh]h)}(h!Chip external IO pin to configureh]h!Chip external IO pin to configure}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjYubah}(h]h ]h"]h$]h&]uh1jWhj=ubeh}(h]h ]h"]h$]h&]uh1j7hjXhKhjubj8)}(h=``function`` Internal signal pad/function to route to IO pin h](j>)}(h ``function``h]h)}(hj|h]hfunction}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjvubjX)}(hhh]h)}(h/Internal signal pad/function to route to IO pinh]h/Internal signal pad/function to route to IO pin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jWhjvubeh}(h]h ]h"]h$]h&]uh1j7hjhKhjubj8)}(h9``value`` Initial value for pin - e.g. GPIO output value h](j>)}(h ``value``h]h)}(hjh]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubjX)}(hhh]h)}(h.Initial value for pin - e.g. GPIO output valueh]h.Initial value for pin - e.g. GPIO output value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhKhjubj8)}(h``strength`` Pin drive strengthh](j>)}(h ``strength``h]h)}(hjh]hstrength}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjubjX)}(hhh]h)}(hPin drive strengthh]hPin drive strength}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj hKhjubeh}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_core_ops (C struct)c.v4l2_subdev_core_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_core_opsh]jg)}(hstruct v4l2_subdev_core_opsh](jm)}(hjph]hstruct}(hjH hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjD hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKubj)}(h h]h }(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjD hhhjU hKubj)}(hv4l2_subdev_core_opsh]j)}(hjB h]hv4l2_subdev_core_ops}(hjh hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjD hhhjU hKubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj@ hhhjU hKubah}(h]j; ah ](jjeh"]h$]h&]jj)jhuh1j`hjU hKhj= hhubj)}(hhh]h)}(h%Define core ops callbacks for subdevsh]h%Define core ops callbacks for subdevs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj= hhhjU hKubeh}(h]h ](hstructeh"]h$]h&]jhjj jj jjjuh1j[hhhj9hNhNubj)}(hX.**Definition**:: struct v4l2_subdev_core_ops { int (*log_status)(struct v4l2_subdev *sd); int (*s_io_pin_config)(struct v4l2_subdev *sd, size_t n, struct v4l2_subdev_io_pin_config *pincfg); int (*init)(struct v4l2_subdev *sd, u32 val); int (*load_fw)(struct v4l2_subdev *sd); int (*reset)(struct v4l2_subdev *sd, u32 val); int (*s_gpio)(struct v4l2_subdev *sd, u32 val); long (*command)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); #ifdef CONFIG_COMPAT; long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg); #endif; #ifdef CONFIG_VIDEO_ADV_DEBUG; int (*g_register)(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg); int (*s_register)(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg); #endif; int (*s_power)(struct v4l2_subdev *sd, int on); int (*interrupt_service_routine)(struct v4l2_subdev *sd, u32 status, bool *handled); int (*subscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); }; **Members** ``log_status`` callback for VIDIOC_LOG_STATUS() ioctl handler code. ``s_io_pin_config`` configure one or more chip I/O pins for chips that multiplex different internal signal pads out to IO pins. This function takes a pointer to an array of 'n' pin configuration entries, one for each pin being configured. This function could be called at times other than just subdevice initialization. ``init`` initialize the sensor registers to some sort of reasonable default values. Do not use for new drivers and should be removed in existing drivers. ``load_fw`` load firmware. ``reset`` generic reset command. The argument selects which subsystems to reset. Passing 0 will always reset the whole chip. Do not use for new drivers without discussing this first on the linux-media mailinglist. There should be no reason normally to reset a device. ``s_gpio`` set GPIO pins. Very simple right now, might need to be extended with a direction argument if needed. ``command`` called by in-kernel drivers in order to call functions internal to subdev drivers driver that have a separate callback. ``ioctl`` called at the end of ioctl() syscall handler at the V4L2 core. used to provide support for private ioctls used on the driver. ``compat_ioctl32`` called when a 32 bits application uses a 64 bits Kernel, in order to fix data passed from/to userspace. ``g_register`` callback for VIDIOC_DBG_G_REGISTER() ioctl handler code. ``s_register`` callback for VIDIOC_DBG_S_REGISTER() ioctl handler code. ``s_power`` puts subdevice in power saving mode (on == 0) or normal operation mode (on == 1). DEPRECATED. See Documentation/driver-api/media/camera-sensor.rst . pre_streamon and post_streamoff callbacks can be used for e.g. setting the bus to LP-11 mode before s_stream is called. ``interrupt_service_routine`` Called by the bridge chip's interrupt service handler, when an interrupt status has be raised due to this subdev, so that this subdev can handle the details. It may schedule work to be performed later. It must not sleep. **Called from an IRQ context**. ``subscribe_event`` used by the drivers to request the control framework that for it to be warned when the value of a control changes. ``unsubscribe_event`` remove event subscription from the control framework.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj ubj*)}(hXstruct v4l2_subdev_core_ops { int (*log_status)(struct v4l2_subdev *sd); int (*s_io_pin_config)(struct v4l2_subdev *sd, size_t n, struct v4l2_subdev_io_pin_config *pincfg); int (*init)(struct v4l2_subdev *sd, u32 val); int (*load_fw)(struct v4l2_subdev *sd); int (*reset)(struct v4l2_subdev *sd, u32 val); int (*s_gpio)(struct v4l2_subdev *sd, u32 val); long (*command)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); #ifdef CONFIG_COMPAT; long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg); #endif; #ifdef CONFIG_VIDEO_ADV_DEBUG; int (*g_register)(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg); int (*s_register)(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg); #endif; int (*s_power)(struct v4l2_subdev *sd, int on); int (*interrupt_service_routine)(struct v4l2_subdev *sd, u32 status, bool *handled); int (*subscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); };h]hXstruct v4l2_subdev_core_ops { int (*log_status)(struct v4l2_subdev *sd); int (*s_io_pin_config)(struct v4l2_subdev *sd, size_t n, struct v4l2_subdev_io_pin_config *pincfg); int (*init)(struct v4l2_subdev *sd, u32 val); int (*load_fw)(struct v4l2_subdev *sd); int (*reset)(struct v4l2_subdev *sd, u32 val); int (*s_gpio)(struct v4l2_subdev *sd, u32 val); long (*command)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); #ifdef CONFIG_COMPAT; long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg); #endif; #ifdef CONFIG_VIDEO_ADV_DEBUG; int (*g_register)(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg); int (*s_register)(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg); #endif; int (*s_power)(struct v4l2_subdev *sd, int on); int (*interrupt_service_routine)(struct v4l2_subdev *sd, u32 status, bool *handled); int (*subscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); };}hj sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj ubh)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj ubj3)}(hhh](j8)}(hD``log_status`` callback for VIDIOC_LOG_STATUS() ioctl handler code. h](j>)}(h``log_status``h]h)}(hj h]h log_status}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj ubjX)}(hhh]h)}(h4callback for VIDIOC_LOG_STATUS() ioctl handler code.h]h4callback for VIDIOC_LOG_STATUS() ioctl handler code.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj !hKhj !ubah}(h]h ]h"]h$]h&]uh1jWhj ubeh}(h]h ]h"]h$]h&]uh1j7hj !hKhj ubj8)}(hXB``s_io_pin_config`` configure one or more chip I/O pins for chips that multiplex different internal signal pads out to IO pins. This function takes a pointer to an array of 'n' pin configuration entries, one for each pin being configured. This function could be called at times other than just subdevice initialization. h](j>)}(h``s_io_pin_config``h]h)}(hj0!h]hs_io_pin_config}(hj2!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.!ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj*!ubjX)}(hhh]h)}(hX-configure one or more chip I/O pins for chips that multiplex different internal signal pads out to IO pins. This function takes a pointer to an array of 'n' pin configuration entries, one for each pin being configured. This function could be called at times other than just subdevice initialization.h]hX1configure one or more chip I/O pins for chips that multiplex different internal signal pads out to IO pins. This function takes a pointer to an array of ‘n’ pin configuration entries, one for each pin being configured. This function could be called at times other than just subdevice initialization.}(hjI!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjF!ubah}(h]h ]h"]h$]h&]uh1jWhj*!ubeh}(h]h ]h"]h$]h&]uh1j7hjE!hKhj ubj8)}(h``init`` initialize the sensor registers to some sort of reasonable default values. Do not use for new drivers and should be removed in existing drivers. h](j>)}(h``init``h]h)}(hjj!h]hinit}(hjl!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh!ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjd!ubjX)}(hhh]h)}(hinitialize the sensor registers to some sort of reasonable default values. Do not use for new drivers and should be removed in existing drivers.h]hinitialize the sensor registers to some sort of reasonable default values. Do not use for new drivers and should be removed in existing drivers.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj!ubah}(h]h ]h"]h$]h&]uh1jWhjd!ubeh}(h]h ]h"]h$]h&]uh1j7hj!hKhj ubj8)}(h``load_fw`` load firmware. h](j>)}(h ``load_fw``h]h)}(hj!h]hload_fw}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj!ubjX)}(hhh]h)}(hload firmware.h]hload firmware.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jWhj!ubeh}(h]h ]h"]h$]h&]uh1j7hj!hKhj ubj8)}(hX ``reset`` generic reset command. The argument selects which subsystems to reset. Passing 0 will always reset the whole chip. Do not use for new drivers without discussing this first on the linux-media mailinglist. There should be no reason normally to reset a device. h](j>)}(h ``reset``h]h)}(hj!h]hreset}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj!ubjX)}(hhh]h)}(hXgeneric reset command. The argument selects which subsystems to reset. Passing 0 will always reset the whole chip. Do not use for new drivers without discussing this first on the linux-media mailinglist. There should be no reason normally to reset a device.h]hXgeneric reset command. The argument selects which subsystems to reset. Passing 0 will always reset the whole chip. Do not use for new drivers without discussing this first on the linux-media mailinglist. There should be no reason normally to reset a device.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj!ubah}(h]h ]h"]h$]h&]uh1jWhj!ubeh}(h]h ]h"]h$]h&]uh1j7hj!hKhj ubj8)}(hp``s_gpio`` set GPIO pins. Very simple right now, might need to be extended with a direction argument if needed. h](j>)}(h ``s_gpio``h]h)}(hj"h]hs_gpio}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj"ubjX)}(hhh]h)}(hdset GPIO pins. Very simple right now, might need to be extended with a direction argument if needed.h]hdset GPIO pins. Very simple right now, might need to be extended with a direction argument if needed.}(hj0"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj-"ubah}(h]h ]h"]h$]h&]uh1jWhj"ubeh}(h]h ]h"]h$]h&]uh1j7hj,"hKhj ubj8)}(h``command`` called by in-kernel drivers in order to call functions internal to subdev drivers driver that have a separate callback. h](j>)}(h ``command``h]h)}(hjQ"h]hcommand}(hjS"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO"ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjK"ubjX)}(hhh]h)}(hwcalled by in-kernel drivers in order to call functions internal to subdev drivers driver that have a separate callback.h]hwcalled by in-kernel drivers in order to call functions internal to subdev drivers driver that have a separate callback.}(hjj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjg"ubah}(h]h ]h"]h$]h&]uh1jWhjK"ubeh}(h]h ]h"]h$]h&]uh1j7hjf"hKhj ubj8)}(h``ioctl`` called at the end of ioctl() syscall handler at the V4L2 core. used to provide support for private ioctls used on the driver. h](j>)}(h ``ioctl``h]h)}(hj"h]hioctl}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj"ubjX)}(hhh]h)}(h}called at the end of ioctl() syscall handler at the V4L2 core. used to provide support for private ioctls used on the driver.h]h}called at the end of ioctl() syscall handler at the V4L2 core. used to provide support for private ioctls used on the driver.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj"ubah}(h]h ]h"]h$]h&]uh1jWhj"ubeh}(h]h ]h"]h$]h&]uh1j7hj"hKhj ubj8)}(h{``compat_ioctl32`` called when a 32 bits application uses a 64 bits Kernel, in order to fix data passed from/to userspace. h](j>)}(h``compat_ioctl32``h]h)}(hj"h]hcompat_ioctl32}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj"ubjX)}(hhh]h)}(hgcalled when a 32 bits application uses a 64 bits Kernel, in order to fix data passed from/to userspace.h]hgcalled when a 32 bits application uses a 64 bits Kernel, in order to fix data passed from/to userspace.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj"ubah}(h]h ]h"]h$]h&]uh1jWhj"ubeh}(h]h ]h"]h$]h&]uh1j7hj"hKhj ubj8)}(hH``g_register`` callback for VIDIOC_DBG_G_REGISTER() ioctl handler code. h](j>)}(h``g_register``h]h)}(hj"h]h g_register}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj"ubjX)}(hhh]h)}(h8callback for VIDIOC_DBG_G_REGISTER() ioctl handler code.h]h8callback for VIDIOC_DBG_G_REGISTER() ioctl handler code.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj#ubah}(h]h ]h"]h$]h&]uh1jWhj"ubeh}(h]h ]h"]h$]h&]uh1j7hj#hKhj ubj8)}(hH``s_register`` callback for VIDIOC_DBG_S_REGISTER() ioctl handler code. h](j>)}(h``s_register``h]h)}(hj8#h]h s_register}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6#ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj2#ubjX)}(hhh]h)}(h8callback for VIDIOC_DBG_S_REGISTER() ioctl handler code.h]h8callback for VIDIOC_DBG_S_REGISTER() ioctl handler code.}(hjQ#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM#hKhjN#ubah}(h]h ]h"]h$]h&]uh1jWhj2#ubeh}(h]h ]h"]h$]h&]uh1j7hjM#hKhj ubj8)}(hX``s_power`` puts subdevice in power saving mode (on == 0) or normal operation mode (on == 1). DEPRECATED. See Documentation/driver-api/media/camera-sensor.rst . pre_streamon and post_streamoff callbacks can be used for e.g. setting the bus to LP-11 mode before s_stream is called. h](j>)}(h ``s_power``h]h)}(hjq#h]hs_power}(hjs#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo#ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjk#ubjX)}(hhh]h)}(hX puts subdevice in power saving mode (on == 0) or normal operation mode (on == 1). DEPRECATED. See Documentation/driver-api/media/camera-sensor.rst . pre_streamon and post_streamoff callbacks can be used for e.g. setting the bus to LP-11 mode before s_stream is called.h]hX puts subdevice in power saving mode (on == 0) or normal operation mode (on == 1). DEPRECATED. See Documentation/driver-api/media/camera-sensor.rst . pre_streamon and post_streamoff callbacks can be used for e.g. setting the bus to LP-11 mode before s_stream is called.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj#ubah}(h]h ]h"]h$]h&]uh1jWhjk#ubeh}(h]h ]h"]h$]h&]uh1j7hj#hKhj ubj8)}(hX``interrupt_service_routine`` Called by the bridge chip's interrupt service handler, when an interrupt status has be raised due to this subdev, so that this subdev can handle the details. It may schedule work to be performed later. It must not sleep. **Called from an IRQ context**. h](j>)}(h``interrupt_service_routine``h]h)}(hj#h]hinterrupt_service_routine}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj#ubjX)}(hhh]h)}(hCalled by the bridge chip's interrupt service handler, when an interrupt status has be raised due to this subdev, so that this subdev can handle the details. It may schedule work to be performed later. It must not sleep. **Called from an IRQ context**.h](hCalled by the bridge chip’s interrupt service handler, when an interrupt status has be raised due to this subdev, so that this subdev can handle the details. It may schedule work to be performed later. It must not sleep. }(hj#hhhNhNubj)}(h**Called from an IRQ context**h]hCalled from an IRQ context}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj#ubah}(h]h ]h"]h$]h&]uh1jWhj#ubeh}(h]h ]h"]h$]h&]uh1j7hj#hKhj ubj8)}(h``subscribe_event`` used by the drivers to request the control framework that for it to be warned when the value of a control changes. h](j>)}(h``subscribe_event``h]h)}(hj#h]hsubscribe_event}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj#ubjX)}(hhh]h)}(hrused by the drivers to request the control framework that for it to be warned when the value of a control changes.h]hrused by the drivers to request the control framework that for it to be warned when the value of a control changes.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj $ubah}(h]h ]h"]h$]h&]uh1jWhj#ubeh}(h]h ]h"]h$]h&]uh1j7hj $hKhj ubj8)}(hK``unsubscribe_event`` remove event subscription from the control framework.h](j>)}(h``unsubscribe_event``h]h)}(hj1$h]hunsubscribe_event}(hj3$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/$ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj+$ubjX)}(hhh]h)}(h5remove event subscription from the control framework.h]h5remove event subscription from the control framework.}(hjJ$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjG$ubah}(h]h ]h"]h$]h&]uh1jWhj+$ubeh}(h]h ]h"]h$]h&]uh1j7hjF$hKhj ubeh}(h]h ]h"]h$]h&]uh1j2hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_subdev_tuner_ops (C struct)c.v4l2_subdev_tuner_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_tuner_opsh]jg)}(hstruct v4l2_subdev_tuner_opsh](jm)}(hjph]hstruct}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj$hhhj$hKubj)}(hv4l2_subdev_tuner_opsh]j)}(hj$h]hv4l2_subdev_tuner_ops}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj$hhhj$hKubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj$hhhj$hKubah}(h]j~$ah ](jjeh"]h$]h&]jj)jhuh1j`hj$hKhj$hhubj)}(hhh]h)}(h8Callbacks used when v4l device was opened in radio mode.h]h8Callbacks used when v4l device was opened in radio mode.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj$hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hKubeh}(h]h ](hstructeh"]h$]h&]jhjj$jj$jjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_tuner_ops { int (*standby)(struct v4l2_subdev *sd); int (*s_radio)(struct v4l2_subdev *sd); int (*s_frequency)(struct v4l2_subdev *sd, const struct v4l2_frequency *freq); int (*g_frequency)(struct v4l2_subdev *sd, struct v4l2_frequency *freq); int (*enum_freq_bands)(struct v4l2_subdev *sd, struct v4l2_frequency_band *band); int (*g_tuner)(struct v4l2_subdev *sd, struct v4l2_tuner *vt); int (*s_tuner)(struct v4l2_subdev *sd, const struct v4l2_tuner *vt); int (*g_modulator)(struct v4l2_subdev *sd, struct v4l2_modulator *vm); int (*s_modulator)(struct v4l2_subdev *sd, const struct v4l2_modulator *vm); int (*s_type_addr)(struct v4l2_subdev *sd, struct tuner_setup *type); int (*s_config)(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *config); }; **Members** ``standby`` puts the tuner in standby mode. It will be woken up automatically the next time it is used. ``s_radio`` callback that switches the tuner to radio mode. drivers should explicitly call it when a tuner ops should operate on radio mode, before being able to handle it. Used on devices that have both AM/FM radio receiver and TV. ``s_frequency`` callback for VIDIOC_S_FREQUENCY() ioctl handler code. ``g_frequency`` callback for VIDIOC_G_FREQUENCY() ioctl handler code. freq->type must be filled in. Normally done by video_ioctl2() or the bridge driver. ``enum_freq_bands`` callback for VIDIOC_ENUM_FREQ_BANDS() ioctl handler code. ``g_tuner`` callback for VIDIOC_G_TUNER() ioctl handler code. ``s_tuner`` callback for VIDIOC_S_TUNER() ioctl handler code. **vt->type** must be filled in. Normally done by video_ioctl2 or the bridge driver. ``g_modulator`` callback for VIDIOC_G_MODULATOR() ioctl handler code. ``s_modulator`` callback for VIDIOC_S_MODULATOR() ioctl handler code. ``s_type_addr`` sets tuner type and its I2C addr. ``s_config`` sets tda9887 specific stuff, like port1, port2 and qssh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh:}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj$ubj*)}(hX9struct v4l2_subdev_tuner_ops { int (*standby)(struct v4l2_subdev *sd); int (*s_radio)(struct v4l2_subdev *sd); int (*s_frequency)(struct v4l2_subdev *sd, const struct v4l2_frequency *freq); int (*g_frequency)(struct v4l2_subdev *sd, struct v4l2_frequency *freq); int (*enum_freq_bands)(struct v4l2_subdev *sd, struct v4l2_frequency_band *band); int (*g_tuner)(struct v4l2_subdev *sd, struct v4l2_tuner *vt); int (*s_tuner)(struct v4l2_subdev *sd, const struct v4l2_tuner *vt); int (*g_modulator)(struct v4l2_subdev *sd, struct v4l2_modulator *vm); int (*s_modulator)(struct v4l2_subdev *sd, const struct v4l2_modulator *vm); int (*s_type_addr)(struct v4l2_subdev *sd, struct tuner_setup *type); int (*s_config)(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *config); };h]hX9struct v4l2_subdev_tuner_ops { int (*standby)(struct v4l2_subdev *sd); int (*s_radio)(struct v4l2_subdev *sd); int (*s_frequency)(struct v4l2_subdev *sd, const struct v4l2_frequency *freq); int (*g_frequency)(struct v4l2_subdev *sd, struct v4l2_frequency *freq); int (*enum_freq_bands)(struct v4l2_subdev *sd, struct v4l2_frequency_band *band); int (*g_tuner)(struct v4l2_subdev *sd, struct v4l2_tuner *vt); int (*s_tuner)(struct v4l2_subdev *sd, const struct v4l2_tuner *vt); int (*g_modulator)(struct v4l2_subdev *sd, struct v4l2_modulator *vm); int (*s_modulator)(struct v4l2_subdev *sd, const struct v4l2_modulator *vm); int (*s_type_addr)(struct v4l2_subdev *sd, struct tuner_setup *type); int (*s_config)(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *config); };}hj %sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj$ubh)}(h **Members**h]j)}(hj%h]hMembers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj$ubj3)}(hhh](j8)}(hh``standby`` puts the tuner in standby mode. It will be woken up automatically the next time it is used. h](j>)}(h ``standby``h]h)}(hj:%h]hstandby}(hj<%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8%ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj4%ubjX)}(hhh]h)}(h[puts the tuner in standby mode. It will be woken up automatically the next time it is used.h]h[puts the tuner in standby mode. It will be woken up automatically the next time it is used.}(hjS%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjP%ubah}(h]h ]h"]h$]h&]uh1jWhj4%ubeh}(h]h ]h"]h$]h&]uh1j7hjO%hKhj1%ubj8)}(h``s_radio`` callback that switches the tuner to radio mode. drivers should explicitly call it when a tuner ops should operate on radio mode, before being able to handle it. Used on devices that have both AM/FM radio receiver and TV. h](j>)}(h ``s_radio``h]h)}(hjt%h]hs_radio}(hjv%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr%ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjn%ubjX)}(hhh]h)}(hcallback that switches the tuner to radio mode. drivers should explicitly call it when a tuner ops should operate on radio mode, before being able to handle it. Used on devices that have both AM/FM radio receiver and TV.h]hcallback that switches the tuner to radio mode. drivers should explicitly call it when a tuner ops should operate on radio mode, before being able to handle it. Used on devices that have both AM/FM radio receiver and TV.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj%ubah}(h]h ]h"]h$]h&]uh1jWhjn%ubeh}(h]h ]h"]h$]h&]uh1j7hj%hKhj1%ubj8)}(hF``s_frequency`` callback for VIDIOC_S_FREQUENCY() ioctl handler code. h](j>)}(h``s_frequency``h]h)}(hj%h]h s_frequency}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj%ubjX)}(hhh]h)}(h5callback for VIDIOC_S_FREQUENCY() ioctl handler code.h]h5callback for VIDIOC_S_FREQUENCY() ioctl handler code.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jWhj%ubeh}(h]h ]h"]h$]h&]uh1j7hj%hKhj1%ubj8)}(h``g_frequency`` callback for VIDIOC_G_FREQUENCY() ioctl handler code. freq->type must be filled in. Normally done by video_ioctl2() or the bridge driver. h](j>)}(h``g_frequency``h]h)}(hj%h]h g_frequency}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj%ubjX)}(hhh]h)}(hcallback for VIDIOC_G_FREQUENCY() ioctl handler code. freq->type must be filled in. Normally done by video_ioctl2() or the bridge driver.h]hcallback for VIDIOC_G_FREQUENCY() ioctl handler code. freq->type must be filled in. Normally done by video_ioctl2() or the bridge driver.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj%ubah}(h]h ]h"]h$]h&]uh1jWhj%ubeh}(h]h ]h"]h$]h&]uh1j7hj%hKhj1%ubj8)}(hN``enum_freq_bands`` callback for VIDIOC_ENUM_FREQ_BANDS() ioctl handler code. h](j>)}(h``enum_freq_bands``h]h)}(hj!&h]henum_freq_bands}(hj#&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj&ubjX)}(hhh]h)}(h9callback for VIDIOC_ENUM_FREQ_BANDS() ioctl handler code.h]h9callback for VIDIOC_ENUM_FREQ_BANDS() ioctl handler code.}(hj:&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6&hKhj7&ubah}(h]h ]h"]h$]h&]uh1jWhj&ubeh}(h]h ]h"]h$]h&]uh1j7hj6&hKhj1%ubj8)}(h>``g_tuner`` callback for VIDIOC_G_TUNER() ioctl handler code. h](j>)}(h ``g_tuner``h]h)}(hjZ&h]hg_tuner}(hj\&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX&ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjT&ubjX)}(hhh]h)}(h1callback for VIDIOC_G_TUNER() ioctl handler code.h]h1callback for VIDIOC_G_TUNER() ioctl handler code.}(hjs&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo&hKhjp&ubah}(h]h ]h"]h$]h&]uh1jWhjT&ubeh}(h]h ]h"]h$]h&]uh1j7hjo&hKhj1%ubj8)}(h``s_tuner`` callback for VIDIOC_S_TUNER() ioctl handler code. **vt->type** must be filled in. Normally done by video_ioctl2 or the bridge driver. h](j>)}(h ``s_tuner``h]h)}(hj&h]hs_tuner}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj&ubjX)}(hhh]h)}(hcallback for VIDIOC_S_TUNER() ioctl handler code. **vt->type** must be filled in. Normally done by video_ioctl2 or the bridge driver.h](h2callback for VIDIOC_S_TUNER() ioctl handler code. }(hj&hhhNhNubj)}(h **vt->type**h]hvt->type}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubhG must be filled in. Normally done by video_ioctl2 or the bridge driver.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj&ubah}(h]h ]h"]h$]h&]uh1jWhj&ubeh}(h]h ]h"]h$]h&]uh1j7hj&hKhj1%ubj8)}(hF``g_modulator`` callback for VIDIOC_G_MODULATOR() ioctl handler code. h](j>)}(h``g_modulator``h]h)}(hj&h]h g_modulator}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj&ubjX)}(hhh]h)}(h5callback for VIDIOC_G_MODULATOR() ioctl handler code.h]h5callback for VIDIOC_G_MODULATOR() ioctl handler code.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj&ubah}(h]h ]h"]h$]h&]uh1jWhj&ubeh}(h]h ]h"]h$]h&]uh1j7hj&hKhj1%ubj8)}(hF``s_modulator`` callback for VIDIOC_S_MODULATOR() ioctl handler code. h](j>)}(h``s_modulator``h]h)}(hj'h]h s_modulator}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj'ubjX)}(hhh]h)}(h5callback for VIDIOC_S_MODULATOR() ioctl handler code.h]h5callback for VIDIOC_S_MODULATOR() ioctl handler code.}(hj1'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-'hKhj.'ubah}(h]h ]h"]h$]h&]uh1jWhj'ubeh}(h]h ]h"]h$]h&]uh1j7hj-'hKhj1%ubj8)}(h2``s_type_addr`` sets tuner type and its I2C addr. h](j>)}(h``s_type_addr``h]h)}(hjQ'h]h s_type_addr}(hjS'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO'ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhjK'ubjX)}(hhh]h)}(h!sets tuner type and its I2C addr.h]h!sets tuner type and its I2C addr.}(hjj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf'hKhjg'ubah}(h]h ]h"]h$]h&]uh1jWhjK'ubeh}(h]h ]h"]h$]h&]uh1j7hjf'hKhj1%ubj8)}(hC``s_config`` sets tda9887 specific stuff, like port1, port2 and qssh](j>)}(h ``s_config``h]h)}(hj'h]hs_config}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj'ubjX)}(hhh]h)}(h6sets tda9887 specific stuff, like port1, port2 and qssh]h6sets tda9887 specific stuff, like port1, port2 and qss}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhKhj'ubah}(h]h ]h"]h$]h&]uh1jWhj'ubeh}(h]h ]h"]h$]h&]uh1j7hj'hKhj1%ubeh}(h]h ]h"]h$]h&]uh1j2hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubh)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubhnote)}(hX%On devices that have both AM/FM and TV, it is up to the driver to explicitly call s_radio when the tuner should be switched to radio mode, before handling other :c:type:`struct v4l2_subdev_tuner_ops ` that would require it. An example of such usage is:: static void s_frequency(void *priv, const struct v4l2_frequency *f) { ... if (f.type == V4L2_TUNER_RADIO) v4l2_device_call_all(v4l2_dev, 0, tuner, s_radio); ... v4l2_device_call_all(v4l2_dev, 0, tuner, s_frequency); }h](h)}(hXOn devices that have both AM/FM and TV, it is up to the driver to explicitly call s_radio when the tuner should be switched to radio mode, before handling other :c:type:`struct v4l2_subdev_tuner_ops ` that would require it. An example of such usage is::h](hOn devices that have both AM/FM and TV, it is up to the driver to explicitly call s_radio when the tuner should be switched to radio mode, before handling other }(hj'hhhNhNubh)}(h>:c:type:`struct v4l2_subdev_tuner_ops `h]h)}(hj'h]hstruct v4l2_subdev_tuner_ops}(hj'hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_tuner_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj'ubh4 that would require it. An example of such usage is:}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhj'ubj*)}(hstatic void s_frequency(void *priv, const struct v4l2_frequency *f) { ... if (f.type == V4L2_TUNER_RADIO) v4l2_device_call_all(v4l2_dev, 0, tuner, s_radio); ... v4l2_device_call_all(v4l2_dev, 0, tuner, s_frequency); }h]hstatic void s_frequency(void *priv, const struct v4l2_frequency *f) { ... if (f.type == V4L2_TUNER_RADIO) v4l2_device_call_all(v4l2_dev, 0, tuner, s_radio); ... v4l2_device_call_all(v4l2_dev, 0, tuner, s_frequency); }}hj(sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj'ubeh}(h]h ]h"]h$]h&]uh1j'hj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_subdev_audio_ops (C struct)c.v4l2_subdev_audio_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_audio_opsh]jg)}(hstruct v4l2_subdev_audio_opsh](jm)}(hjph]hstruct}(hjI(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjE(hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjW(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjE(hhhjV(hMubj)}(hv4l2_subdev_audio_opsh]j)}(hjC(h]hv4l2_subdev_audio_ops}(hji(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje(ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjE(hhhjV(hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjA(hhhjV(hMubah}(h]j<(ah ](jjeh"]h$]h&]jj)jhuh1j`hjV(hMhj>(hhubj)}(hhh]h)}(h)Callbacks used for audio-related settingsh]h)Callbacks used for audio-related settings}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj>(hhhjV(hMubeh}(h]h ](hstructeh"]h$]h&]jhjj(jj(jjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_audio_ops { int (*s_clock_freq)(struct v4l2_subdev *sd, u32 freq); int (*s_i2s_clock_freq)(struct v4l2_subdev *sd, u32 freq); int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); int (*s_stream)(struct v4l2_subdev *sd, int enable); }; **Members** ``s_clock_freq`` set the frequency (in Hz) of the audio clock output. Used to slave an audio processor to the video decoder, ensuring that audio and video remain synchronized. Usual values for the frequency are 48000, 44100 or 32000 Hz. If the frequency is not supported, then -EINVAL is returned. ``s_i2s_clock_freq`` sets I2S speed in bps. This is used to provide a standard way to select I2S clock used by driving digital audio streams at some board designs. Usual values for the frequency are 1024000 and 2048000. If the frequency is not supported, then ``-EINVAL`` is returned. ``s_routing`` used to define the input and/or output pins of an audio chip, and any additional configuration data. Never attempt to use user-level input IDs (e.g. Composite, S-Video, Tuner) at this level. An i2c device shouldn't know about whether an input pin is connected to a Composite connector, become on another board or platform it might be connected to something else entirely. The calling driver is responsible for mapping a user-level input to the right pins on the i2c device. ``s_stream`` used to notify the audio code that stream will start or has stopped.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh:}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM#hj(ubj*)}(hX%struct v4l2_subdev_audio_ops { int (*s_clock_freq)(struct v4l2_subdev *sd, u32 freq); int (*s_i2s_clock_freq)(struct v4l2_subdev *sd, u32 freq); int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); int (*s_stream)(struct v4l2_subdev *sd, int enable); };h]hX%struct v4l2_subdev_audio_ops { int (*s_clock_freq)(struct v4l2_subdev *sd, u32 freq); int (*s_i2s_clock_freq)(struct v4l2_subdev *sd, u32 freq); int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); int (*s_stream)(struct v4l2_subdev *sd, int enable); };}hj(sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM%hj(ubh)}(h **Members**h]j)}(hj(h]hMembers}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM,hj(ubj3)}(hhh](j8)}(hX*``s_clock_freq`` set the frequency (in Hz) of the audio clock output. Used to slave an audio processor to the video decoder, ensuring that audio and video remain synchronized. Usual values for the frequency are 48000, 44100 or 32000 Hz. If the frequency is not supported, then -EINVAL is returned. h](j>)}(h``s_clock_freq``h]h)}(hj(h]h s_clock_freq}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM&hj(ubjX)}(hhh]h)}(hXset the frequency (in Hz) of the audio clock output. Used to slave an audio processor to the video decoder, ensuring that audio and video remain synchronized. Usual values for the frequency are 48000, 44100 or 32000 Hz. If the frequency is not supported, then -EINVAL is returned.h]hXset the frequency (in Hz) of the audio clock output. Used to slave an audio processor to the video decoder, ensuring that audio and video remain synchronized. Usual values for the frequency are 48000, 44100 or 32000 Hz. If the frequency is not supported, then -EINVAL is returned.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM"hj)ubah}(h]h ]h"]h$]h&]uh1jWhj(ubeh}(h]h ]h"]h$]h&]uh1j7hj )hM&hj(ubj8)}(hX``s_i2s_clock_freq`` sets I2S speed in bps. This is used to provide a standard way to select I2S clock used by driving digital audio streams at some board designs. Usual values for the frequency are 1024000 and 2048000. If the frequency is not supported, then ``-EINVAL`` is returned. h](j>)}(h``s_i2s_clock_freq``h]h)}(hj2)h]hs_i2s_clock_freq}(hj4)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0)ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM+hj,)ubjX)}(hhh]h)}(hXsets I2S speed in bps. This is used to provide a standard way to select I2S clock used by driving digital audio streams at some board designs. Usual values for the frequency are 1024000 and 2048000. If the frequency is not supported, then ``-EINVAL`` is returned.h](hsets I2S speed in bps. This is used to provide a standard way to select I2S clock used by driving digital audio streams at some board designs. Usual values for the frequency are 1024000 and 2048000. If the frequency is not supported, then }(hjK)hhhNhNubh)}(h ``-EINVAL``h]h-EINVAL}(hjS)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK)ubh is returned.}(hjK)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM(hjH)ubah}(h]h ]h"]h$]h&]uh1jWhj,)ubeh}(h]h ]h"]h$]h&]uh1j7hjG)hM+hj(ubj8)}(hX``s_routing`` used to define the input and/or output pins of an audio chip, and any additional configuration data. Never attempt to use user-level input IDs (e.g. Composite, S-Video, Tuner) at this level. An i2c device shouldn't know about whether an input pin is connected to a Composite connector, become on another board or platform it might be connected to something else entirely. The calling driver is responsible for mapping a user-level input to the right pins on the i2c device. h](j>)}(h ``s_routing``h]h)}(hj~)h]h s_routing}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|)ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM4hjx)ubjX)}(hhh]h)}(hXused to define the input and/or output pins of an audio chip, and any additional configuration data. Never attempt to use user-level input IDs (e.g. Composite, S-Video, Tuner) at this level. An i2c device shouldn't know about whether an input pin is connected to a Composite connector, become on another board or platform it might be connected to something else entirely. The calling driver is responsible for mapping a user-level input to the right pins on the i2c device.h]hXused to define the input and/or output pins of an audio chip, and any additional configuration data. Never attempt to use user-level input IDs (e.g. Composite, S-Video, Tuner) at this level. An i2c device shouldn’t know about whether an input pin is connected to a Composite connector, become on another board or platform it might be connected to something else entirely. The calling driver is responsible for mapping a user-level input to the right pins on the i2c device.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM-hj)ubah}(h]h ]h"]h$]h&]uh1jWhjx)ubeh}(h]h ]h"]h$]h&]uh1j7hj)hM4hj(ubj8)}(hQ``s_stream`` used to notify the audio code that stream will start or has stopped.h](j>)}(h ``s_stream``h]h)}(hj)h]hs_stream}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM6hj)ubjX)}(hhh]h)}(hDused to notify the audio code that stream will start or has stopped.h]hDused to notify the audio code that stream will start or has stopped.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM6hj)ubah}(h]h ]h"]h$]h&]uh1jWhj)ubeh}(h]h ]h"]h$]h&]uh1j7hj)hM6hj(ubeh}(h]h ]h"]h$]h&]uh1j2hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW*v4l2_mbus_frame_desc_entry_csi2 (C struct)!c.v4l2_mbus_frame_desc_entry_csi2hNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_mbus_frame_desc_entry_csi2h]jg)}(h&struct v4l2_mbus_frame_desc_entry_csi2h](jm)}(hjph]hstruct}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj *hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM=ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj *hhhj*hM=ubj)}(hv4l2_mbus_frame_desc_entry_csi2h]j)}(hj *h]hv4l2_mbus_frame_desc_entry_csi2}(hj1*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-*ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj *hhhj*hM=ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj *hhhj*hM=ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1j`hj*hM=hj*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj*hhhj*hM=ubeh}(h]h ](hstructeh"]h$]h&]jhjj\*jj\*jjjuh1j[hhhj9hNhNubj)}(h**Definition**:: struct v4l2_mbus_frame_desc_entry_csi2 { u8 vc; u8 dt; }; **Members** ``vc`` CSI-2 virtual channel ``dt`` CSI-2 data type IDh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjh*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd*ubh:}(hjd*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMChj`*ubj*)}(hAstruct v4l2_mbus_frame_desc_entry_csi2 { u8 vc; u8 dt; };h]hAstruct v4l2_mbus_frame_desc_entry_csi2 { u8 vc; u8 dt; };}hj*sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMEhj`*ubh)}(h **Members**h]j)}(hj*h]hMembers}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMJhj`*ubj3)}(hhh](j8)}(h``vc`` CSI-2 virtual channel h](j>)}(h``vc``h]h)}(hj*h]hvc}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMChj*ubjX)}(hhh]h)}(hCSI-2 virtual channelh]hCSI-2 virtual channel}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMChj*ubah}(h]h ]h"]h$]h&]uh1jWhj*ubeh}(h]h ]h"]h$]h&]uh1j7hj*hMChj*ubj8)}(h``dt`` CSI-2 data type IDh](j>)}(h``dt``h]h)}(hj*h]hdt}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMChj*ubjX)}(hhh]h)}(hCSI-2 data type IDh]hCSI-2 data type ID}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMDhj+ubah}(h]h ]h"]h$]h&]uh1jWhj*ubeh}(h]h ]h"]h$]h&]uh1j7hj*hMChj*ubeh}(h]h ]h"]h$]h&]uh1j2hj`*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW#v4l2_mbus_frame_desc_flags (C enum)c.v4l2_mbus_frame_desc_flagshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_mbus_frame_desc_flagsh]jg)}(henum v4l2_mbus_frame_desc_flagsh](jm)}(hjLh]henum}(hjD+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@+hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMJubj)}(h h]h }(hjR+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj@+hhhjQ+hMJubj)}(hv4l2_mbus_frame_desc_flagsh]j)}(hj>+h]hv4l2_mbus_frame_desc_flags}(hjd+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`+ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj@+hhhjQ+hMJubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj<+hhhjQ+hMJubah}(h]j7+ah ](jjeh"]h$]h&]jj)jhuh1j`hjQ+hMJhj9+hhubj)}(hhh]h)}(h!media bus frame description flagsh]h!media bus frame description flags}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMKhj+hhubah}(h]h ]h"]h$]h&]uh1jhj9+hhhjQ+hMJubeh}(h]h ](henumeh"]h$]h&]jhjj+jj+jjjuh1j[hhhj9hNhNubj)}(hX<**Constants** ``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX`` Indicates that :c:type:`struct v4l2_mbus_frame_desc_entry `->length field specifies maximum data length. ``V4L2_MBUS_FRAME_DESC_FL_BLOB`` Indicates that the format does not have line offsets, i.e. the receiver should use 1D DMA.h](h)}(h **Constants**h]j)}(hj+h]h Constants}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMOhj+ubj3)}(hhh](j8)}(h``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX`` Indicates that :c:type:`struct v4l2_mbus_frame_desc_entry `->length field specifies maximum data length. h](j>)}(h#``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX``h]h)}(hj+h]hV4L2_MBUS_FRAME_DESC_FL_LEN_MAX}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMShj+ubjX)}(hhh]h)}(hIndicates that :c:type:`struct v4l2_mbus_frame_desc_entry `->length field specifies maximum data length.h](hIndicates that }(hj+hhhNhNubh)}(hH:c:type:`struct v4l2_mbus_frame_desc_entry `h]h)}(hj+h]h!struct v4l2_mbus_frame_desc_entry}(hj+hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_frame_desc_entryuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMRhj+ubh-->length field specifies maximum data length.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMRhj+ubah}(h]h ]h"]h$]h&]uh1jWhj+ubeh}(h]h ]h"]h$]h&]uh1j7hj+hMShj+ubj8)}(h{``V4L2_MBUS_FRAME_DESC_FL_BLOB`` Indicates that the format does not have line offsets, i.e. the receiver should use 1D DMA.h](j>)}(h ``V4L2_MBUS_FRAME_DESC_FL_BLOB``h]h)}(hj$,h]hV4L2_MBUS_FRAME_DESC_FL_BLOB}(hj&,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj",ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMVhj,ubjX)}(hhh]h)}(hZIndicates that the format does not have line offsets, i.e. the receiver should use 1D DMA.h]hZIndicates that the format does not have line offsets, i.e. the receiver should use 1D DMA.}(hj=,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9,hMVhj:,ubah}(h]h ]h"]h$]h&]uh1jWhj,ubeh}(h]h ]h"]h$]h&]uh1j7hj9,hMVhj+ubeh}(h]h ]h"]h$]h&]uh1j2hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%v4l2_mbus_frame_desc_entry (C struct)c.v4l2_mbus_frame_desc_entryhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_mbus_frame_desc_entryh]jg)}(h!struct v4l2_mbus_frame_desc_entryh](jm)}(hjph]hstruct}(hj},hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy,hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM]ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjy,hhhj,hM]ubj)}(hv4l2_mbus_frame_desc_entryh]j)}(hjw,h]hv4l2_mbus_frame_desc_entry}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjy,hhhj,hM]ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhju,hhhj,hM]ubah}(h]jp,ah ](jjeh"]h$]h&]jj)jhuh1j`hj,hM]hjr,hhubj)}(hhh]h)}(h%media bus frame description structureh]h%media bus frame description structure}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMZhj,hhubah}(h]h ]h"]h$]h&]uh1jhjr,hhhj,hM]ubeh}(h]h ](hstructeh"]h$]h&]jhjj,jj,jjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_mbus_frame_desc_entry { enum v4l2_mbus_frame_desc_flags flags; u32 stream; u32 pixelcode; u32 length; union { struct v4l2_mbus_frame_desc_entry_csi2 csi2; } bus; }; **Members** ``flags`` bitmask flags, as defined by :c:type:`enum v4l2_mbus_frame_desc_flags `. ``stream`` stream in routing configuration ``pixelcode`` media bus pixel code, valid if **flags** ``FRAME_DESC_FL_BLOB`` is not set. ``length`` number of octets per frame, valid if **flags** ``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX`` is set. ``bus`` Bus-specific frame descriptor parameters ``bus.csi2`` CSI-2-specific bus configurationh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh:}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM^hj,ubj*)}(hstruct v4l2_mbus_frame_desc_entry { enum v4l2_mbus_frame_desc_flags flags; u32 stream; u32 pixelcode; u32 length; union { struct v4l2_mbus_frame_desc_entry_csi2 csi2; } bus; };h]hstruct v4l2_mbus_frame_desc_entry { enum v4l2_mbus_frame_desc_flags flags; u32 stream; u32 pixelcode; u32 length; union { struct v4l2_mbus_frame_desc_entry_csi2 csi2; } bus; };}hj,sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM`hj,ubh)}(h **Members**h]j)}(hj -h]hMembers}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj -ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMjhj,ubj3)}(hhh](j8)}(ho``flags`` bitmask flags, as defined by :c:type:`enum v4l2_mbus_frame_desc_flags `. h](j>)}(h ``flags``h]h)}(hj,-h]hflags}(hj.-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*-ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM]hj&-ubjX)}(hhh]h)}(hdbitmask flags, as defined by :c:type:`enum v4l2_mbus_frame_desc_flags `.h](hbitmask flags, as defined by }(hjE-hhhNhNubh)}(hF:c:type:`enum v4l2_mbus_frame_desc_flags `h]h)}(hjO-h]henum v4l2_mbus_frame_desc_flags}(hjQ-hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjM-ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_frame_desc_flagsuh1hhjA-hM]hjE-ubh.}(hjE-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjA-hM]hjB-ubah}(h]h ]h"]h$]h&]uh1jWhj&-ubeh}(h]h ]h"]h$]h&]uh1j7hjA-hM]hj#-ubj8)}(h+``stream`` stream in routing configuration h](j>)}(h ``stream``h]h)}(hj-h]hstream}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM^hj-ubjX)}(hhh]h)}(hstream in routing configurationh]hstream in routing configuration}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM^hj-ubah}(h]h ]h"]h$]h&]uh1jWhj-ubeh}(h]h ]h"]h$]h&]uh1j7hj-hM^hj#-ubj8)}(hZ``pixelcode`` media bus pixel code, valid if **flags** ``FRAME_DESC_FL_BLOB`` is not set. h](j>)}(h ``pixelcode``h]h)}(hj-h]h pixelcode}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM`hj-ubjX)}(hhh]h)}(hKmedia bus pixel code, valid if **flags** ``FRAME_DESC_FL_BLOB`` is not set.h](hmedia bus pixel code, valid if }(hj-hhhNhNubj)}(h **flags**h]hflags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh }(hj-hhhNhNubh)}(h``FRAME_DESC_FL_BLOB``h]hFRAME_DESC_FL_BLOB}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubh is not set.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM_hj-ubah}(h]h ]h"]h$]h&]uh1jWhj-ubeh}(h]h ]h"]h$]h&]uh1j7hj-hM`hj#-ubj8)}(hf``length`` number of octets per frame, valid if **flags** ``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX`` is set. h](j>)}(h ``length``h]h)}(hj.h]hlength}(hj!.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMbhj.ubjX)}(hhh]h)}(hZnumber of octets per frame, valid if **flags** ``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX`` is set.h](h%number of octets per frame, valid if }(hj8.hhhNhNubj)}(h **flags**h]hflags}(hj@.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8.ubh }(hj8.hhhNhNubh)}(h#``V4L2_MBUS_FRAME_DESC_FL_LEN_MAX``h]hV4L2_MBUS_FRAME_DESC_FL_LEN_MAX}(hjR.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8.ubh is set.}(hj8.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMahj5.ubah}(h]h ]h"]h$]h&]uh1jWhj.ubeh}(h]h ]h"]h$]h&]uh1j7hj4.hMbhj#-ubj8)}(h1``bus`` Bus-specific frame descriptor parameters h](j>)}(h``bus``h]h)}(hj}.h]hbus}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{.ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMchjw.ubjX)}(hhh]h)}(h(Bus-specific frame descriptor parametersh]h(Bus-specific frame descriptor parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMchj.ubah}(h]h ]h"]h$]h&]uh1jWhjw.ubeh}(h]h ]h"]h$]h&]uh1j7hj.hMchj#-ubj8)}(h-``bus.csi2`` CSI-2-specific bus configurationh](j>)}(h ``bus.csi2``h]h)}(hj.h]hbus.csi2}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMchj.ubjX)}(hhh]h)}(h CSI-2-specific bus configurationh]h CSI-2-specific bus configuration}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMdhj.ubah}(h]h ]h"]h$]h&]uh1jWhj.ubeh}(h]h ]h"]h$]h&]uh1j7hj.hMchj#-ubeh}(h]h ]h"]h$]h&]uh1j2hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW"v4l2_mbus_frame_desc_type (C enum)c.v4l2_mbus_frame_desc_typehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_mbus_frame_desc_typeh]jg)}(henum v4l2_mbus_frame_desc_typeh](jm)}(hjLh]henum}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj /hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj /hhhj/hMjubj)}(hv4l2_mbus_frame_desc_typeh]j)}(hj /h]hv4l2_mbus_frame_desc_type}(hj0/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,/ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj /hhhj/hMjubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj/hhhj/hMjubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1j`hj/hMjhj/hhubj)}(hhh]h)}(h media bus frame description typeh]h media bus frame description type}(hjR/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMvhjO/hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMjubeh}(h]h ](henumeh"]h$]h&]jhjjj/jjj/jjjuh1j[hhhj9hNhNubj)}(hX**Constants** ``V4L2_MBUS_FRAME_DESC_TYPE_UNDEFINED`` Undefined frame desc type. Drivers should not use this, it is for backwards compatibility. ``V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL`` Parallel media bus. ``V4L2_MBUS_FRAME_DESC_TYPE_CSI2`` CSI-2 media bus. Frame desc parameters must be set in :c:type:`struct v4l2_mbus_frame_desc_entry `->csi2.h](h)}(h **Constants**h]j)}(hjt/h]h Constants}(hjv/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr/ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMzhjn/ubj3)}(hhh](j8)}(h``V4L2_MBUS_FRAME_DESC_TYPE_UNDEFINED`` Undefined frame desc type. Drivers should not use this, it is for backwards compatibility. h](j>)}(h'``V4L2_MBUS_FRAME_DESC_TYPE_UNDEFINED``h]h)}(hj/h]h#V4L2_MBUS_FRAME_DESC_TYPE_UNDEFINED}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM~hj/ubjX)}(hhh]h)}(hZUndefined frame desc type. Drivers should not use this, it is for backwards compatibility.h]hZUndefined frame desc type. Drivers should not use this, it is for backwards compatibility.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM}hj/ubah}(h]h ]h"]h$]h&]uh1jWhj/ubeh}(h]h ]h"]h$]h&]uh1j7hj/hM~hj/ubj8)}(h;``V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL`` Parallel media bus. h](j>)}(h&``V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL``h]h)}(hj/h]h"V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj/ubjX)}(hhh]h)}(hParallel media bus.h]hParallel media bus.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jWhj/ubeh}(h]h ]h"]h$]h&]uh1j7hj/hMhj/ubj8)}(h``V4L2_MBUS_FRAME_DESC_TYPE_CSI2`` CSI-2 media bus. Frame desc parameters must be set in :c:type:`struct v4l2_mbus_frame_desc_entry `->csi2.h](j>)}(h"``V4L2_MBUS_FRAME_DESC_TYPE_CSI2``h]h)}(hj0h]hV4L2_MBUS_FRAME_DESC_TYPE_CSI2}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubjX)}(hhh]h)}(hCSI-2 media bus. Frame desc parameters must be set in :c:type:`struct v4l2_mbus_frame_desc_entry `->csi2.h](h6CSI-2 media bus. Frame desc parameters must be set in }(hj0hhhNhNubh)}(hH:c:type:`struct v4l2_mbus_frame_desc_entry `h]h)}(hj)0h]h!struct v4l2_mbus_frame_desc_entry}(hj+0hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj'0ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_frame_desc_entryuh1hhj0hMhj0ubh->csi2.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jWhj0ubeh}(h]h ]h"]h$]h&]uh1j7hj0hMhj/ubeh}(h]h ]h"]h$]h&]uh1j2hjn/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_mbus_frame_desc (C struct)c.v4l2_mbus_frame_deschNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_mbus_frame_desch]jg)}(hstruct v4l2_mbus_frame_desch](jm)}(hjph]hstruct}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~0hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~0hhhj0hMubj)}(hv4l2_mbus_frame_desch]j)}(hj|0h]hv4l2_mbus_frame_desc}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj~0hhhj0hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjz0hhhj0hMubah}(h]ju0ah ](jjeh"]h$]h&]jj)jhuh1j`hj0hMhjw0hhubj)}(hhh]h)}(h media bus data frame descriptionh]h media bus data frame description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjw0hhhj0hMubeh}(h]h ](hstructeh"]h$]h&]jhjj0jj0jjjuh1j[hhhj9hNhNubj)}(hXt**Definition**:: struct v4l2_mbus_frame_desc { enum v4l2_mbus_frame_desc_type type; struct v4l2_mbus_frame_desc_entry entry[V4L2_FRAME_DESC_ENTRY_MAX]; unsigned short num_entries; }; **Members** ``type`` type of the bus (enum v4l2_mbus_frame_desc_type) ``entry`` frame descriptors array ``num_entries`` number of entries in **entry** arrayh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh:}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubj*)}(hstruct v4l2_mbus_frame_desc { enum v4l2_mbus_frame_desc_type type; struct v4l2_mbus_frame_desc_entry entry[V4L2_FRAME_DESC_ENTRY_MAX]; unsigned short num_entries; };h]hstruct v4l2_mbus_frame_desc { enum v4l2_mbus_frame_desc_type type; struct v4l2_mbus_frame_desc_entry entry[V4L2_FRAME_DESC_ENTRY_MAX]; unsigned short num_entries; };}hj1sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubh)}(h **Members**h]j)}(hj1h]hMembers}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubj3)}(hhh](j8)}(h:``type`` type of the bus (enum v4l2_mbus_frame_desc_type) h](j>)}(h``type``h]h)}(hj11h]htype}(hj31hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/1ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj+1ubjX)}(hhh]h)}(h0type of the bus (enum v4l2_mbus_frame_desc_type)h]h0type of the bus (enum v4l2_mbus_frame_desc_type)}(hjJ1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF1hMhjG1ubah}(h]h ]h"]h$]h&]uh1jWhj+1ubeh}(h]h ]h"]h$]h&]uh1j7hjF1hMhj(1ubj8)}(h"``entry`` frame descriptors array h](j>)}(h ``entry``h]h)}(hjj1h]hentry}(hjl1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh1ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjd1ubjX)}(hhh]h)}(hframe descriptors arrayh]hframe descriptors array}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jWhjd1ubeh}(h]h ]h"]h$]h&]uh1j7hj1hMhj(1ubj8)}(h4``num_entries`` number of entries in **entry** arrayh](j>)}(h``num_entries``h]h)}(hj1h]h num_entries}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj1ubjX)}(hhh]h)}(h$number of entries in **entry** arrayh](hnumber of entries in }(hj1hhhNhNubj)}(h **entry**h]hentry}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh array}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj1ubah}(h]h ]h"]h$]h&]uh1jWhj1ubeh}(h]h ]h"]h$]h&]uh1j7hj1hMhj(1ubeh}(h]h ]h"]h$]h&]uh1j2hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW'v4l2_subdev_pre_streamon_flags (C enum) c.v4l2_subdev_pre_streamon_flagshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_pre_streamon_flagsh]jg)}(h#enum v4l2_subdev_pre_streamon_flagsh](jm)}(hjLh]henum}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 2hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj 2hhhj2hMubj)}(hv4l2_subdev_pre_streamon_flagsh]j)}(hj 2h]hv4l2_subdev_pre_streamon_flags}(hj/2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+2ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj 2hhhj2hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j`hj2hMhj2hhubj)}(hhh]h)}(h%Flags for pre_streamon subdev core oph]h%Flags for pre_streamon subdev core op}(hjQ2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjN2hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](henumeh"]h$]h&]jhjji2jji2jjjuh1j[hhhj9hNhNubj)}(h**Constants** ``V4L2_SUBDEV_PRE_STREAMON_FL_MANUAL_LP`` Set the transmitter to either LP-11 or LP-111 mode before call to s_stream().h](h)}(h **Constants**h]j)}(hjs2h]h Constants}(hju2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq2ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjm2ubj3)}(hhh]j8)}(hw``V4L2_SUBDEV_PRE_STREAMON_FL_MANUAL_LP`` Set the transmitter to either LP-11 or LP-111 mode before call to s_stream().h](j>)}(h)``V4L2_SUBDEV_PRE_STREAMON_FL_MANUAL_LP``h]h)}(hj2h]h%V4L2_SUBDEV_PRE_STREAMON_FL_MANUAL_LP}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj2ubjX)}(hhh]h)}(hMSet the transmitter to either LP-11 or LP-111 mode before call to s_stream().h]hMSet the transmitter to either LP-11 or LP-111 mode before call to s_stream().}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jWhj2ubeh}(h]h ]h"]h$]h&]uh1j7hj2hMhj2ubah}(h]h ]h"]h$]h&]uh1j2hjm2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_subdev_video_ops (C struct)c.v4l2_subdev_video_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_video_opsh]jg)}(hstruct v4l2_subdev_video_opsh](jm)}(hjph]hstruct}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj2hhhj2hMubj)}(hv4l2_subdev_video_opsh]j)}(hj2h]hv4l2_subdev_video_ops}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj2hhhj2hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j`hj2hMhj2hhubj)}(hhh]h)}(h8Callbacks used when v4l device was opened in video mode.h]h8Callbacks used when v4l device was opened in video mode.}(hj-3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj*3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](hstructeh"]h$]h&]jhjjE3jjE3jjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_video_ops { int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_tvnorms)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_tvnorms_output)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_input_status)(struct v4l2_subdev *sd, u32 *status); int (*s_stream)(struct v4l2_subdev *sd, int enable); int (*g_pixelaspect)(struct v4l2_subdev *sd, struct v4l2_fract *aspect); int (*s_rx_buffer)(struct v4l2_subdev *sd, void *buf, unsigned int *size); int (*pre_streamon)(struct v4l2_subdev *sd, u32 flags); int (*post_streamoff)(struct v4l2_subdev *sd); }; **Members** ``s_routing`` see s_routing in audio_ops, except this version is for video devices. ``s_crystal_freq`` sets the frequency of the crystal used to generate the clocks in Hz. An extra flags field allows device specific configuration regarding clock frequency dividers, etc. If not used, then set flags to 0. If the frequency is not supported, then -EINVAL is returned. ``g_std`` callback for VIDIOC_G_STD() ioctl handler code. ``s_std`` callback for VIDIOC_S_STD() ioctl handler code. ``s_std_output`` set v4l2_std_id for video OUTPUT devices. This is ignored by video input devices. ``g_std_output`` get current standard for video OUTPUT devices. This is ignored by video input devices. ``querystd`` callback for VIDIOC_QUERYSTD() ioctl handler code. ``g_tvnorms`` get :c:type:`v4l2_std_id` with all standards supported by the video CAPTURE device. This is ignored by video output devices. ``g_tvnorms_output`` get v4l2_std_id with all standards supported by the video OUTPUT device. This is ignored by video capture devices. ``g_input_status`` get input status. Same as the status field in the :c:type:`struct v4l2_input ` ``s_stream`` start (enabled == 1) or stop (enabled == 0) streaming on the sub-device. Failure on stop will remove any resources acquired in streaming start, while the error code is still returned by the driver. The caller shall track the subdev state, and shall not start or stop an already started or stopped subdev. Also see call_s_stream wrapper in v4l2-subdev.c. This callback is DEPRECATED. New drivers should instead implement :c:type:`v4l2_subdev_pad_ops.enable_streams ` and :c:type:`v4l2_subdev_pad_ops.disable_streams ` operations, and use v4l2_subdev_s_stream_helper for the :c:type:`v4l2_subdev_video_ops.s_stream ` operation to support legacy users. Drivers should also not call the .s_stream() subdev operation directly, but use the v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helpers. ``g_pixelaspect`` callback to return the pixelaspect ratio. ``s_rx_buffer`` set a host allocated memory buffer for the subdev. The subdev can adjust **size** to a lower value and must not write more data to the buffer starting at **data** than the original value of **size**. ``pre_streamon`` May be called before streaming is actually started, to help initialising the bus. Current usage is to set a CSI-2 transmitter to LP-11 or LP-111 mode before streaming. See :c:type:`enum v4l2_subdev_pre_streamon_flags `. pre_streamon shall return error if it cannot perform the operation as indicated by the flags argument. In particular, -EACCES indicates lack of support for the operation. The caller shall call post_streamoff for each successful call of pre_streamon. ``post_streamoff`` Called after streaming is stopped, but if and only if pre_streamon was called earlier.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjQ3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM3ubh:}(hjM3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjI3ubj*)}(hXstruct v4l2_subdev_video_ops { int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_tvnorms)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_tvnorms_output)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_input_status)(struct v4l2_subdev *sd, u32 *status); int (*s_stream)(struct v4l2_subdev *sd, int enable); int (*g_pixelaspect)(struct v4l2_subdev *sd, struct v4l2_fract *aspect); int (*s_rx_buffer)(struct v4l2_subdev *sd, void *buf, unsigned int *size); int (*pre_streamon)(struct v4l2_subdev *sd, u32 flags); int (*post_streamoff)(struct v4l2_subdev *sd); };h]hXstruct v4l2_subdev_video_ops { int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_tvnorms)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_tvnorms_output)(struct v4l2_subdev *sd, v4l2_std_id *std); int (*g_input_status)(struct v4l2_subdev *sd, u32 *status); int (*s_stream)(struct v4l2_subdev *sd, int enable); int (*g_pixelaspect)(struct v4l2_subdev *sd, struct v4l2_fract *aspect); int (*s_rx_buffer)(struct v4l2_subdev *sd, void *buf, unsigned int *size); int (*pre_streamon)(struct v4l2_subdev *sd, u32 flags); int (*post_streamoff)(struct v4l2_subdev *sd); };}hjj3sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjI3ubh)}(h **Members**h]j)}(hj{3h]hMembers}(hj}3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy3ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjI3ubj3)}(hhh](j8)}(hT``s_routing`` see s_routing in audio_ops, except this version is for video devices. h](j>)}(h ``s_routing``h]h)}(hj3h]h s_routing}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj3ubjX)}(hhh]h)}(hEsee s_routing in audio_ops, except this version is for video devices.h]hEsee s_routing in audio_ops, except this version is for video devices.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj3ubah}(h]h ]h"]h$]h&]uh1jWhj3ubeh}(h]h ]h"]h$]h&]uh1j7hj3hMhj3ubj8)}(hX``s_crystal_freq`` sets the frequency of the crystal used to generate the clocks in Hz. An extra flags field allows device specific configuration regarding clock frequency dividers, etc. If not used, then set flags to 0. If the frequency is not supported, then -EINVAL is returned. h](j>)}(h``s_crystal_freq``h]h)}(hj3h]hs_crystal_freq}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj3ubjX)}(hhh]h)}(hXsets the frequency of the crystal used to generate the clocks in Hz. An extra flags field allows device specific configuration regarding clock frequency dividers, etc. If not used, then set flags to 0. If the frequency is not supported, then -EINVAL is returned.h]hXsets the frequency of the crystal used to generate the clocks in Hz. An extra flags field allows device specific configuration regarding clock frequency dividers, etc. If not used, then set flags to 0. If the frequency is not supported, then -EINVAL is returned.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj3ubah}(h]h ]h"]h$]h&]uh1jWhj3ubeh}(h]h ]h"]h$]h&]uh1j7hj3hMhj3ubj8)}(h:``g_std`` callback for VIDIOC_G_STD() ioctl handler code. h](j>)}(h ``g_std``h]h)}(hj4h]hg_std}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 4ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj4ubjX)}(hhh]h)}(h/callback for VIDIOC_G_STD() ioctl handler code.h]h/callback for VIDIOC_G_STD() ioctl handler code.}(hj'4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#4hMhj$4ubah}(h]h ]h"]h$]h&]uh1jWhj4ubeh}(h]h ]h"]h$]h&]uh1j7hj#4hMhj3ubj8)}(h:``s_std`` callback for VIDIOC_S_STD() ioctl handler code. h](j>)}(h ``s_std``h]h)}(hjG4h]hs_std}(hjI4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE4ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjA4ubjX)}(hhh]h)}(h/callback for VIDIOC_S_STD() ioctl handler code.h]h/callback for VIDIOC_S_STD() ioctl handler code.}(hj`4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\4hMhj]4ubah}(h]h ]h"]h$]h&]uh1jWhjA4ubeh}(h]h ]h"]h$]h&]uh1j7hj\4hMhj3ubj8)}(hc``s_std_output`` set v4l2_std_id for video OUTPUT devices. This is ignored by video input devices. h](j>)}(h``s_std_output``h]h)}(hj4h]h s_std_output}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~4ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjz4ubjX)}(hhh]h)}(hQset v4l2_std_id for video OUTPUT devices. This is ignored by video input devices.h]hQset v4l2_std_id for video OUTPUT devices. This is ignored by video input devices.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj4ubah}(h]h ]h"]h$]h&]uh1jWhjz4ubeh}(h]h ]h"]h$]h&]uh1j7hj4hMhj3ubj8)}(hh``g_std_output`` get current standard for video OUTPUT devices. This is ignored by video input devices. h](j>)}(h``g_std_output``h]h)}(hj4h]h g_std_output}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj4ubjX)}(hhh]h)}(hVget current standard for video OUTPUT devices. This is ignored by video input devices.h]hVget current standard for video OUTPUT devices. This is ignored by video input devices.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj4ubah}(h]h ]h"]h$]h&]uh1jWhj4ubeh}(h]h ]h"]h$]h&]uh1j7hj4hMhj3ubj8)}(h@``querystd`` callback for VIDIOC_QUERYSTD() ioctl handler code. h](j>)}(h ``querystd``h]h)}(hj4h]hquerystd}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj4ubjX)}(hhh]h)}(h2callback for VIDIOC_QUERYSTD() ioctl handler code.h]h2callback for VIDIOC_QUERYSTD() ioctl handler code.}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 5hMhj 5ubah}(h]h ]h"]h$]h&]uh1jWhj4ubeh}(h]h ]h"]h$]h&]uh1j7hj 5hMhj3ubj8)}(h``g_tvnorms`` get :c:type:`v4l2_std_id` with all standards supported by the video CAPTURE device. This is ignored by video output devices. h](j>)}(h ``g_tvnorms``h]h)}(hj-5h]h g_tvnorms}(hj/5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+5ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj'5ubjX)}(hhh]h)}(h|get :c:type:`v4l2_std_id` with all standards supported by the video CAPTURE device. This is ignored by video output devices.h](hget }(hjF5hhhNhNubh)}(h:c:type:`v4l2_std_id`h]h)}(hjP5h]h v4l2_std_id}(hjR5hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjN5ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_std_iduh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjF5ubhc with all standards supported by the video CAPTURE device. This is ignored by video output devices.}(hjF5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjm5hMhjC5ubah}(h]h ]h"]h$]h&]uh1jWhj'5ubeh}(h]h ]h"]h$]h&]uh1j7hjB5hMhj3ubj8)}(h``g_tvnorms_output`` get v4l2_std_id with all standards supported by the video OUTPUT device. This is ignored by video capture devices. h](j>)}(h``g_tvnorms_output``h]h)}(hj5h]hg_tvnorms_output}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj5ubjX)}(hhh]h)}(hrget v4l2_std_id with all standards supported by the video OUTPUT device. This is ignored by video capture devices.h]hrget v4l2_std_id with all standards supported by the video OUTPUT device. This is ignored by video capture devices.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj5ubah}(h]h ]h"]h$]h&]uh1jWhj5ubeh}(h]h ]h"]h$]h&]uh1j7hj5hMhj3ubj8)}(hn``g_input_status`` get input status. Same as the status field in the :c:type:`struct v4l2_input ` h](j>)}(h``g_input_status``h]h)}(hj5h]hg_input_status}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj5ubjX)}(hhh]h)}(hZget input status. Same as the status field in the :c:type:`struct v4l2_input `h](h2get input status. Same as the status field in the }(hj5hhhNhNubh)}(h(:c:type:`struct v4l2_input `h]h)}(hj5h]hstruct v4l2_input}(hj5hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_inputuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj5ubeh}(h]h ]h"]h$]h&]uh1hhj6hMhj5ubah}(h]h ]h"]h$]h&]uh1jWhj5ubeh}(h]h ]h"]h$]h&]uh1j7hj5hMhj3ubj8)}(hXv``s_stream`` start (enabled == 1) or stop (enabled == 0) streaming on the sub-device. Failure on stop will remove any resources acquired in streaming start, while the error code is still returned by the driver. The caller shall track the subdev state, and shall not start or stop an already started or stopped subdev. Also see call_s_stream wrapper in v4l2-subdev.c. This callback is DEPRECATED. New drivers should instead implement :c:type:`v4l2_subdev_pad_ops.enable_streams ` and :c:type:`v4l2_subdev_pad_ops.disable_streams ` operations, and use v4l2_subdev_s_stream_helper for the :c:type:`v4l2_subdev_video_ops.s_stream ` operation to support legacy users. Drivers should also not call the .s_stream() subdev operation directly, but use the v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helpers. h](j>)}(h ``s_stream``h]h)}(hj6h]hs_stream}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj6ubjX)}(hhh](h)}(hXastart (enabled == 1) or stop (enabled == 0) streaming on the sub-device. Failure on stop will remove any resources acquired in streaming start, while the error code is still returned by the driver. The caller shall track the subdev state, and shall not start or stop an already started or stopped subdev. Also see call_s_stream wrapper in v4l2-subdev.c.h]hXastart (enabled == 1) or stop (enabled == 0) streaming on the sub-device. Failure on stop will remove any resources acquired in streaming start, while the error code is still returned by the driver. The caller shall track the subdev state, and shall not start or stop an already started or stopped subdev. Also see call_s_stream wrapper in v4l2-subdev.c.}(hj66hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj36ubh)}(hXhThis callback is DEPRECATED. New drivers should instead implement :c:type:`v4l2_subdev_pad_ops.enable_streams ` and :c:type:`v4l2_subdev_pad_ops.disable_streams ` operations, and use v4l2_subdev_s_stream_helper for the :c:type:`v4l2_subdev_video_ops.s_stream ` operation to support legacy users.h](hBThis callback is DEPRECATED. New drivers should instead implement }(hjE6hhhNhNubh)}(hB:c:type:`v4l2_subdev_pad_ops.enable_streams `h]h)}(hjO6h]h"v4l2_subdev_pad_ops.enable_streams}(hjQ6hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjM6ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pad_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjE6ubh and }(hjE6hhhNhNubh)}(hC:c:type:`v4l2_subdev_pad_ops.disable_streams `h]h)}(hjs6h]h#v4l2_subdev_pad_ops.disable_streams}(hju6hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjq6ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pad_opsuh1hhjl6hMhjE6ubh9 operations, and use v4l2_subdev_s_stream_helper for the }(hjE6hhhNhNubh)}(h@:c:type:`v4l2_subdev_video_ops.s_stream `h]h)}(hj6h]hv4l2_subdev_video_ops.s_stream}(hj6hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_video_opsuh1hhjl6hMhjE6ubh# operation to support legacy users.}(hjE6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjl6hMhj36ubh)}(hDrivers should also not call the .s_stream() subdev operation directly, but use the v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helpers.h]hDrivers should also not call the .s_stream() subdev operation directly, but use the v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helpers.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj36ubeh}(h]h ]h"]h$]h&]uh1jWhj6ubeh}(h]h ]h"]h$]h&]uh1j7hj26hMhj3ubj8)}(h<``g_pixelaspect`` callback to return the pixelaspect ratio. h](j>)}(h``g_pixelaspect``h]h)}(hj6h]h g_pixelaspect}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj6ubjX)}(hhh]h)}(h)callback to return the pixelaspect ratio.h]h)callback to return the pixelaspect ratio.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jWhj6ubeh}(h]h ]h"]h$]h&]uh1j7hj6hMhj3ubj8)}(h``s_rx_buffer`` set a host allocated memory buffer for the subdev. The subdev can adjust **size** to a lower value and must not write more data to the buffer starting at **data** than the original value of **size**. h](j>)}(h``s_rx_buffer``h]h)}(hj7h]h s_rx_buffer}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj7ubjX)}(hhh]h)}(hset a host allocated memory buffer for the subdev. The subdev can adjust **size** to a lower value and must not write more data to the buffer starting at **data** than the original value of **size**.h](hIset a host allocated memory buffer for the subdev. The subdev can adjust }(hj07hhhNhNubj)}(h**size**h]hsize}(hj87hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj07ubhI to a lower value and must not write more data to the buffer starting at }(hj07hhhNhNubj)}(h**data**h]hdata}(hjJ7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj07ubh than the original value of }(hj07hhhNhNubj)}(h**size**h]hsize}(hj\7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj07ubh.}(hj07hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj-7ubah}(h]h ]h"]h$]h&]uh1jWhj7ubeh}(h]h ]h"]h$]h&]uh1j7hj,7hMhj3ubj8)}(hX``pre_streamon`` May be called before streaming is actually started, to help initialising the bus. Current usage is to set a CSI-2 transmitter to LP-11 or LP-111 mode before streaming. See :c:type:`enum v4l2_subdev_pre_streamon_flags `. pre_streamon shall return error if it cannot perform the operation as indicated by the flags argument. In particular, -EACCES indicates lack of support for the operation. The caller shall call post_streamoff for each successful call of pre_streamon. h](j>)}(h``pre_streamon``h]h)}(hj7h]h pre_streamon}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj7ubjX)}(hhh](h)}(hMay be called before streaming is actually started, to help initialising the bus. Current usage is to set a CSI-2 transmitter to LP-11 or LP-111 mode before streaming. See :c:type:`enum v4l2_subdev_pre_streamon_flags `.h](hMay be called before streaming is actually started, to help initialising the bus. Current usage is to set a CSI-2 transmitter to LP-11 or LP-111 mode before streaming. See }(hj7hhhNhNubh)}(hN:c:type:`enum v4l2_subdev_pre_streamon_flags `h]h)}(hj7h]h#enum v4l2_subdev_pre_streamon_flags}(hj7hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pre_streamon_flagsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubh)}(hpre_streamon shall return error if it cannot perform the operation as indicated by the flags argument. In particular, -EACCES indicates lack of support for the operation. The caller shall call post_streamoff for each successful call of pre_streamon.h]hpre_streamon shall return error if it cannot perform the operation as indicated by the flags argument. In particular, -EACCES indicates lack of support for the operation. The caller shall call post_streamoff for each successful call of pre_streamon.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj7ubeh}(h]h ]h"]h$]h&]uh1jWhj7ubeh}(h]h ]h"]h$]h&]uh1j7hj7hMhj3ubj8)}(hi``post_streamoff`` Called after streaming is stopped, but if and only if pre_streamon was called earlier.h](j>)}(h``post_streamoff``h]h)}(hj7h]hpost_streamoff}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj7ubjX)}(hhh]h)}(hVCalled after streaming is stopped, but if and only if pre_streamon was called earlier.h]hVCalled after streaming is stopped, but if and only if pre_streamon was called earlier.}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj 8ubah}(h]h ]h"]h$]h&]uh1jWhj7ubeh}(h]h ]h"]h$]h&]uh1j7hj8hMhj3ubeh}(h]h ]h"]h$]h&]uh1j2hjI3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_vbi_ops (C struct)c.v4l2_subdev_vbi_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_vbi_opsh]jg)}(hstruct v4l2_subdev_vbi_opsh](jm)}(hjph]hstruct}(hjL8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH8hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjZ8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjH8hhhjY8hMubj)}(hv4l2_subdev_vbi_opsh]j)}(hjF8h]hv4l2_subdev_vbi_ops}(hjl8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh8ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjH8hhhjY8hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjD8hhhjY8hMubah}(h]j?8ah ](jjeh"]h$]h&]jj)jhuh1j`hjY8hMhjA8hhubj)}(hhh]h)}(hPCallbacks used when v4l device was opened in video mode via the vbi device node.h]hPCallbacks used when v4l device was opened in video mode via the vbi device node.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjA8hhhjY8hMubeh}(h]h ](hstructeh"]h$]h&]jhjj8jj8jjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_vbi_ops { int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line); int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data); int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data); int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap); int (*s_raw_fmt)(struct v4l2_subdev *sd, struct v4l2_vbi_format *fmt); int (*g_sliced_fmt)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *fmt); int (*s_sliced_fmt)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *fmt); }; **Members** ``decode_vbi_line`` video decoders that support sliced VBI need to implement this ioctl. Field p of the :c:type:`struct v4l2_decode_vbi_line ` is set to the start of the VBI data that was generated by the decoder. The driver then parses the sliced VBI data and sets the other fields in the struct accordingly. The pointer p is updated to point to the start of the payload which can be copied verbatim into the data field of the :c:type:`struct v4l2_sliced_vbi_data `. If no valid VBI data was found, then the type field is set to 0 on return. ``s_vbi_data`` used to generate VBI signals on a video signal. :c:type:`struct v4l2_sliced_vbi_data ` is filled with the data packets that should be output. Note that if you set the line field to 0, then that VBI signal is disabled. If no valid VBI data was found, then the type field is set to 0 on return. ``g_vbi_data`` used to obtain the sliced VBI packet from a readback register. Not all video decoders support this. If no data is available because the readback register contains invalid or erroneous data ``-EIO`` is returned. Note that you must fill in the 'id' member and the 'field' member (to determine whether CC data from the first or second field should be obtained). ``g_sliced_vbi_cap`` callback for VIDIOC_G_SLICED_VBI_CAP() ioctl handler code. ``s_raw_fmt`` setup the video encoder/decoder for raw VBI. ``g_sliced_fmt`` retrieve the current sliced VBI settings. ``s_sliced_fmt`` setup the sliced VBI settings.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh:}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj8ubj*)}(hXwstruct v4l2_subdev_vbi_ops { int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line); int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data); int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data); int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap); int (*s_raw_fmt)(struct v4l2_subdev *sd, struct v4l2_vbi_format *fmt); int (*g_sliced_fmt)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *fmt); int (*s_sliced_fmt)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *fmt); };h]hXwstruct v4l2_subdev_vbi_ops { int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line); int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data); int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data); int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap); int (*s_raw_fmt)(struct v4l2_subdev *sd, struct v4l2_vbi_format *fmt); int (*g_sliced_fmt)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *fmt); int (*s_sliced_fmt)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *fmt); };}hj8sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj8ubh)}(h **Members**h]j)}(hj8h]hMembers}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj8ubj3)}(hhh](j8)}(hXK``decode_vbi_line`` video decoders that support sliced VBI need to implement this ioctl. Field p of the :c:type:`struct v4l2_decode_vbi_line ` is set to the start of the VBI data that was generated by the decoder. The driver then parses the sliced VBI data and sets the other fields in the struct accordingly. The pointer p is updated to point to the start of the payload which can be copied verbatim into the data field of the :c:type:`struct v4l2_sliced_vbi_data `. If no valid VBI data was found, then the type field is set to 0 on return. h](j>)}(h``decode_vbi_line``h]h)}(hj8h]hdecode_vbi_line}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj8ubjX)}(hhh]h)}(hX6video decoders that support sliced VBI need to implement this ioctl. Field p of the :c:type:`struct v4l2_decode_vbi_line ` is set to the start of the VBI data that was generated by the decoder. The driver then parses the sliced VBI data and sets the other fields in the struct accordingly. The pointer p is updated to point to the start of the payload which can be copied verbatim into the data field of the :c:type:`struct v4l2_sliced_vbi_data `. If no valid VBI data was found, then the type field is set to 0 on return.h](hTvideo decoders that support sliced VBI need to implement this ioctl. Field p of the }(hj9hhhNhNubh)}(h<:c:type:`struct v4l2_decode_vbi_line `h]h)}(hj9h]hstruct v4l2_decode_vbi_line}(hj 9hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_decode_vbi_lineuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9ubhX is set to the start of the VBI data that was generated by the decoder. The driver then parses the sliced VBI data and sets the other fields in the struct accordingly. The pointer p is updated to point to the start of the payload which can be copied verbatim into the data field of the }(hj9hhhNhNubh)}(h<:c:type:`struct v4l2_sliced_vbi_data `h]h)}(hjB9h]hstruct v4l2_sliced_vbi_data}(hjD9hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj@9ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_sliced_vbi_datauh1hhj;9hMhj9ubhL. If no valid VBI data was found, then the type field is set to 0 on return.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;9hMhj9ubah}(h]h ]h"]h$]h&]uh1jWhj8ubeh}(h]h ]h"]h$]h&]uh1j7hj9hMhj8ubj8)}(hXJ``s_vbi_data`` used to generate VBI signals on a video signal. :c:type:`struct v4l2_sliced_vbi_data ` is filled with the data packets that should be output. Note that if you set the line field to 0, then that VBI signal is disabled. If no valid VBI data was found, then the type field is set to 0 on return. h](j>)}(h``s_vbi_data``h]h)}(hj{9h]h s_vbi_data}(hj}9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy9ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhju9ubjX)}(hhh]h)}(hX:used to generate VBI signals on a video signal. :c:type:`struct v4l2_sliced_vbi_data ` is filled with the data packets that should be output. Note that if you set the line field to 0, then that VBI signal is disabled. If no valid VBI data was found, then the type field is set to 0 on return.h](h0used to generate VBI signals on a video signal. }(hj9hhhNhNubh)}(h<:c:type:`struct v4l2_sliced_vbi_data `h]h)}(hj9h]hstruct v4l2_sliced_vbi_data}(hj9hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_sliced_vbi_datauh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9ubh is filled with the data packets that should be output. Note that if you set the line field to 0, then that VBI signal is disabled. If no valid VBI data was found, then the type field is set to 0 on return.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jWhju9ubeh}(h]h ]h"]h$]h&]uh1j7hj9hMhj8ubj8)}(hXv``g_vbi_data`` used to obtain the sliced VBI packet from a readback register. Not all video decoders support this. If no data is available because the readback register contains invalid or erroneous data ``-EIO`` is returned. Note that you must fill in the 'id' member and the 'field' member (to determine whether CC data from the first or second field should be obtained). h](j>)}(h``g_vbi_data``h]h)}(hj9h]h g_vbi_data}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9ubjX)}(hhh]h)}(hXfused to obtain the sliced VBI packet from a readback register. Not all video decoders support this. If no data is available because the readback register contains invalid or erroneous data ``-EIO`` is returned. Note that you must fill in the 'id' member and the 'field' member (to determine whether CC data from the first or second field should be obtained).h](hused to obtain the sliced VBI packet from a readback register. Not all video decoders support this. If no data is available because the readback register contains invalid or erroneous data }(hj9hhhNhNubh)}(h``-EIO``h]h-EIO}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubh is returned. Note that you must fill in the ‘id’ member and the ‘field’ member (to determine whether CC data from the first or second field should be obtained).}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj9ubah}(h]h ]h"]h$]h&]uh1jWhj9ubeh}(h]h ]h"]h$]h&]uh1j7hj9hMhj8ubj8)}(hP``g_sliced_vbi_cap`` callback for VIDIOC_G_SLICED_VBI_CAP() ioctl handler code. h](j>)}(h``g_sliced_vbi_cap``h]h)}(hj$:h]hg_sliced_vbi_cap}(hj&:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj":ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubjX)}(hhh]h)}(h:callback for VIDIOC_G_SLICED_VBI_CAP() ioctl handler code.h]h:callback for VIDIOC_G_SLICED_VBI_CAP() ioctl handler code.}(hj=:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj::ubah}(h]h ]h"]h$]h&]uh1jWhj:ubeh}(h]h ]h"]h$]h&]uh1j7hj9:hMhj8ubj8)}(h;``s_raw_fmt`` setup the video encoder/decoder for raw VBI. h](j>)}(h ``s_raw_fmt``h]h)}(hj^:h]h s_raw_fmt}(hj`:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\:ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjX:ubjX)}(hhh]h)}(h,setup the video encoder/decoder for raw VBI.h]h,setup the video encoder/decoder for raw VBI.}(hjw:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs:hMhjt:ubah}(h]h ]h"]h$]h&]uh1jWhjX:ubeh}(h]h ]h"]h$]h&]uh1j7hjs:hMhj8ubj8)}(h;``g_sliced_fmt`` retrieve the current sliced VBI settings. h](j>)}(h``g_sliced_fmt``h]h)}(hj:h]h g_sliced_fmt}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubjX)}(hhh]h)}(h)retrieve the current sliced VBI settings.h]h)retrieve the current sliced VBI settings.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jWhj:ubeh}(h]h ]h"]h$]h&]uh1j7hj:hMhj8ubj8)}(h/``s_sliced_fmt`` setup the sliced VBI settings.h](j>)}(h``s_sliced_fmt``h]h)}(hj:h]h s_sliced_fmt}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubjX)}(hhh]h)}(hsetup the sliced VBI settings.h]hsetup the sliced VBI settings.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jWhj:ubeh}(h]h ]h"]h$]h&]uh1j7hj:hMhj8ubeh}(h]h ]h"]h$]h&]uh1j2hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW!v4l2_subdev_sensor_ops (C struct)c.v4l2_subdev_sensor_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_sensor_opsh]jg)}(hstruct v4l2_subdev_sensor_opsh](jm)}(hjph]hstruct}(hj*;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&;hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj8;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj&;hhhj7;hMubj)}(hv4l2_subdev_sensor_opsh]j)}(hj$;h]hv4l2_subdev_sensor_ops}(hjJ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF;ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj&;hhhj7;hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj";hhhj7;hMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1j`hj7;hMhj;hhubj)}(hhh]h)}(hv4l2-subdev sensor operationsh]hv4l2-subdev sensor operations}(hjl;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM#hji;hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj7;hMubeh}(h]h ](hstructeh"]h$]h&]jhjj;jj;jjjuh1j[hhhj9hNhNubj)}(hX:**Definition**:: struct v4l2_subdev_sensor_ops { int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines); int (*g_skip_frames)(struct v4l2_subdev *sd, u32 *frames); }; **Members** ``g_skip_top_lines`` number of lines at the top of the image to be skipped. This is needed for some sensors, which always corrupt several top lines of the output image, or which send their metadata in them. ``g_skip_frames`` number of frames to skip at stream start. This is needed for buggy sensors that generate faulty frames when they are turned on.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh:}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'hj;ubj*)}(hstruct v4l2_subdev_sensor_ops { int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines); int (*g_skip_frames)(struct v4l2_subdev *sd, u32 *frames); };h]hstruct v4l2_subdev_sensor_ops { int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines); int (*g_skip_frames)(struct v4l2_subdev *sd, u32 *frames); };}hj;sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM)hj;ubh)}(h **Members**h]j)}(hj;h]hMembers}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM.hj;ubj3)}(hhh](j8)}(h``g_skip_top_lines`` number of lines at the top of the image to be skipped. This is needed for some sensors, which always corrupt several top lines of the output image, or which send their metadata in them. h](j>)}(h``g_skip_top_lines``h]h)}(hj;h]hg_skip_top_lines}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM(hj;ubjX)}(hhh]h)}(hnumber of lines at the top of the image to be skipped. This is needed for some sensors, which always corrupt several top lines of the output image, or which send their metadata in them.h]hnumber of lines at the top of the image to be skipped. This is needed for some sensors, which always corrupt several top lines of the output image, or which send their metadata in them.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM%hj;ubah}(h]h ]h"]h$]h&]uh1jWhj;ubeh}(h]h ]h"]h$]h&]uh1j7hj;hM(hj;ubj8)}(h``g_skip_frames`` number of frames to skip at stream start. This is needed for buggy sensors that generate faulty frames when they are turned on.h](j>)}(h``g_skip_frames``h]h)}(hj<h]h g_skip_frames}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM*hj <ubjX)}(hhh]h)}(hnumber of frames to skip at stream start. This is needed for buggy sensors that generate faulty frames when they are turned on.h]hnumber of frames to skip at stream start. This is needed for buggy sensors that generate faulty frames when they are turned on.}(hj,<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM)hj)<ubah}(h]h ]h"]h$]h&]uh1jWhj <ubeh}(h]h ]h"]h$]h&]uh1j7hj(<hM*hj;ubeh}(h]h ]h"]h$]h&]uh1j2hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_ir_mode (C enum)c.v4l2_subdev_ir_modehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_ir_modeh]jg)}(henum v4l2_subdev_ir_modeh](jm)}(hjLh]henum}(hjm<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji<hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM1ubj)}(h h]h }(hj{<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hji<hhhjz<hM1ubj)}(hv4l2_subdev_ir_modeh]j)}(hjg<h]hv4l2_subdev_ir_mode}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]hhuh1jhji<hhhjz<hM1ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhje<hhhjz<hM1ubah}(h]j`<ah ](jjeh"]h$]h&]jj)jhuh1j`hjz<hM1hjb<hhubj)}(hhh]h)}(h"describes the type of IR supportedh]h"describes the type of IR supported}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM2hj<hhubah}(h]h ]h"]h$]h&]uh1jhjb<hhhjz<hM1ubeh}(h]h ](henumeh"]h$]h&]jhjj<jj<jjjuh1j[hhhj9hNhNubj)}(hX**Constants** ``V4L2_SUBDEV_IR_MODE_PULSE_WIDTH`` IR uses struct ir_raw_event recordsh](h)}(h **Constants**h]j)}(hj<h]h Constants}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM6hj<ubj3)}(hhh]j8)}(hG``V4L2_SUBDEV_IR_MODE_PULSE_WIDTH`` IR uses struct ir_raw_event recordsh](j>)}(h#``V4L2_SUBDEV_IR_MODE_PULSE_WIDTH``h]h)}(hj<h]hV4L2_SUBDEV_IR_MODE_PULSE_WIDTH}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM8hj<ubjX)}(hhh]h)}(h#IR uses struct ir_raw_event recordsh]h#IR uses struct ir_raw_event records}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM9hj=ubah}(h]h ]h"]h$]h&]uh1jWhj<ubeh}(h]h ]h"]h$]h&]uh1j7hj=hM8hj<ubah}(h]h ]h"]h$]h&]uh1j2hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_ir_parameters (C struct)c.v4l2_subdev_ir_parametershNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_ir_parametersh]jg)}(h struct v4l2_subdev_ir_parametersh](jm)}(hjph]hstruct}(hjJ=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF=hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM?ubj)}(h h]h }(hjX=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjF=hhhjW=hM?ubj)}(hv4l2_subdev_ir_parametersh]j)}(hjD=h]hv4l2_subdev_ir_parameters}(hjj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf=ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjF=hhhjW=hM?ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjB=hhhjW=hM?ubah}(h]j==ah ](jjeh"]h$]h&]jj)jhuh1j`hjW=hM?hj?=hhubj)}(hhh]h)}(hParameters for IR TX or TXh]hParameters for IR TX or TX}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM;hj=hhubah}(h]h ]h"]h$]h&]uh1jhj?=hhhjW=hM?ubeh}(h]h ](hstructeh"]h$]h&]jhjj=jj=jjjuh1j[hhhj9hNhNubj)}(hXx**Definition**:: struct v4l2_subdev_ir_parameters { unsigned int bytes_per_data_element; enum v4l2_subdev_ir_mode mode; bool enable; bool interrupt_enable; bool shutdown; bool modulation; u32 max_pulse_width; unsigned int carrier_freq; unsigned int duty_cycle; bool invert_level; bool invert_carrier_sense; u32 noise_filter_min_width; unsigned int carrier_range_lower; unsigned int carrier_range_upper; u32 resolution; }; **Members** ``bytes_per_data_element`` bytes per data element of data in read or write call. ``mode`` IR mode as defined by :c:type:`enum v4l2_subdev_ir_mode `. ``enable`` device is active if true ``interrupt_enable`` IR interrupts are enabled if true ``shutdown`` if true: set hardware to low/no power, false: normal mode ``modulation`` if true, it uses carrier, if false: baseband ``max_pulse_width`` maximum pulse width in ns, valid only for baseband signal ``carrier_freq`` carrier frequency in Hz, valid only for modulated signal ``duty_cycle`` duty cycle percentage, valid only for modulated signal ``invert_level`` invert signal level ``invert_carrier_sense`` Send 0/space as a carrier burst. used only in TX. ``noise_filter_min_width`` min time of a valid pulse, in ns. Used only for RX. ``carrier_range_lower`` Lower carrier range, in Hz, valid only for modulated signal. Used only for RX. ``carrier_range_upper`` Upper carrier range, in Hz, valid only for modulated signal. Used only for RX. ``resolution`` The receive resolution, in ns . Used only for RX.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh:}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM?hj=ubj*)}(hXstruct v4l2_subdev_ir_parameters { unsigned int bytes_per_data_element; enum v4l2_subdev_ir_mode mode; bool enable; bool interrupt_enable; bool shutdown; bool modulation; u32 max_pulse_width; unsigned int carrier_freq; unsigned int duty_cycle; bool invert_level; bool invert_carrier_sense; u32 noise_filter_min_width; unsigned int carrier_range_lower; unsigned int carrier_range_upper; u32 resolution; };h]hXstruct v4l2_subdev_ir_parameters { unsigned int bytes_per_data_element; enum v4l2_subdev_ir_mode mode; bool enable; bool interrupt_enable; bool shutdown; bool modulation; u32 max_pulse_width; unsigned int carrier_freq; unsigned int duty_cycle; bool invert_level; bool invert_carrier_sense; u32 noise_filter_min_width; unsigned int carrier_range_lower; unsigned int carrier_range_upper; u32 resolution; };}hj=sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMAhj=ubh)}(h **Members**h]j)}(hj=h]hMembers}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMShj=ubj3)}(hhh](j8)}(hQ``bytes_per_data_element`` bytes per data element of data in read or write call. h](j>)}(h``bytes_per_data_element``h]h)}(hj=h]hbytes_per_data_element}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM?hj=ubjX)}(hhh]h)}(h5bytes per data element of data in read or write call.h]h5bytes per data element of data in read or write call.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM>hj>ubah}(h]h ]h"]h$]h&]uh1jWhj=ubeh}(h]h ]h"]h$]h&]uh1j7hj>hM?hj=ubj8)}(hY``mode`` IR mode as defined by :c:type:`enum v4l2_subdev_ir_mode `. h](j>)}(h``mode``h]h)}(hj3>h]hmode}(hj5>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1>ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM@hj->ubjX)}(hhh]h)}(hOIR mode as defined by :c:type:`enum v4l2_subdev_ir_mode `.h](hIR mode as defined by }(hjL>hhhNhNubh)}(h8:c:type:`enum v4l2_subdev_ir_mode `h]h)}(hjV>h]henum v4l2_subdev_ir_mode}(hjX>hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjT>ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_ir_modeuh1hhjH>hM@hjL>ubh.}(hjL>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjH>hM@hjI>ubah}(h]h ]h"]h$]h&]uh1jWhj->ubeh}(h]h ]h"]h$]h&]uh1j7hjH>hM@hj=ubj8)}(h$``enable`` device is active if true h](j>)}(h ``enable``h]h)}(hj>h]henable}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMAhj>ubjX)}(hhh]h)}(hdevice is active if trueh]hdevice is active if true}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMAhj>ubah}(h]h ]h"]h$]h&]uh1jWhj>ubeh}(h]h ]h"]h$]h&]uh1j7hj>hMAhj=ubj8)}(h7``interrupt_enable`` IR interrupts are enabled if true h](j>)}(h``interrupt_enable``h]h)}(hj>h]hinterrupt_enable}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMBhj>ubjX)}(hhh]h)}(h!IR interrupts are enabled if trueh]h!IR interrupts are enabled if true}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMBhj>ubah}(h]h ]h"]h$]h&]uh1jWhj>ubeh}(h]h ]h"]h$]h&]uh1j7hj>hMBhj=ubj8)}(hG``shutdown`` if true: set hardware to low/no power, false: normal mode h](j>)}(h ``shutdown``h]h)}(hj?h]hshutdown}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMChj>ubjX)}(hhh]h)}(h9if true: set hardware to low/no power, false: normal modeh]h9if true: set hardware to low/no power, false: normal mode}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMChj?ubah}(h]h ]h"]h$]h&]uh1jWhj>ubeh}(h]h ]h"]h$]h&]uh1j7hj?hMChj=ubj8)}(h<``modulation`` if true, it uses carrier, if false: baseband h](j>)}(h``modulation``h]h)}(hj:?h]h modulation}(hj)}(h``max_pulse_width``h]h)}(hjs?h]hmax_pulse_width}(hju?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq?ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMFhjm?ubjX)}(hhh]h)}(h9maximum pulse width in ns, valid only for baseband signalh]h9maximum pulse width in ns, valid only for baseband signal}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMFhj?ubah}(h]h ]h"]h$]h&]uh1jWhjm?ubeh}(h]h ]h"]h$]h&]uh1j7hj?hMFhj=ubj8)}(hJ``carrier_freq`` carrier frequency in Hz, valid only for modulated signal h](j>)}(h``carrier_freq``h]h)}(hj?h]h carrier_freq}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMGhj?ubjX)}(hhh]h)}(h8carrier frequency in Hz, valid only for modulated signalh]h8carrier frequency in Hz, valid only for modulated signal}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMGhj?ubah}(h]h ]h"]h$]h&]uh1jWhj?ubeh}(h]h ]h"]h$]h&]uh1j7hj?hMGhj=ubj8)}(hF``duty_cycle`` duty cycle percentage, valid only for modulated signal h](j>)}(h``duty_cycle``h]h)}(hj?h]h duty_cycle}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMHhj?ubjX)}(hhh]h)}(h6duty cycle percentage, valid only for modulated signalh]h6duty cycle percentage, valid only for modulated signal}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMHhj?ubah}(h]h ]h"]h$]h&]uh1jWhj?ubeh}(h]h ]h"]h$]h&]uh1j7hj?hMHhj=ubj8)}(h%``invert_level`` invert signal level h](j>)}(h``invert_level``h]h)}(hj@h]h invert_level}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMIhj@ubjX)}(hhh]h)}(hinvert signal levelh]hinvert signal level}(hj7@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3@hMIhj4@ubah}(h]h ]h"]h$]h&]uh1jWhj@ubeh}(h]h ]h"]h$]h&]uh1j7hj3@hMIhj=ubj8)}(hK``invert_carrier_sense`` Send 0/space as a carrier burst. used only in TX. h](j>)}(h``invert_carrier_sense``h]h)}(hjW@h]hinvert_carrier_sense}(hjY@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU@ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMKhjQ@ubjX)}(hhh]h)}(h1Send 0/space as a carrier burst. used only in TX.h]h1Send 0/space as a carrier burst. used only in TX.}(hjp@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl@hMKhjm@ubah}(h]h ]h"]h$]h&]uh1jWhjQ@ubeh}(h]h ]h"]h$]h&]uh1j7hjl@hMKhj=ubj8)}(hO``noise_filter_min_width`` min time of a valid pulse, in ns. Used only for RX. h](j>)}(h``noise_filter_min_width``h]h)}(hj@h]hnoise_filter_min_width}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMMhj@ubjX)}(hhh]h)}(h3min time of a valid pulse, in ns. Used only for RX.h]h3min time of a valid pulse, in ns. Used only for RX.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMMhj@ubah}(h]h ]h"]h$]h&]uh1jWhj@ubeh}(h]h ]h"]h$]h&]uh1j7hj@hMMhj=ubj8)}(hg``carrier_range_lower`` Lower carrier range, in Hz, valid only for modulated signal. Used only for RX. h](j>)}(h``carrier_range_lower``h]h)}(hj@h]hcarrier_range_lower}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMOhj@ubjX)}(hhh]h)}(hNLower carrier range, in Hz, valid only for modulated signal. Used only for RX.h]hNLower carrier range, in Hz, valid only for modulated signal. Used only for RX.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMNhj@ubah}(h]h ]h"]h$]h&]uh1jWhj@ubeh}(h]h ]h"]h$]h&]uh1j7hj@hMOhj=ubj8)}(hg``carrier_range_upper`` Upper carrier range, in Hz, valid only for modulated signal. Used only for RX. h](j>)}(h``carrier_range_upper``h]h)}(hjAh]hcarrier_range_upper}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMQhj@ubjX)}(hhh]h)}(hNUpper carrier range, in Hz, valid only for modulated signal. Used only for RX.h]hNUpper carrier range, in Hz, valid only for modulated signal. Used only for RX.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMPhjAubah}(h]h ]h"]h$]h&]uh1jWhj@ubeh}(h]h ]h"]h$]h&]uh1j7hjAhMQhj=ubj8)}(h@``resolution`` The receive resolution, in ns . Used only for RX.h](j>)}(h``resolution``h]h)}(hj=Ah]h resolution}(hj?AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;Aubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMQhj7AubjX)}(hhh]h)}(h1The receive resolution, in ns . Used only for RX.h]h1The receive resolution, in ns . Used only for RX.}(hjVAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMRhjSAubah}(h]h ]h"]h$]h&]uh1jWhj7Aubeh}(h]h ]h"]h$]h&]uh1j7hjRAhMQhj=ubeh}(h]h ]h"]h$]h&]uh1j2hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_ir_ops (C struct)c.v4l2_subdev_ir_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_ir_opsh]jg)}(hstruct v4l2_subdev_ir_opsh](jm)}(hjph]hstruct}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMXubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjAhhhjAhMXubj)}(hv4l2_subdev_ir_opsh]j)}(hjAh]hv4l2_subdev_ir_ops}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]hhuh1jhjAhhhjAhMXubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjAhhhjAhMXubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1j`hjAhMXhjAhhubj)}(hhh]h)}(hoperations for IR subdevicesh]hoperations for IR subdevices}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMlhjAhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMXubeh}(h]h ](hstructeh"]h$]h&]jhjjAjjAjjjuh1j[hhhj9hNhNubj)}(hX **Definition**:: struct v4l2_subdev_ir_ops { int (*rx_read)(struct v4l2_subdev *sd, u8 *buf, size_t count, ssize_t *num); int (*rx_g_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*rx_s_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*tx_write)(struct v4l2_subdev *sd, u8 *buf, size_t count, ssize_t *num); int (*tx_g_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*tx_s_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); }; **Members** ``rx_read`` Reads received codes or pulse width data. The semantics are similar to a non-blocking read() call. ``rx_g_parameters`` Get the current operating parameters and state of the IR receiver. ``rx_s_parameters`` Set the current operating parameters and state of the IR receiver. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true. ``tx_write`` Writes codes or pulse width data for transmission. The semantics are similar to a non-blocking write() call. ``tx_g_parameters`` Get the current operating parameters and state of the IR transmitter. ``tx_s_parameters`` Set the current operating parameters and state of the IR transmitter. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh:}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMphjAubj*)}(hX9struct v4l2_subdev_ir_ops { int (*rx_read)(struct v4l2_subdev *sd, u8 *buf, size_t count, ssize_t *num); int (*rx_g_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*rx_s_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*tx_write)(struct v4l2_subdev *sd, u8 *buf, size_t count, ssize_t *num); int (*tx_g_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*tx_s_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); };h]hX9struct v4l2_subdev_ir_ops { int (*rx_read)(struct v4l2_subdev *sd, u8 *buf, size_t count, ssize_t *num); int (*rx_g_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*rx_s_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*tx_write)(struct v4l2_subdev *sd, u8 *buf, size_t count, ssize_t *num); int (*tx_g_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); int (*tx_s_parameters)(struct v4l2_subdev *sd, struct v4l2_subdev_ir_parameters *params); };}hjBsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMrhjAubh)}(h **Members**h]j)}(hj'Bh]hMembers}(hj)BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Bubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM{hjAubj3)}(hhh](j8)}(ho``rx_read`` Reads received codes or pulse width data. The semantics are similar to a non-blocking read() call. h](j>)}(h ``rx_read``h]h)}(hjFBh]hrx_read}(hjHBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDBubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMphj@BubjX)}(hhh]h)}(hbReads received codes or pulse width data. The semantics are similar to a non-blocking read() call.h]hbReads received codes or pulse width data. The semantics are similar to a non-blocking read() call.}(hj_BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMohj\Bubah}(h]h ]h"]h$]h&]uh1jWhj@Bubeh}(h]h ]h"]h$]h&]uh1j7hj[BhMphj=Bubj8)}(hW``rx_g_parameters`` Get the current operating parameters and state of the IR receiver. h](j>)}(h``rx_g_parameters``h]h)}(hjBh]hrx_g_parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~Bubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMrhjzBubjX)}(hhh]h)}(hBGet the current operating parameters and state of the IR receiver.h]hBGet the current operating parameters and state of the IR receiver.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMqhjBubah}(h]h ]h"]h$]h&]uh1jWhjzBubeh}(h]h ]h"]h$]h&]uh1j7hjBhMrhj=Bubj8)}(hX``rx_s_parameters`` Set the current operating parameters and state of the IR receiver. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true. h](j>)}(h``rx_s_parameters``h]h)}(hjBh]hrx_s_parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM}hjBubjX)}(hhh]h)}(hXSet the current operating parameters and state of the IR receiver. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true.h]hXSet the current operating parameters and state of the IR receiver. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMshjBubah}(h]h ]h"]h$]h&]uh1jWhjBubeh}(h]h ]h"]h$]h&]uh1j7hjBhM}hj=Bubj8)}(hz``tx_write`` Writes codes or pulse width data for transmission. The semantics are similar to a non-blocking write() call. h](j>)}(h ``tx_write``h]h)}(hjBh]htx_write}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjBubjX)}(hhh]h)}(hlWrites codes or pulse width data for transmission. The semantics are similar to a non-blocking write() call.h]hlWrites codes or pulse width data for transmission. The semantics are similar to a non-blocking write() call.}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Cubah}(h]h ]h"]h$]h&]uh1jWhjBubeh}(h]h ]h"]h$]h&]uh1j7hj ChMhj=Bubj8)}(hZ``tx_g_parameters`` Get the current operating parameters and state of the IR transmitter. h](j>)}(h``tx_g_parameters``h]h)}(hj.Ch]htx_g_parameters}(hj0ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,Cubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj(CubjX)}(hhh]h)}(hEGet the current operating parameters and state of the IR transmitter.h]hEGet the current operating parameters and state of the IR transmitter.}(hjGChhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjDCubah}(h]h ]h"]h$]h&]uh1jWhj(Cubeh}(h]h ]h"]h$]h&]uh1j7hjCChMhj=Bubj8)}(hX``tx_s_parameters`` Set the current operating parameters and state of the IR transmitter. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true.h](j>)}(h``tx_s_parameters``h]h)}(hjhCh]htx_s_parameters}(hjjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfCubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjbCubjX)}(hhh]h)}(hXSet the current operating parameters and state of the IR transmitter. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true.h]hXSet the current operating parameters and state of the IR transmitter. It is recommended to call [rt]x_g_parameters first to fill out the current state, and only change the fields that need to be changed. Upon return, the actual device operating parameters and state will be returned. Note that hardware limitations may prevent the actual settings from matching the requested settings - e.g. an actual carrier setting of 35,904 Hz when 36,000 Hz was requested. An exception is when the shutdown parameter is true. The last used operational parameters will be returned, but the actual state of the hardware be different to minimize power consumption and processing when shutdown is true.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj~Cubah}(h]h ]h"]h$]h&]uh1jWhjbCubeh}(h]h ]h"]h$]h&]uh1j7hj}ChMhj=Bubeh}(h]h ]h"]h$]h&]uh1j2hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW!v4l2_subdev_pad_config (C struct)c.v4l2_subdev_pad_confighNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_pad_configh]jg)}(hstruct v4l2_subdev_pad_configh](jm)}(hjph]hstruct}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjChhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjChhhjChMubj)}(hv4l2_subdev_pad_configh]j)}(hjCh]hv4l2_subdev_pad_config}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]hhuh1jhjChhhjChMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1j`hjChMhjChhubj)}(hhh]h)}(h(Used for storing subdev pad information.h]h(Used for storing subdev pad information.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](hstructeh"]h$]h&]jhjjDjjDjjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_pad_config { struct v4l2_mbus_framefmt format; struct v4l2_rect crop; struct v4l2_rect compose; struct v4l2_fract interval; }; **Members** ``format`` :c:type:`struct v4l2_mbus_framefmt ` ``crop`` :c:type:`struct v4l2_rect ` to be used for crop ``compose`` :c:type:`struct v4l2_rect ` to be used for compose ``interval`` frame intervalh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj(DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Dubh:}(hj$DhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Dubj*)}(hstruct v4l2_subdev_pad_config { struct v4l2_mbus_framefmt format; struct v4l2_rect crop; struct v4l2_rect compose; struct v4l2_fract interval; };h]hstruct v4l2_subdev_pad_config { struct v4l2_mbus_framefmt format; struct v4l2_rect crop; struct v4l2_rect compose; struct v4l2_fract interval; };}hjADsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Dubh)}(h **Members**h]j)}(hjRDh]hMembers}(hjTDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPDubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Dubj3)}(hhh](j8)}(hD``format`` :c:type:`struct v4l2_mbus_framefmt ` h](j>)}(h ``format``h]h)}(hjqDh]hformat}(hjsDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoDubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjkDubjX)}(hhh]h)}(h8:c:type:`struct v4l2_mbus_framefmt `h]h)}(hjDh]h)}(hjDh]hstruct v4l2_mbus_framefmt}(hjDhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_framefmtuh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jWhjkDubeh}(h]h ]h"]h$]h&]uh1j7hjDhMhjhDubj8)}(hD``crop`` :c:type:`struct v4l2_rect ` to be used for crop h](j>)}(h``crop``h]h)}(hjDh]hcrop}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjDubjX)}(hhh]h)}(h::c:type:`struct v4l2_rect ` to be used for croph](h)}(h&:c:type:`struct v4l2_rect `h]h)}(hjDh]hstruct v4l2_rect}(hjDhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_rectuh1hhjDhMhjDubh to be used for crop}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jWhjDubeh}(h]h ]h"]h$]h&]uh1j7hjDhMhjhDubj8)}(hJ``compose`` :c:type:`struct v4l2_rect ` to be used for compose h](j>)}(h ``compose``h]h)}(hjEh]hcompose}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjEubjX)}(hhh]h)}(h=:c:type:`struct v4l2_rect ` to be used for composeh](h)}(h&:c:type:`struct v4l2_rect `h]h)}(hj;Eh]hstruct v4l2_rect}(hj=EhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj9Eubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_rectuh1hhj1EhMhj5Eubh to be used for compose}(hj5EhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1EhMhj2Eubah}(h]h ]h"]h$]h&]uh1jWhjEubeh}(h]h ]h"]h$]h&]uh1j7hj1EhMhjhDubj8)}(h``interval`` frame intervalh](j>)}(h ``interval``h]h)}(hjtEh]hinterval}(hjvEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrEubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjnEubjX)}(hhh]h)}(hframe intervalh]hframe interval}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjEubah}(h]h ]h"]h$]h&]uh1jWhjnEubeh}(h]h ]h"]h$]h&]uh1j7hjEhMhjhDubeh}(h]h ]h"]h$]h&]uh1j2hj Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_stream_config (C struct)c.v4l2_subdev_stream_confighNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_stream_configh]jg)}(h struct v4l2_subdev_stream_configh](jm)}(hjph]hstruct}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjEhhhjEhMubj)}(hv4l2_subdev_stream_configh]j)}(hjEh]hv4l2_subdev_stream_config}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]hhuh1jhjEhhhjEhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1j`hjEhMhjEhhubj)}(hhh]h)}(h&Used for storing stream configuration.h]h&Used for storing stream configuration.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Fhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](hstructeh"]h$]h&]jhjj(Fjj(Fjjjuh1j[hhhj9hNhNubj)}(hXw**Definition**:: struct v4l2_subdev_stream_config { u32 pad; u32 stream; bool enabled; struct v4l2_mbus_framefmt fmt; struct v4l2_rect crop; struct v4l2_rect compose; struct v4l2_fract interval; }; **Members** ``pad`` pad number ``stream`` stream number ``enabled`` has the stream been enabled with v4l2_subdev_enable_streams() ``fmt`` :c:type:`struct v4l2_mbus_framefmt ` ``crop`` :c:type:`struct v4l2_rect ` to be used for crop ``compose`` :c:type:`struct v4l2_rect ` to be used for compose ``interval`` frame intervalh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj4FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Fubh:}(hj0FhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj,Fubj*)}(hstruct v4l2_subdev_stream_config { u32 pad; u32 stream; bool enabled; struct v4l2_mbus_framefmt fmt; struct v4l2_rect crop; struct v4l2_rect compose; struct v4l2_fract interval; };h]hstruct v4l2_subdev_stream_config { u32 pad; u32 stream; bool enabled; struct v4l2_mbus_framefmt fmt; struct v4l2_rect crop; struct v4l2_rect compose; struct v4l2_fract interval; };}hjMFsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj,Fubh)}(h **Members**h]j)}(hj^Fh]hMembers}(hj`FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Fubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj,Fubj3)}(hhh](j8)}(h``pad`` pad number h](j>)}(h``pad``h]h)}(hj}Fh]hpad}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{Fubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjwFubjX)}(hhh]h)}(h pad numberh]h pad number}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jWhjwFubeh}(h]h ]h"]h$]h&]uh1j7hjFhMhjtFubj8)}(h``stream`` stream number h](j>)}(h ``stream``h]h)}(hjFh]hstream}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubjX)}(hhh]h)}(h stream numberh]h stream number}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jWhjFubeh}(h]h ]h"]h$]h&]uh1j7hjFhMhjtFubj8)}(hJ``enabled`` has the stream been enabled with v4l2_subdev_enable_streams() h](j>)}(h ``enabled``h]h)}(hjFh]henabled}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubjX)}(hhh]h)}(h=has the stream been enabled with v4l2_subdev_enable_streams()h]h=has the stream been enabled with v4l2_subdev_enable_streams()}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jWhjFubeh}(h]h ]h"]h$]h&]uh1j7hjGhMhjtFubj8)}(hA``fmt`` :c:type:`struct v4l2_mbus_framefmt ` h](j>)}(h``fmt``h]h)}(hj(Gh]hfmt}(hj*GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&Gubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj"GubjX)}(hhh]h)}(h8:c:type:`struct v4l2_mbus_framefmt `h]h)}(hjCGh]h)}(hjCGh]hstruct v4l2_mbus_framefmt}(hjHGhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjEGubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_framefmtuh1hhj=GhMhjAGubah}(h]h ]h"]h$]h&]uh1hhj=GhMhj>Gubah}(h]h ]h"]h$]h&]uh1jWhj"Gubeh}(h]h ]h"]h$]h&]uh1j7hj=GhMhjtFubj8)}(hD``crop`` :c:type:`struct v4l2_rect ` to be used for crop h](j>)}(h``crop``h]h)}(hj{Gh]hcrop}(hj}GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyGubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjuGubjX)}(hhh]h)}(h::c:type:`struct v4l2_rect ` to be used for croph](h)}(h&:c:type:`struct v4l2_rect `h]h)}(hjGh]hstruct v4l2_rect}(hjGhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_rectuh1hhjGhMhjGubh to be used for crop}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jWhjuGubeh}(h]h ]h"]h$]h&]uh1j7hjGhMhjtFubj8)}(hJ``compose`` :c:type:`struct v4l2_rect ` to be used for compose h](j>)}(h ``compose``h]h)}(hjGh]hcompose}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjGubjX)}(hhh]h)}(h=:c:type:`struct v4l2_rect ` to be used for composeh](h)}(h&:c:type:`struct v4l2_rect `h]h)}(hjGh]hstruct v4l2_rect}(hjGhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_rectuh1hhjGhMhjGubh to be used for compose}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jWhjGubeh}(h]h ]h"]h$]h&]uh1j7hjGhMhjtFubj8)}(h``interval`` frame intervalh](j>)}(h ``interval``h]h)}(hj+Hh]hinterval}(hj-HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)Hubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj%HubjX)}(hhh]h)}(hframe intervalh]hframe interval}(hjDHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjAHubah}(h]h ]h"]h$]h&]uh1jWhj%Hubeh}(h]h ]h"]h$]h&]uh1j7hj@HhMhjtFubeh}(h]h ]h"]h$]h&]uh1j2hj,Fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubh)}(h**Description**h]j)}(hjnHh]h Description}(hjpHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlHubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubh)}(h1This structure stores configuration for a stream.h]h1This structure stores configuration for a stream.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%v4l2_subdev_stream_configs (C struct)c.v4l2_subdev_stream_configshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_stream_configsh]jg)}(h!struct v4l2_subdev_stream_configsh](jm)}(hjph]hstruct}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjHhhhjHhMubj)}(hv4l2_subdev_stream_configsh]j)}(hjHh]hv4l2_subdev_stream_configs}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]hhuh1jhjHhhhjHhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjHhhhjHhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1j`hjHhMhjHhhubj)}(hhh]h)}(hA collection of stream configs.h]hA collection of stream configs.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMubeh}(h]h ](hstructeh"]h$]h&]jhjjIjjIjjjuh1j[hhhj9hNhNubj)}(hX***Definition**:: struct v4l2_subdev_stream_configs { u32 num_configs; struct v4l2_subdev_stream_config *configs; }; **Members** ``num_configs`` number of entries in **config**. ``configs`` an array of :c:type:`struct v4l2_subdev_stream_configs `.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh:}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Iubj*)}(hjstruct v4l2_subdev_stream_configs { u32 num_configs; struct v4l2_subdev_stream_config *configs; };h]hjstruct v4l2_subdev_stream_configs { u32 num_configs; struct v4l2_subdev_stream_config *configs; };}hj+Isbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Iubh)}(h **Members**h]j)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Iubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Iubj3)}(hhh](j8)}(h1``num_configs`` number of entries in **config**. h](j>)}(h``num_configs``h]h)}(hj[Ih]h num_configs}(hj]IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYIubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjUIubjX)}(hhh]h)}(h number of entries in **config**.h](hnumber of entries in }(hjtIhhhNhNubj)}(h **config**h]hconfig}(hj|IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtIubh.}(hjtIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjpIhMhjqIubah}(h]h ]h"]h$]h&]uh1jWhjUIubeh}(h]h ]h"]h$]h&]uh1j7hjpIhMhjRIubj8)}(ha``configs`` an array of :c:type:`struct v4l2_subdev_stream_configs `.h](j>)}(h ``configs``h]h)}(hjIh]hconfigs}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjIubjX)}(hhh]h)}(hUan array of :c:type:`struct v4l2_subdev_stream_configs `.h](h an array of }(hjIhhhNhNubh)}(hH:c:type:`struct v4l2_subdev_stream_configs `h]h)}(hjIh]h!struct v4l2_subdev_stream_configs}(hjIhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_stream_configsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjIubh.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jWhjIubeh}(h]h ]h"]h$]h&]uh1j7hjIhMhjRIubeh}(h]h ]h"]h$]h&]uh1j2hj Iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_krouting (C struct)c.v4l2_subdev_kroutinghNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_kroutingh]jg)}(hstruct v4l2_subdev_kroutingh](jm)}(hjph]hstruct}(hj#JhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj1JhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjJhhhj0JhMubj)}(hv4l2_subdev_kroutingh]j)}(hjJh]hv4l2_subdev_krouting}(hjCJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Jubah}(h]h ](jjeh"]h$]h&]hhuh1jhjJhhhj0JhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjJhhhj0JhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1j`hj0JhMhjJhhubj)}(hhh]h)}(hsubdev routing tableh]hsubdev routing table}(hjeJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjbJhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhj0JhMubeh}(h]h ](hstructeh"]h$]h&]jhjj}Jjj}Jjjjuh1j[hhhj9hNhNubj)}(hXE**Definition**:: struct v4l2_subdev_krouting { unsigned int len_routes; unsigned int num_routes; struct v4l2_subdev_route *routes; }; **Members** ``len_routes`` length of routes array, in routes ``num_routes`` number of routes ``routes`` :c:type:`struct v4l2_subdev_route `h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh:}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjJubj*)}(hstruct v4l2_subdev_krouting { unsigned int len_routes; unsigned int num_routes; struct v4l2_subdev_route *routes; };h]hstruct v4l2_subdev_krouting { unsigned int len_routes; unsigned int num_routes; struct v4l2_subdev_route *routes; };}hjJsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjJubh)}(h **Members**h]j)}(hjJh]hMembers}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjJubj3)}(hhh](j8)}(h1``len_routes`` length of routes array, in routes h](j>)}(h``len_routes``h]h)}(hjJh]h len_routes}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjJubjX)}(hhh]h)}(h!length of routes array, in routesh]h!length of routes array, in routes}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jWhjJubeh}(h]h ]h"]h$]h&]uh1j7hjJhMhjJubj8)}(h ``num_routes`` number of routes h](j>)}(h``num_routes``h]h)}(hj Kh]h num_routes}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj Kubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjKubjX)}(hhh]h)}(hnumber of routesh]hnumber of routes}(hj$KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj KhMhj!Kubah}(h]h ]h"]h$]h&]uh1jWhjKubeh}(h]h ]h"]h$]h&]uh1j7hj KhMhjJubj8)}(hA``routes`` :c:type:`struct v4l2_subdev_route `h](j>)}(h ``routes``h]h)}(hjDKh]hroutes}(hjFKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBKubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj>KubjX)}(hhh]h)}(h6:c:type:`struct v4l2_subdev_route `h]h)}(hj_Kh]h)}(hj_Kh]hstruct v4l2_subdev_route}(hjdKhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjaKubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_routeuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj]Kubah}(h]h ]h"]h$]h&]uh1hhjKhMhjZKubah}(h]h ]h"]h$]h&]uh1jWhj>Kubeh}(h]h ]h"]h$]h&]uh1j7hjYKhMhjJubeh}(h]h ]h"]h$]h&]uh1j2hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubh)}(h7This structure contains the routing table for a subdev.h]h7This structure contains the routing table for a subdev.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_state (C struct)c.v4l2_subdev_statehNtauh1jJhj9hhhNhNubj\)}(Xhhh](ja)}(hv4l2_subdev_stateh]jg)}(hstruct v4l2_subdev_stateh](jm)}(hjph]hstruct}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjKhhhjKhMubj)}(hv4l2_subdev_stateh]j)}(hjKh]hv4l2_subdev_state}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]hhuh1jhjKhhhjKhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjKhhhjKhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1j`hjKhMhjKhhubj)}(hhh]h)}(h*Used for storing subdev state information.h]h*Used for storing subdev state information.}(hj!LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhMubeh}(h]h ](hstructeh"]h$]h&]jhjj9Ljj9Ljjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_state { struct mutex _lock; struct mutex *lock; struct v4l2_subdev *sd; struct v4l2_subdev_pad_config *pads; struct v4l2_subdev_krouting routing; struct v4l2_subdev_stream_configs stream_configs; }; **Members** ``_lock`` default for 'lock' ``lock`` mutex for the state. May be replaced by the user. ``sd`` the sub-device which the state is related to ``pads`` :c:type:`struct v4l2_subdev_pad_config ` array ``routing`` routing table for the subdev ``stream_configs`` stream configurations (only for V4L2_SUBDEV_FL_STREAMS)h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjELhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjALubh:}(hjALhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj=Lubj*)}(hstruct v4l2_subdev_state { struct mutex _lock; struct mutex *lock; struct v4l2_subdev *sd; struct v4l2_subdev_pad_config *pads; struct v4l2_subdev_krouting routing; struct v4l2_subdev_stream_configs stream_configs; };h]hstruct v4l2_subdev_state { struct mutex _lock; struct mutex *lock; struct v4l2_subdev *sd; struct v4l2_subdev_pad_config *pads; struct v4l2_subdev_krouting routing; struct v4l2_subdev_stream_configs stream_configs; };}hj^Lsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj=Lubh)}(h **Members**h]j)}(hjoLh]hMembers}(hjqLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmLubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj=Lubj3)}(hhh](j8)}(h``_lock`` default for 'lock' h](j>)}(h ``_lock``h]h)}(hjLh]h_lock}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjLubjX)}(hhh]h)}(hdefault for 'lock'h]hdefault for ‘lock’}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jWhjLubeh}(h]h ]h"]h$]h&]uh1j7hjLhMhjLubj8)}(h;``lock`` mutex for the state. May be replaced by the user. h](j>)}(h``lock``h]h)}(hjLh]hlock}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjLubjX)}(hhh]h)}(h1mutex for the state. May be replaced by the user.h]h1mutex for the state. May be replaced by the user.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jWhjLubeh}(h]h ]h"]h$]h&]uh1j7hjLhMhjLubj8)}(h4``sd`` the sub-device which the state is related to h](j>)}(h``sd``h]h)}(hjMh]hsd}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjLubjX)}(hhh]h)}(h,the sub-device which the state is related toh]h,the sub-device which the state is related to}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jWhjLubeh}(h]h ]h"]h$]h&]uh1j7hjMhMhjLubj8)}(hP``pads`` :c:type:`struct v4l2_subdev_pad_config ` array h](j>)}(h``pads``h]h)}(hj9Mh]hpads}(hj;MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7Mubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj3MubjX)}(hhh]h)}(hF:c:type:`struct v4l2_subdev_pad_config ` arrayh](h)}(h@:c:type:`struct v4l2_subdev_pad_config `h]h)}(hjXMh]hstruct v4l2_subdev_pad_config}(hjZMhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjVMubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pad_configuh1hhjNMhMhjRMubh array}(hjRMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNMhMhjOMubah}(h]h ]h"]h$]h&]uh1jWhj3Mubeh}(h]h ]h"]h$]h&]uh1j7hjNMhMhjLubj8)}(h)``routing`` routing table for the subdev h](j>)}(h ``routing``h]h)}(hjMh]hrouting}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjMubjX)}(hhh]h)}(hrouting table for the subdevh]hrouting table for the subdev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jWhjMubeh}(h]h ]h"]h$]h&]uh1j7hjMhMhjLubj8)}(hJ``stream_configs`` stream configurations (only for V4L2_SUBDEV_FL_STREAMS)h](j>)}(h``stream_configs``h]h)}(hjMh]hstream_configs}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjMubjX)}(hhh]h)}(h7stream configurations (only for V4L2_SUBDEV_FL_STREAMS)h]h7stream configurations (only for V4L2_SUBDEV_FL_STREAMS)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjMubah}(h]h ]h"]h$]h&]uh1jWhjMubeh}(h]h ]h"]h$]h&]uh1j7hjMhMhjLubeh}(h]h ]h"]h$]h&]uh1j2hj=Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubh)}(h**Description**h]j)}(hj Nh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Nubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubh)}(hThis structure only needs to be passed to the pad op if the 'which' field of the main argument is set to ``V4L2_SUBDEV_FORMAT_TRY``. For ``V4L2_SUBDEV_FORMAT_ACTIVE`` it is safe to pass ``NULL``.h](hmThis structure only needs to be passed to the pad op if the ‘which’ field of the main argument is set to }(hj#NhhhNhNubh)}(h``V4L2_SUBDEV_FORMAT_TRY``h]hV4L2_SUBDEV_FORMAT_TRY}(hj+NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#Nubh. For }(hj#NhhhNhNubh)}(h``V4L2_SUBDEV_FORMAT_ACTIVE``h]hV4L2_SUBDEV_FORMAT_ACTIVE}(hj=NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#Nubh it is safe to pass }(hj#NhhhNhNubh)}(h``NULL``h]hNULL}(hjONhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#Nubh.}(hj#NhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_pad_ops (C struct)c.v4l2_subdev_pad_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_pad_opsh]jg)}(hstruct v4l2_subdev_pad_opsh](jm)}(hjph]hstruct}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}Nhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj}NhhhjNhMubj)}(hv4l2_subdev_pad_opsh]j)}(hj{Nh]hv4l2_subdev_pad_ops}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]hhuh1jhj}NhhhjNhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjyNhhhjNhMubah}(h]jtNah ](jjeh"]h$]h&]jj)jhuh1j`hjNhMhjvNhhubj)}(hhh]h)}(h v4l2-subdev pad level operationsh]h v4l2-subdev pad level operations}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjvNhhhjNhMubeh}(h]h ](hstructeh"]h$]h&]jhjjNjjNjjjuh1j[hhhj9hNhNubj)}(hXD**Definition**:: struct v4l2_subdev_pad_ops { int (*enum_mbus_code)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_mbus_code_enum *code); int (*enum_frame_size)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_size_enum *fse); int (*enum_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval_enum *fie); int (*get_fmt)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_format *format); int (*set_fmt)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_format *format); int (*get_selection)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_selection *sel); int (*set_selection)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_selection *sel); int (*get_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *interval); int (*set_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *interval); int (*get_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); int (*set_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); int (*s_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*g_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*query_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*dv_timings_cap)(struct v4l2_subdev *sd, struct v4l2_dv_timings_cap *cap); int (*enum_dv_timings)(struct v4l2_subdev *sd, struct v4l2_enum_dv_timings *timings); #ifdef CONFIG_MEDIA_CONTROLLER; int (*link_validate)(struct v4l2_subdev *sd, struct media_link *link,struct v4l2_subdev_format *source_fmt, struct v4l2_subdev_format *sink_fmt); #endif ; int (*get_frame_desc)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd); int (*set_frame_desc)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd); int (*get_mbus_config)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_config *config); int (*set_routing)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state,enum v4l2_subdev_format_whence which, struct v4l2_subdev_krouting *route); int (*enable_streams)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, u32 pad, u64 streams_mask); int (*disable_streams)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, u32 pad, u64 streams_mask); }; **Members** ``enum_mbus_code`` callback for VIDIOC_SUBDEV_ENUM_MBUS_CODE() ioctl handler code. ``enum_frame_size`` callback for VIDIOC_SUBDEV_ENUM_FRAME_SIZE() ioctl handler code. ``enum_frame_interval`` callback for VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL() ioctl handler code. ``get_fmt`` callback for VIDIOC_SUBDEV_G_FMT() ioctl handler code. ``set_fmt`` callback for VIDIOC_SUBDEV_S_FMT() ioctl handler code. ``get_selection`` callback for VIDIOC_SUBDEV_G_SELECTION() ioctl handler code. ``set_selection`` callback for VIDIOC_SUBDEV_S_SELECTION() ioctl handler code. ``get_frame_interval`` callback for VIDIOC_SUBDEV_G_FRAME_INTERVAL() ioctl handler code. ``set_frame_interval`` callback for VIDIOC_SUBDEV_S_FRAME_INTERVAL() ioctl handler code. ``get_edid`` callback for VIDIOC_SUBDEV_G_EDID() ioctl handler code. ``set_edid`` callback for VIDIOC_SUBDEV_S_EDID() ioctl handler code. ``s_dv_timings`` Set custom dv timings in the sub device. This is used when sub device is capable of setting detailed timing information in the hardware to generate/detect the video signal. ``g_dv_timings`` Get custom dv timings in the sub device. ``query_dv_timings`` callback for VIDIOC_QUERY_DV_TIMINGS() ioctl handler code. ``dv_timings_cap`` callback for VIDIOC_SUBDEV_DV_TIMINGS_CAP() ioctl handler code. ``enum_dv_timings`` callback for VIDIOC_SUBDEV_ENUM_DV_TIMINGS() ioctl handler code. ``link_validate`` used by the media controller code to check if the links that belongs to a pipeline can be used for stream. ``get_frame_desc`` get the current low level media bus frame parameters. ``set_frame_desc`` set the low level media bus frame parameters, **fd** array may be adjusted by the subdev driver to device capabilities. ``get_mbus_config`` get the media bus configuration of a remote sub-device. The media bus configuration is usually retrieved from the firmware interface at sub-device probe time, immediately applied to the hardware and eventually adjusted by the driver. Remote sub-devices (usually video receivers) shall use this operation to query the transmitting end bus configuration in order to adjust their own one accordingly. Callers should make sure they get the most up-to-date as possible configuration from the remote end, likely calling this operation as close as possible to stream on time. The operation shall fail if the pad index it has been called on is not valid or in case of unrecoverable failures. The config argument has been memset to 0 just before calling the op. ``set_routing`` Enable or disable data connection routes described in the subdevice routing table. Subdevs that implement this operation must set the V4L2_SUBDEV_FL_STREAMS flag. ``enable_streams`` Enable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_enable_streams() instead. Drivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument. ``disable_streams`` Disable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_disable_streams() instead. Drivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh:}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjNubj*)}(hX= struct v4l2_subdev_pad_ops { int (*enum_mbus_code)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_mbus_code_enum *code); int (*enum_frame_size)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_size_enum *fse); int (*enum_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval_enum *fie); int (*get_fmt)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_format *format); int (*set_fmt)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_format *format); int (*get_selection)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_selection *sel); int (*set_selection)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_selection *sel); int (*get_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *interval); int (*set_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *interval); int (*get_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); int (*set_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); int (*s_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*g_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*query_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*dv_timings_cap)(struct v4l2_subdev *sd, struct v4l2_dv_timings_cap *cap); int (*enum_dv_timings)(struct v4l2_subdev *sd, struct v4l2_enum_dv_timings *timings); #ifdef CONFIG_MEDIA_CONTROLLER; int (*link_validate)(struct v4l2_subdev *sd, struct media_link *link,struct v4l2_subdev_format *source_fmt, struct v4l2_subdev_format *sink_fmt); #endif ; int (*get_frame_desc)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd); int (*set_frame_desc)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd); int (*get_mbus_config)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_config *config); int (*set_routing)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state,enum v4l2_subdev_format_whence which, struct v4l2_subdev_krouting *route); int (*enable_streams)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, u32 pad, u64 streams_mask); int (*disable_streams)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, u32 pad, u64 streams_mask); };h]hX= struct v4l2_subdev_pad_ops { int (*enum_mbus_code)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_mbus_code_enum *code); int (*enum_frame_size)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_size_enum *fse); int (*enum_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval_enum *fie); int (*get_fmt)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_format *format); int (*set_fmt)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_format *format); int (*get_selection)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_selection *sel); int (*set_selection)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_selection *sel); int (*get_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *interval); int (*set_frame_interval)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *interval); int (*get_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); int (*set_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); int (*s_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*g_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*query_dv_timings)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_dv_timings *timings); int (*dv_timings_cap)(struct v4l2_subdev *sd, struct v4l2_dv_timings_cap *cap); int (*enum_dv_timings)(struct v4l2_subdev *sd, struct v4l2_enum_dv_timings *timings); #ifdef CONFIG_MEDIA_CONTROLLER; int (*link_validate)(struct v4l2_subdev *sd, struct media_link *link,struct v4l2_subdev_format *source_fmt, struct v4l2_subdev_format *sink_fmt); #endif ; int (*get_frame_desc)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd); int (*set_frame_desc)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd); int (*get_mbus_config)(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_config *config); int (*set_routing)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state,enum v4l2_subdev_format_whence which, struct v4l2_subdev_krouting *route); int (*enable_streams)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, u32 pad, u64 streams_mask); int (*disable_streams)(struct v4l2_subdev *sd,struct v4l2_subdev_state *state, u32 pad, u64 streams_mask); };}hjOsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjNubh)}(h **Members**h]j)}(hjOh]hMembers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjNubj3)}(hhh](j8)}(hS``enum_mbus_code`` callback for VIDIOC_SUBDEV_ENUM_MBUS_CODE() ioctl handler code. h](j>)}(h``enum_mbus_code``h]h)}(hj0Oh]henum_mbus_code}(hj2OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.Oubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj*OubjX)}(hhh]h)}(h?callback for VIDIOC_SUBDEV_ENUM_MBUS_CODE() ioctl handler code.h]h?callback for VIDIOC_SUBDEV_ENUM_MBUS_CODE() ioctl handler code.}(hjIOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFOubah}(h]h ]h"]h$]h&]uh1jWhj*Oubeh}(h]h ]h"]h$]h&]uh1j7hjEOhMhj'Oubj8)}(hU``enum_frame_size`` callback for VIDIOC_SUBDEV_ENUM_FRAME_SIZE() ioctl handler code. h](j>)}(h``enum_frame_size``h]h)}(hjjOh]henum_frame_size}(hjlOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhOubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjdOubjX)}(hhh]h)}(h@callback for VIDIOC_SUBDEV_ENUM_FRAME_SIZE() ioctl handler code.h]h@callback for VIDIOC_SUBDEV_ENUM_FRAME_SIZE() ioctl handler code.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjOubah}(h]h ]h"]h$]h&]uh1jWhjdOubeh}(h]h ]h"]h$]h&]uh1j7hjOhMhj'Oubj8)}(h]``enum_frame_interval`` callback for VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL() ioctl handler code. h](j>)}(h``enum_frame_interval``h]h)}(hjOh]henum_frame_interval}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjOubjX)}(hhh]h)}(hDcallback for VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL() ioctl handler code.h]hDcallback for VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL() ioctl handler code.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjOubah}(h]h ]h"]h$]h&]uh1jWhjOubeh}(h]h ]h"]h$]h&]uh1j7hjOhMhj'Oubj8)}(hC``get_fmt`` callback for VIDIOC_SUBDEV_G_FMT() ioctl handler code. h](j>)}(h ``get_fmt``h]h)}(hjOh]hget_fmt}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjOubjX)}(hhh]h)}(h6callback for VIDIOC_SUBDEV_G_FMT() ioctl handler code.h]h6callback for VIDIOC_SUBDEV_G_FMT() ioctl handler code.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jWhjOubeh}(h]h ]h"]h$]h&]uh1j7hjOhMhj'Oubj8)}(hC``set_fmt`` callback for VIDIOC_SUBDEV_S_FMT() ioctl handler code. h](j>)}(h ``set_fmt``h]h)}(hjPh]hset_fmt}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjPubjX)}(hhh]h)}(h6callback for VIDIOC_SUBDEV_S_FMT() ioctl handler code.h]h6callback for VIDIOC_SUBDEV_S_FMT() ioctl handler code.}(hj0PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,PhM hj-Pubah}(h]h ]h"]h$]h&]uh1jWhjPubeh}(h]h ]h"]h$]h&]uh1j7hj,PhM hj'Oubj8)}(hO``get_selection`` callback for VIDIOC_SUBDEV_G_SELECTION() ioctl handler code. h](j>)}(h``get_selection``h]h)}(hjPPh]h get_selection}(hjRPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNPubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjJPubjX)}(hhh]h)}(h)}(h``set_selection``h]h)}(hjPh]h set_selection}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjPubjX)}(hhh]h)}(h)}(h``get_frame_interval``h]h)}(hjPh]hget_frame_interval}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjPubjX)}(hhh]h)}(hAcallback for VIDIOC_SUBDEV_G_FRAME_INTERVAL() ioctl handler code.h]hAcallback for VIDIOC_SUBDEV_G_FRAME_INTERVAL() ioctl handler code.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjPubah}(h]h ]h"]h$]h&]uh1jWhjPubeh}(h]h ]h"]h$]h&]uh1j7hjPhMhj'Oubj8)}(hY``set_frame_interval`` callback for VIDIOC_SUBDEV_S_FRAME_INTERVAL() ioctl handler code. h](j>)}(h``set_frame_interval``h]h)}(hjPh]hset_frame_interval}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjPubjX)}(hhh]h)}(hAcallback for VIDIOC_SUBDEV_S_FRAME_INTERVAL() ioctl handler code.h]hAcallback for VIDIOC_SUBDEV_S_FRAME_INTERVAL() ioctl handler code.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjQubah}(h]h ]h"]h$]h&]uh1jWhjPubeh}(h]h ]h"]h$]h&]uh1j7hjQhMhj'Oubj8)}(hE``get_edid`` callback for VIDIOC_SUBDEV_G_EDID() ioctl handler code. h](j>)}(h ``get_edid``h]h)}(hj6Qh]hget_edid}(hj8QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4Qubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0QubjX)}(hhh]h)}(h7callback for VIDIOC_SUBDEV_G_EDID() ioctl handler code.h]h7callback for VIDIOC_SUBDEV_G_EDID() ioctl handler code.}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKQhMhjLQubah}(h]h ]h"]h$]h&]uh1jWhj0Qubeh}(h]h ]h"]h$]h&]uh1j7hjKQhMhj'Oubj8)}(hE``set_edid`` callback for VIDIOC_SUBDEV_S_EDID() ioctl handler code. h](j>)}(h ``set_edid``h]h)}(hjoQh]hset_edid}(hjqQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmQubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjiQubjX)}(hhh]h)}(h7callback for VIDIOC_SUBDEV_S_EDID() ioctl handler code.h]h7callback for VIDIOC_SUBDEV_S_EDID() ioctl handler code.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jWhjiQubeh}(h]h ]h"]h$]h&]uh1j7hjQhMhj'Oubj8)}(h``s_dv_timings`` Set custom dv timings in the sub device. This is used when sub device is capable of setting detailed timing information in the hardware to generate/detect the video signal. h](j>)}(h``s_dv_timings``h]h)}(hjQh]h s_dv_timings}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjQubjX)}(hhh]h)}(hSet custom dv timings in the sub device. This is used when sub device is capable of setting detailed timing information in the hardware to generate/detect the video signal.h]hSet custom dv timings in the sub device. This is used when sub device is capable of setting detailed timing information in the hardware to generate/detect the video signal.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjQubah}(h]h ]h"]h$]h&]uh1jWhjQubeh}(h]h ]h"]h$]h&]uh1j7hjQhMhj'Oubj8)}(h:``g_dv_timings`` Get custom dv timings in the sub device. h](j>)}(h``g_dv_timings``h]h)}(hjQh]h g_dv_timings}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjQubjX)}(hhh]h)}(h(Get custom dv timings in the sub device.h]h(Get custom dv timings in the sub device.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jWhjQubeh}(h]h ]h"]h$]h&]uh1j7hjQhMhj'Oubj8)}(hP``query_dv_timings`` callback for VIDIOC_QUERY_DV_TIMINGS() ioctl handler code. h](j>)}(h``query_dv_timings``h]h)}(hjRh]hquery_dv_timings}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjRubjX)}(hhh]h)}(h:callback for VIDIOC_QUERY_DV_TIMINGS() ioctl handler code.h]h:callback for VIDIOC_QUERY_DV_TIMINGS() ioctl handler code.}(hj4RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0RhMhj1Rubah}(h]h ]h"]h$]h&]uh1jWhjRubeh}(h]h ]h"]h$]h&]uh1j7hj0RhMhj'Oubj8)}(hS``dv_timings_cap`` callback for VIDIOC_SUBDEV_DV_TIMINGS_CAP() ioctl handler code. h](j>)}(h``dv_timings_cap``h]h)}(hjTRh]hdv_timings_cap}(hjVRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRRubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM"hjNRubjX)}(hhh]h)}(h?callback for VIDIOC_SUBDEV_DV_TIMINGS_CAP() ioctl handler code.h]h?callback for VIDIOC_SUBDEV_DV_TIMINGS_CAP() ioctl handler code.}(hjmRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM!hjjRubah}(h]h ]h"]h$]h&]uh1jWhjNRubeh}(h]h ]h"]h$]h&]uh1j7hjiRhM"hj'Oubj8)}(hU``enum_dv_timings`` callback for VIDIOC_SUBDEV_ENUM_DV_TIMINGS() ioctl handler code. h](j>)}(h``enum_dv_timings``h]h)}(hjRh]henum_dv_timings}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM%hjRubjX)}(hhh]h)}(h@callback for VIDIOC_SUBDEV_ENUM_DV_TIMINGS() ioctl handler code.h]h@callback for VIDIOC_SUBDEV_ENUM_DV_TIMINGS() ioctl handler code.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM$hjRubah}(h]h ]h"]h$]h&]uh1jWhjRubeh}(h]h ]h"]h$]h&]uh1j7hjRhM%hj'Oubj8)}(h}``link_validate`` used by the media controller code to check if the links that belongs to a pipeline can be used for stream. h](j>)}(h``link_validate``h]h)}(hjRh]h link_validate}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM(hjRubjX)}(hhh]h)}(hjused by the media controller code to check if the links that belongs to a pipeline can be used for stream.h]hjused by the media controller code to check if the links that belongs to a pipeline can be used for stream.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'hjRubah}(h]h ]h"]h$]h&]uh1jWhjRubeh}(h]h ]h"]h$]h&]uh1j7hjRhM(hj'Oubj8)}(hI``get_frame_desc`` get the current low level media bus frame parameters. h](j>)}(h``get_frame_desc``h]h)}(hjSh]hget_frame_desc}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM*hjRubjX)}(hhh]h)}(h5get the current low level media bus frame parameters.h]h5get the current low level media bus frame parameters.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM*hjSubah}(h]h ]h"]h$]h&]uh1jWhjRubeh}(h]h ]h"]h$]h&]uh1j7hjShM*hj'Oubj8)}(h``set_frame_desc`` set the low level media bus frame parameters, **fd** array may be adjusted by the subdev driver to device capabilities. h](j>)}(h``set_frame_desc``h]h)}(hj;Sh]hset_frame_desc}(hj=ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9Subah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM-hj5SubjX)}(hhh]h)}(hwset the low level media bus frame parameters, **fd** array may be adjusted by the subdev driver to device capabilities.h](h.set the low level media bus frame parameters, }(hjTShhhNhNubj)}(h**fd**h]hfd}(hj\ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTSubhC array may be adjusted by the subdev driver to device capabilities.}(hjTShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM,hjQSubah}(h]h ]h"]h$]h&]uh1jWhj5Subeh}(h]h ]h"]h$]h&]uh1j7hjPShM-hj'Oubj8)}(hX``get_mbus_config`` get the media bus configuration of a remote sub-device. The media bus configuration is usually retrieved from the firmware interface at sub-device probe time, immediately applied to the hardware and eventually adjusted by the driver. Remote sub-devices (usually video receivers) shall use this operation to query the transmitting end bus configuration in order to adjust their own one accordingly. Callers should make sure they get the most up-to-date as possible configuration from the remote end, likely calling this operation as close as possible to stream on time. The operation shall fail if the pad index it has been called on is not valid or in case of unrecoverable failures. The config argument has been memset to 0 just before calling the op. h](j>)}(h``get_mbus_config``h]h)}(hjSh]hget_mbus_config}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM<hjSubjX)}(hhh]h)}(hXget the media bus configuration of a remote sub-device. The media bus configuration is usually retrieved from the firmware interface at sub-device probe time, immediately applied to the hardware and eventually adjusted by the driver. Remote sub-devices (usually video receivers) shall use this operation to query the transmitting end bus configuration in order to adjust their own one accordingly. Callers should make sure they get the most up-to-date as possible configuration from the remote end, likely calling this operation as close as possible to stream on time. The operation shall fail if the pad index it has been called on is not valid or in case of unrecoverable failures. The config argument has been memset to 0 just before calling the op.h]hXget the media bus configuration of a remote sub-device. The media bus configuration is usually retrieved from the firmware interface at sub-device probe time, immediately applied to the hardware and eventually adjusted by the driver. Remote sub-devices (usually video receivers) shall use this operation to query the transmitting end bus configuration in order to adjust their own one accordingly. Callers should make sure they get the most up-to-date as possible configuration from the remote end, likely calling this operation as close as possible to stream on time. The operation shall fail if the pad index it has been called on is not valid or in case of unrecoverable failures. The config argument has been memset to 0 just before calling the op.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM/hjSubah}(h]h ]h"]h$]h&]uh1jWhjSubeh}(h]h ]h"]h$]h&]uh1j7hjShM<hj'Oubj8)}(h``set_routing`` Enable or disable data connection routes described in the subdevice routing table. Subdevs that implement this operation must set the V4L2_SUBDEV_FL_STREAMS flag. h](j>)}(h``set_routing``h]h)}(hjSh]h set_routing}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM@hjSubjX)}(hhh]h)}(hEnable or disable data connection routes described in the subdevice routing table. Subdevs that implement this operation must set the V4L2_SUBDEV_FL_STREAMS flag.h]hEnable or disable data connection routes described in the subdevice routing table. Subdevs that implement this operation must set the V4L2_SUBDEV_FL_STREAMS flag.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM>hjSubah}(h]h ]h"]h$]h&]uh1jWhjSubeh}(h]h ]h"]h$]h&]uh1j7hjShM@hj'Oubj8)}(hX``enable_streams`` Enable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_enable_streams() instead. Drivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument. h](j>)}(h``enable_streams``h]h)}(hjSh]henable_streams}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMJhjSubjX)}(hhh](h)}(hX:Enable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_enable_streams() instead.h]hX:Enable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_enable_streams() instead.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMBhjTubh)}(hDrivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument.h]hDrivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument.}(hj#ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMHhjTubeh}(h]h ]h"]h$]h&]uh1jWhjSubeh}(h]h ]h"]h$]h&]uh1j7hjThMJhj'Oubj8)}(hX``disable_streams`` Disable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_disable_streams() instead. Drivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument.h](j>)}(h``disable_streams``h]h)}(hjDTh]hdisable_streams}(hjFThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBTubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMShj>TubjX)}(hhh](h)}(hX<Disable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_disable_streams() instead.h]hX<Disable the streams defined in streams_mask on the given source pad. Subdevs that implement this operation must use the active state management provided by the subdev core (enabled through a call to v4l2_subdev_init_finalize() at initialization time). Do not call directly, use v4l2_subdev_disable_streams() instead.}(hj]ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMLhjZTubh)}(hDrivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument.h]hDrivers that support only a single stream without setting the V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask argument.}(hjlThhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMRhjZTubeh}(h]h ]h"]h$]h&]uh1jWhj>Tubeh}(h]h ]h"]h$]h&]uh1j7hjYThMShj'Oubeh}(h]h ]h"]h$]h&]uh1j2hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_ops (C struct)c.v4l2_subdev_opshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_opsh]jg)}(hstruct v4l2_subdev_opsh](jm)}(hjph]hstruct}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjThhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMZubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjThhhjThMZubj)}(hv4l2_subdev_opsh]j)}(hjTh]hv4l2_subdev_ops}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]hhuh1jhjThhhjThMZubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjThhhjThMZubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1j`hjThMZhjThhubj)}(hhh]h)}(hSubdev operationsh]hSubdev operations}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThMZubeh}(h]h ](hstructeh"]h$]h&]jhjjUjjUjjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_ops { const struct v4l2_subdev_core_ops *core; const struct v4l2_subdev_tuner_ops *tuner; const struct v4l2_subdev_audio_ops *audio; const struct v4l2_subdev_video_ops *video; const struct v4l2_subdev_vbi_ops *vbi; const struct v4l2_subdev_ir_ops *ir; const struct v4l2_subdev_sensor_ops *sensor; const struct v4l2_subdev_pad_ops *pad; }; **Members** ``core`` pointer to :c:type:`struct v4l2_subdev_core_ops `. Can be ``NULL`` ``tuner`` pointer to :c:type:`struct v4l2_subdev_tuner_ops `. Can be ``NULL`` ``audio`` pointer to :c:type:`struct v4l2_subdev_audio_ops `. Can be ``NULL`` ``video`` pointer to :c:type:`struct v4l2_subdev_video_ops `. Can be ``NULL`` ``vbi`` pointer to :c:type:`struct v4l2_subdev_vbi_ops `. Can be ``NULL`` ``ir`` pointer to :c:type:`struct v4l2_subdev_ir_ops `. Can be ``NULL`` ``sensor`` pointer to :c:type:`struct v4l2_subdev_sensor_ops `. Can be ``NULL`` ``pad`` pointer to :c:type:`struct v4l2_subdev_pad_ops `. Can be ``NULL``h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh:}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Uubj*)}(hXstruct v4l2_subdev_ops { const struct v4l2_subdev_core_ops *core; const struct v4l2_subdev_tuner_ops *tuner; const struct v4l2_subdev_audio_ops *audio; const struct v4l2_subdev_video_ops *video; const struct v4l2_subdev_vbi_ops *vbi; const struct v4l2_subdev_ir_ops *ir; const struct v4l2_subdev_sensor_ops *sensor; const struct v4l2_subdev_pad_ops *pad; };h]hXstruct v4l2_subdev_ops { const struct v4l2_subdev_core_ops *core; const struct v4l2_subdev_tuner_ops *tuner; const struct v4l2_subdev_audio_ops *audio; const struct v4l2_subdev_video_ops *video; const struct v4l2_subdev_vbi_ops *vbi; const struct v4l2_subdev_ir_ops *ir; const struct v4l2_subdev_sensor_ops *sensor; const struct v4l2_subdev_pad_ops *pad; };}hj,Usbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Uubh)}(h **Members**h]j)}(hj=Uh]hMembers}(hj?UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Uubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj Uubj3)}(hhh](j8)}(hb``core`` pointer to :c:type:`struct v4l2_subdev_core_ops `. Can be ``NULL`` h](j>)}(h``core``h]h)}(hj\Uh]hcore}(hj^UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZUubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjVUubjX)}(hhh]h)}(hXpointer to :c:type:`struct v4l2_subdev_core_ops `. Can be ``NULL``h](h pointer to }(hjuUhhhNhNubh)}(h<:c:type:`struct v4l2_subdev_core_ops `h]h)}(hjUh]hstruct v4l2_subdev_core_ops}(hjUhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj}Uubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_core_opsuh1hhjqUhMhjuUubh . Can be }(hjuUhhhNhNubh)}(h``NULL``h]hNULL}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuUubeh}(h]h ]h"]h$]h&]uh1hhjqUhMhjrUubah}(h]h ]h"]h$]h&]uh1jWhjVUubeh}(h]h ]h"]h$]h&]uh1j7hjqUhMhjSUubj8)}(he``tuner`` pointer to :c:type:`struct v4l2_subdev_tuner_ops `. Can be ``NULL`` h](j>)}(h ``tuner``h]h)}(hjUh]htuner}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjUubjX)}(hhh]h)}(hZpointer to :c:type:`struct v4l2_subdev_tuner_ops `. Can be ``NULL``h](h pointer to }(hjUhhhNhNubh)}(h>:c:type:`struct v4l2_subdev_tuner_ops `h]h)}(hjUh]hstruct v4l2_subdev_tuner_ops}(hjUhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_tuner_opsuh1hhjUhMhjUubh . Can be }(hjUhhhNhNubh)}(h``NULL``h]hNULL}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jWhjUubeh}(h]h ]h"]h$]h&]uh1j7hjUhMhjSUubj8)}(he``audio`` pointer to :c:type:`struct v4l2_subdev_audio_ops `. Can be ``NULL`` h](j>)}(h ``audio``h]h)}(hj0Vh]haudio}(hj2VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.Vubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj*VubjX)}(hhh]h)}(hZpointer to :c:type:`struct v4l2_subdev_audio_ops `. Can be ``NULL``h](h pointer to }(hjIVhhhNhNubh)}(h>:c:type:`struct v4l2_subdev_audio_ops `h]h)}(hjSVh]hstruct v4l2_subdev_audio_ops}(hjUVhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjQVubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_audio_opsuh1hhjEVhMhjIVubh . Can be }(hjIVhhhNhNubh)}(h``NULL``h]hNULL}(hjtVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIVubeh}(h]h ]h"]h$]h&]uh1hhjEVhMhjFVubah}(h]h ]h"]h$]h&]uh1jWhj*Vubeh}(h]h ]h"]h$]h&]uh1j7hjEVhMhjSUubj8)}(he``video`` pointer to :c:type:`struct v4l2_subdev_video_ops `. Can be ``NULL`` h](j>)}(h ``video``h]h)}(hjVh]hvideo}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjVubjX)}(hhh]h)}(hZpointer to :c:type:`struct v4l2_subdev_video_ops `. Can be ``NULL``h](h pointer to }(hjVhhhNhNubh)}(h>:c:type:`struct v4l2_subdev_video_ops `h]h)}(hjVh]hstruct v4l2_subdev_video_ops}(hjVhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_video_opsuh1hhjVhMhjVubh . Can be }(hjVhhhNhNubh)}(h``NULL``h]hNULL}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]uh1hhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jWhjVubeh}(h]h ]h"]h$]h&]uh1j7hjVhMhjSUubj8)}(h_``vbi`` pointer to :c:type:`struct v4l2_subdev_vbi_ops `. Can be ``NULL`` h](j>)}(h``vbi``h]h)}(hjWh]hvbi}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjVubjX)}(hhh]h)}(hVpointer to :c:type:`struct v4l2_subdev_vbi_ops `. Can be ``NULL``h](h pointer to }(hjWhhhNhNubh)}(h::c:type:`struct v4l2_subdev_vbi_ops `h]h)}(hj'Wh]hstruct v4l2_subdev_vbi_ops}(hj)WhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj%Wubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_vbi_opsuh1hhjWhMhjWubh . Can be }(hjWhhhNhNubh)}(h``NULL``h]hNULL}(hjHWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jWhjVubeh}(h]h ]h"]h$]h&]uh1j7hjWhMhjSUubj8)}(h\``ir`` pointer to :c:type:`struct v4l2_subdev_ir_ops `. Can be ``NULL`` h](j>)}(h``ir``h]h)}(hjnWh]hir}(hjpWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlWubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhWubjX)}(hhh]h)}(hTpointer to :c:type:`struct v4l2_subdev_ir_ops `. Can be ``NULL``h](h pointer to }(hjWhhhNhNubh)}(h8:c:type:`struct v4l2_subdev_ir_ops `h]h)}(hjWh]hstruct v4l2_subdev_ir_ops}(hjWhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_ir_opsuh1hhjWhMhjWubh . Can be }(hjWhhhNhNubh)}(h``NULL``h]hNULL}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jWhjhWubeh}(h]h ]h"]h$]h&]uh1j7hjWhMhjSUubj8)}(hh``sensor`` pointer to :c:type:`struct v4l2_subdev_sensor_ops `. Can be ``NULL`` h](j>)}(h ``sensor``h]h)}(hjWh]hsensor}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjWubjX)}(hhh]h)}(h\pointer to :c:type:`struct v4l2_subdev_sensor_ops `. Can be ``NULL``h](h pointer to }(hjWhhhNhNubh)}(h@:c:type:`struct v4l2_subdev_sensor_ops `h]h)}(hjWh]hstruct v4l2_subdev_sensor_ops}(hjWhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_sensor_opsuh1hhjWhMhjWubh . Can be }(hjWhhhNhNubh)}(h``NULL``h]hNULL}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jWhjWubeh}(h]h ]h"]h$]h&]uh1j7hjWhMhjSUubj8)}(h^``pad`` pointer to :c:type:`struct v4l2_subdev_pad_ops `. Can be ``NULL``h](j>)}(h``pad``h]h)}(hjBXh]hpad}(hjDXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@Xubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`. Can be ``NULL``h](h pointer to }(hj[XhhhNhNubh)}(h::c:type:`struct v4l2_subdev_pad_ops `h]h)}(hjeXh]hstruct v4l2_subdev_pad_ops}(hjgXhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjcXubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pad_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj[Xubh . Can be }(hj[XhhhNhNubh)}(h``NULL``h]hNULL}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[Xubeh}(h]h ]h"]h$]h&]uh1hhjXhMhjXXubah}(h]h ]h"]h$]h&]uh1jWhj)}(h``init_state``h]h)}(hj|Yh]h init_state}(hj~YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzYubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjvYubjX)}(hhh]h)}(h-initialize the subdev state to default valuesh]h-initialize the subdev state to default values}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jWhjvYubeh}(h]h ]h"]h$]h&]uh1j7hjYhMhjsYubj8)}(hx``registered`` called when this subdev is registered. When called the v4l2_dev field is set to the correct v4l2_device. h](j>)}(h``registered``h]h)}(hjYh]h registered}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjYubjX)}(hhh]h)}(hhcalled when this subdev is registered. When called the v4l2_dev field is set to the correct v4l2_device.h]hhcalled when this subdev is registered. When called the v4l2_dev field is set to the correct v4l2_device.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjYubah}(h]h ]h"]h$]h&]uh1jWhjYubeh}(h]h ]h"]h$]h&]uh1j7hjYhMhjsYubj8)}(h``unregistered`` called when this subdev is unregistered. When called the v4l2_dev field is still set to the correct v4l2_device. h](j>)}(h``unregistered``h]h)}(hjYh]h unregistered}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjYubjX)}(hhh]h)}(hpcalled when this subdev is unregistered. When called the v4l2_dev field is still set to the correct v4l2_device.h]hpcalled when this subdev is unregistered. When called the v4l2_dev field is still set to the correct v4l2_device.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjZubah}(h]h ]h"]h$]h&]uh1jWhjYubeh}(h]h ]h"]h$]h&]uh1j7hjZhMhjsYubj8)}(hI``open`` called when the subdev device node is opened by an application. h](j>)}(h``open``h]h)}(hj)Zh]hopen}(hj+ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'Zubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj#ZubjX)}(hhh]h)}(h?called when the subdev device node is opened by an application.h]h?called when the subdev device node is opened by an application.}(hjBZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ZhMhj?Zubah}(h]h ]h"]h$]h&]uh1jWhj#Zubeh}(h]h ]h"]h$]h&]uh1j7hj>ZhMhjsYubj8)}(h``close`` called when the subdev device node is closed. Please note that it is possible for **close** to be called after **unregistered**! h](j>)}(h ``close``h]h)}(hjbZh]hclose}(hjdZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`Zubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj\ZubjX)}(hhh]h)}(hcalled when the subdev device node is closed. Please note that it is possible for **close** to be called after **unregistered**!h](hRcalled when the subdev device node is closed. Please note that it is possible for }(hj{ZhhhNhNubj)}(h **close**h]hclose}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Zubh to be called after }(hj{ZhhhNhNubj)}(h**unregistered**h]h unregistered}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Zubh!}(hj{ZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjxZubah}(h]h ]h"]h$]h&]uh1jWhj\Zubeh}(h]h ]h"]h$]h&]uh1j7hjwZhMhjsYubj8)}(hX ``release`` called when the last user of the subdev device is gone. This happens after the **unregistered** callback and when the last open filehandle to the v4l-subdevX device node was closed. If no device node was created for this sub-device, then the **release** callback is called right after the **unregistered** callback. The **release** callback is typically used to free the memory containing the v4l2_subdev structure. It is almost certainly required for any sub-device that sets the V4L2_SUBDEV_FL_HAS_DEVNODE flag.h](j>)}(h ``release``h]h)}(hjZh]hrelease}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjZubjX)}(hhh]h)}(hXcalled when the last user of the subdev device is gone. This happens after the **unregistered** callback and when the last open filehandle to the v4l-subdevX device node was closed. If no device node was created for this sub-device, then the **release** callback is called right after the **unregistered** callback. The **release** callback is typically used to free the memory containing the v4l2_subdev structure. It is almost certainly required for any sub-device that sets the V4L2_SUBDEV_FL_HAS_DEVNODE flag.h](hOcalled when the last user of the subdev device is gone. This happens after the }(hjZhhhNhNubj)}(h**unregistered**h]h unregistered}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh callback and when the last open filehandle to the v4l-subdevX device node was closed. If no device node was created for this sub-device, then the }(hjZhhhNhNubj)}(h **release**h]hrelease}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh$ callback is called right after the }(hjZhhhNhNubj)}(h**unregistered**h]h unregistered}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh callback. The }(hjZhhhNhNubj)}(h **release**h]hrelease}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh callback is typically used to free the memory containing the v4l2_subdev structure. It is almost certainly required for any sub-device that sets the V4L2_SUBDEV_FL_HAS_DEVNODE flag.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjZubah}(h]h ]h"]h$]h&]uh1jWhjZubeh}(h]h ]h"]h$]h&]uh1j7hjZhMhjsYubeh}(h]h ]h"]h$]h&]uh1j2hj+Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubh)}(h**Description**h]j)}(hjK[h]h Description}(hjM[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI[ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj')}(hINever call this from drivers, only the v4l2 framework can call these ops.h]h)}(hINever call this from drivers, only the v4l2 framework can call these ops.h]hINever call this from drivers, only the v4l2 framework can call these ops.}(hje[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhja[ubah}(h]h ]h"]h$]h&]uh1j'hj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_platform_data (C struct)c.v4l2_subdev_platform_datahNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_platform_datah]jg)}(h struct v4l2_subdev_platform_datah](jm)}(hjph]hstruct}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj[hhhj[hMubj)}(hv4l2_subdev_platform_datah]j)}(hj[h]hv4l2_subdev_platform_data}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj[hhhj[hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj[hhhj[hMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1j`hj[hMhj[hhubj)}(hhh]h)}(hregulators config structh]hregulators config struct}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMubeh}(h]h ](hstructeh"]h$]h&]jhjj[jj[jjjuh1j[hhhj9hNhNubj)}(hXk**Definition**:: struct v4l2_subdev_platform_data { struct regulator_bulk_data *regulators; int num_regulators; void *host_priv; }; **Members** ``regulators`` Optional regulators used to power on/off the subdevice ``num_regulators`` Number of regululators ``host_priv`` Per-subdevice data, specific for a certain video host deviceh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh:}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj[ubj*)}(h~struct v4l2_subdev_platform_data { struct regulator_bulk_data *regulators; int num_regulators; void *host_priv; };h]h~struct v4l2_subdev_platform_data { struct regulator_bulk_data *regulators; int num_regulators; void *host_priv; };}hj\sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj[ubh)}(h **Members**h]j)}(hj#\h]hMembers}(hj%\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!\ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj[ubj3)}(hhh](j8)}(hF``regulators`` Optional regulators used to power on/off the subdevice h](j>)}(h``regulators``h]h)}(hjB\h]h regulators}(hjD\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@\ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj<\ubjX)}(hhh]h)}(h6Optional regulators used to power on/off the subdeviceh]h6Optional regulators used to power on/off the subdevice}(hj[\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW\hMhjX\ubah}(h]h ]h"]h$]h&]uh1jWhj<\ubeh}(h]h ]h"]h$]h&]uh1j7hjW\hMhj9\ubj8)}(h*``num_regulators`` Number of regululators h](j>)}(h``num_regulators``h]h)}(hj{\h]hnum_regulators}(hj}\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy\ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhju\ubjX)}(hhh]h)}(hNumber of regululatorsh]hNumber of regululators}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jWhju\ubeh}(h]h ]h"]h$]h&]uh1j7hj\hMhj9\ubj8)}(hJ``host_priv`` Per-subdevice data, specific for a certain video host deviceh](j>)}(h ``host_priv``h]h)}(hj\h]h host_priv}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj\ubjX)}(hhh]h)}(h` ``list`` List of sub-devices ``owner`` The owner is the same as the driver's :c:type:`struct device ` owner. ``owner_v4l2_dev`` true if the :c:type:`sd->owner ` matches the owner of **v4l2_dev->dev** owner. Initialized by v4l2_device_register_subdev(). ``flags`` subdev flags. Can be: ``V4L2_SUBDEV_FL_IS_I2C`` - Set this flag if this subdev is a i2c device; ``V4L2_SUBDEV_FL_IS_SPI`` - Set this flag if this subdev is a spi device; ``V4L2_SUBDEV_FL_HAS_DEVNODE`` - Set this flag if this subdev needs a device node; ``V4L2_SUBDEV_FL_HAS_EVENTS`` - Set this flag if this subdev generates events. ``v4l2_dev`` pointer to struct :c:type:`v4l2_device` ``ops`` pointer to struct :c:type:`v4l2_subdev_ops` ``internal_ops`` pointer to struct :c:type:`v4l2_subdev_internal_ops`. Never call these internal ops from within a driver! ``ctrl_handler`` The control handler of this subdev. May be NULL. ``name`` Name of the sub-device. Please notice that the name must be unique. ``grp_id`` can be used to group similar subdevs. Value is driver-specific ``dev_priv`` pointer to private data ``host_priv`` pointer to private data used by the device where the subdev is attached. ``devnode`` subdev device node ``dev`` pointer to the physical device, if any ``fwnode`` The fwnode_handle of the subdev, usually the same as either dev->of_node->fwnode or dev->fwnode (whichever is non-NULL). ``async_list`` Links this subdev to a global subdev_list or **notifier->done_list** list. ``async_subdev_endpoint_list`` List entry in async_subdev_endpoint_entry of :c:type:`struct v4l2_async_subdev_endpoint `. ``subdev_notifier`` A sub-device notifier implicitly registered for the sub- device using v4l2_async_register_subdev_sensor(). ``asc_list`` Async connection list, of :c:type:`struct v4l2_async_connection `.subdev_entry. ``pdata`` common part of subdevice platform data ``state_lock`` A pointer to a lock used for all the subdev's states, set by the driver. This is optional. If NULL, each state instance will get a lock of its own. ``privacy_led`` Optional pointer to a LED classdev for the privacy LED for sensors. ``active_state`` Active state for the subdev (NULL for subdevs tracking the state internally). Initialized by calling v4l2_subdev_init_finalize(). ``enabled_pads`` Bitmask of enabled pads used by v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helper functions for fallback cases. ``s_stream_enabled`` Tracks whether streaming has been enabled with s_stream. This is only for call_s_stream() internal use.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjt]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp]ubh:}(hjp]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjl]ubj*)}(hXstruct v4l2_subdev { #if defined(CONFIG_MEDIA_CONTROLLER); struct media_entity entity; #endif; struct list_head list; struct module *owner; bool owner_v4l2_dev; u32 flags; struct v4l2_device *v4l2_dev; const struct v4l2_subdev_ops *ops; const struct v4l2_subdev_internal_ops *internal_ops; struct v4l2_ctrl_handler *ctrl_handler; char name[52]; u32 grp_id; void *dev_priv; void *host_priv; struct video_device *devnode; struct device *dev; struct fwnode_handle *fwnode; struct list_head async_list; struct list_head async_subdev_endpoint_list; struct v4l2_async_notifier *subdev_notifier; struct list_head asc_list; struct v4l2_subdev_platform_data *pdata; struct mutex *state_lock; struct led_classdev *privacy_led; struct v4l2_subdev_state *active_state; u64 enabled_pads; bool s_stream_enabled; };h]hXstruct v4l2_subdev { #if defined(CONFIG_MEDIA_CONTROLLER); struct media_entity entity; #endif; struct list_head list; struct module *owner; bool owner_v4l2_dev; u32 flags; struct v4l2_device *v4l2_dev; const struct v4l2_subdev_ops *ops; const struct v4l2_subdev_internal_ops *internal_ops; struct v4l2_ctrl_handler *ctrl_handler; char name[52]; u32 grp_id; void *dev_priv; void *host_priv; struct video_device *devnode; struct device *dev; struct fwnode_handle *fwnode; struct list_head async_list; struct list_head async_subdev_endpoint_list; struct v4l2_async_notifier *subdev_notifier; struct list_head asc_list; struct v4l2_subdev_platform_data *pdata; struct mutex *state_lock; struct led_classdev *privacy_led; struct v4l2_subdev_state *active_state; u64 enabled_pads; bool s_stream_enabled; };}hj]sbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjl]ubh)}(h **Members**h]j)}(hj]h]hMembers}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjl]ubj3)}(hhh](j8)}(hC``entity`` pointer to :c:type:`struct media_entity ` h](j>)}(h ``entity``h]h)}(hj]h]hentity}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj]ubjX)}(hhh]h)}(h7pointer to :c:type:`struct media_entity `h](h pointer to }(hj]hhhNhNubh)}(h,:c:type:`struct media_entity `h]h)}(hj]h]hstruct media_entity}(hj]hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj media_entityuh1hhj]hMhj]ubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jWhj]ubeh}(h]h ]h"]h$]h&]uh1j7hj]hMhj]ubj8)}(h``list`` List of sub-devices h](j>)}(h``list``h]h)}(hj^h]hlist}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj^ubjX)}(hhh]h)}(hList of sub-devicesh]hList of sub-devices}(hj.^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*^hMhj+^ubah}(h]h ]h"]h$]h&]uh1jWhj^ubeh}(h]h ]h"]h$]h&]uh1j7hj*^hMhj]ubj8)}(hX``owner`` The owner is the same as the driver's :c:type:`struct device ` owner. h](j>)}(h ``owner``h]h)}(hjN^h]howner}(hjP^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL^ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjH^ubjX)}(hhh]h)}(hMThe owner is the same as the driver's :c:type:`struct device ` owner.h](h(The owner is the same as the driver’s }(hjg^hhhNhNubh)}(h :c:type:`struct device `h]h)}(hjq^h]h struct device}(hjs^hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjo^ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjdeviceuh1hhjc^hMhjg^ubh owner.}(hjg^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjc^hMhjd^ubah}(h]h ]h"]h$]h&]uh1jWhjH^ubeh}(h]h ]h"]h$]h&]uh1j7hjc^hMhj]ubj8)}(h``owner_v4l2_dev`` true if the :c:type:`sd->owner ` matches the owner of **v4l2_dev->dev** owner. Initialized by v4l2_device_register_subdev(). h](j>)}(h``owner_v4l2_dev``h]h)}(hj^h]howner_v4l2_dev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj^ubjX)}(hhh]h)}(htrue if the :c:type:`sd->owner ` matches the owner of **v4l2_dev->dev** owner. Initialized by v4l2_device_register_subdev().h](h true if the }(hj^hhhNhNubh)}(h:c:type:`sd->owner `h]h)}(hj^h]h sd->owner}(hj^hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjsduh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj^ubh matches the owner of }(hj^hhhNhNubj)}(h**v4l2_dev->dev**h]h v4l2_dev->dev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh5 owner. Initialized by v4l2_device_register_subdev().}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jWhj^ubeh}(h]h ]h"]h$]h&]uh1j7hj^hMhj]ubj8)}(hXW``flags`` subdev flags. Can be: ``V4L2_SUBDEV_FL_IS_I2C`` - Set this flag if this subdev is a i2c device; ``V4L2_SUBDEV_FL_IS_SPI`` - Set this flag if this subdev is a spi device; ``V4L2_SUBDEV_FL_HAS_DEVNODE`` - Set this flag if this subdev needs a device node; ``V4L2_SUBDEV_FL_HAS_EVENTS`` - Set this flag if this subdev generates events. h](j>)}(h ``flags``h]h)}(hj_h]hflags}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj_ubjX)}(hhh]h)}(hXLsubdev flags. Can be: ``V4L2_SUBDEV_FL_IS_I2C`` - Set this flag if this subdev is a i2c device; ``V4L2_SUBDEV_FL_IS_SPI`` - Set this flag if this subdev is a spi device; ``V4L2_SUBDEV_FL_HAS_DEVNODE`` - Set this flag if this subdev needs a device node; ``V4L2_SUBDEV_FL_HAS_EVENTS`` - Set this flag if this subdev generates events.h](hsubdev flags. Can be: }(hj2_hhhNhNubh)}(h``V4L2_SUBDEV_FL_IS_I2C``h]hV4L2_SUBDEV_FL_IS_I2C}(hj:_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2_ubh1 - Set this flag if this subdev is a i2c device; }(hj2_hhhNhNubh)}(h``V4L2_SUBDEV_FL_IS_SPI``h]hV4L2_SUBDEV_FL_IS_SPI}(hjL_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2_ubh1 - Set this flag if this subdev is a spi device; }(hj2_hhhNhNubh)}(h``V4L2_SUBDEV_FL_HAS_DEVNODE``h]hV4L2_SUBDEV_FL_HAS_DEVNODE}(hj^_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2_ubh5 - Set this flag if this subdev needs a device node; }(hj2_hhhNhNubh)}(h``V4L2_SUBDEV_FL_HAS_EVENTS``h]hV4L2_SUBDEV_FL_HAS_EVENTS}(hjp_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2_ubh2 - Set this flag if this subdev generates events.}(hj2_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj/_ubah}(h]h ]h"]h$]h&]uh1jWhj_ubeh}(h]h ]h"]h$]h&]uh1j7hj._hM hj]ubj8)}(h5``v4l2_dev`` pointer to struct :c:type:`v4l2_device` h](j>)}(h ``v4l2_dev``h]h)}(hj_h]hv4l2_dev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj_ubjX)}(hhh]h)}(h'pointer to struct :c:type:`v4l2_device`h](hpointer to struct }(hj_hhhNhNubh)}(h:c:type:`v4l2_device`h]h)}(hj_h]h v4l2_device}(hj_hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_deviceuh1hhj_hM hj_ubeh}(h]h ]h"]h$]h&]uh1hhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1jWhj_ubeh}(h]h ]h"]h$]h&]uh1j7hj_hM hj]ubj8)}(h4``ops`` pointer to struct :c:type:`v4l2_subdev_ops` h](j>)}(h``ops``h]h)}(hj_h]hops}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj_ubjX)}(hhh]h)}(h+pointer to struct :c:type:`v4l2_subdev_ops`h](hpointer to struct }(hj `hhhNhNubh)}(h:c:type:`v4l2_subdev_ops`h]h)}(hj`h]hv4l2_subdev_ops}(hj`hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhj`hM hj `ubeh}(h]h ]h"]h$]h&]uh1hhj`hM hj `ubah}(h]h ]h"]h$]h&]uh1jWhj_ubeh}(h]h ]h"]h$]h&]uh1j7hj`hM hj]ubj8)}(h{``internal_ops`` pointer to struct :c:type:`v4l2_subdev_internal_ops`. Never call these internal ops from within a driver! h](j>)}(h``internal_ops``h]h)}(hjK`h]h internal_ops}(hjM`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI`ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjE`ubjX)}(hhh]h)}(hipointer to struct :c:type:`v4l2_subdev_internal_ops`. Never call these internal ops from within a driver!h](hpointer to struct }(hjd`hhhNhNubh)}(h":c:type:`v4l2_subdev_internal_ops`h]h)}(hjn`h]hv4l2_subdev_internal_ops}(hjp`hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjl`ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_internal_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjd`ubh5. Never call these internal ops from within a driver!}(hjd`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hM hja`ubah}(h]h ]h"]h$]h&]uh1jWhjE`ubeh}(h]h ]h"]h$]h&]uh1j7hj``hMhj]ubj8)}(hB``ctrl_handler`` The control handler of this subdev. May be NULL. h](j>)}(h``ctrl_handler``h]h)}(hj`h]h ctrl_handler}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubjX)}(hhh]h)}(h0The control handler of this subdev. May be NULL.h]h0The control handler of this subdev. May be NULL.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jWhj`ubeh}(h]h ]h"]h$]h&]uh1j7hj`hMhj]ubj8)}(hM``name`` Name of the sub-device. Please notice that the name must be unique. h](j>)}(h``name``h]h)}(hj`h]hname}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubjX)}(hhh]h)}(hCName of the sub-device. Please notice that the name must be unique.h]hCName of the sub-device. Please notice that the name must be unique.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jWhj`ubeh}(h]h ]h"]h$]h&]uh1j7hj`hMhj]ubj8)}(hJ``grp_id`` can be used to group similar subdevs. Value is driver-specific h](j>)}(h ``grp_id``h]h)}(hjah]hgrp_id}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjaubjX)}(hhh]h)}(h>can be used to group similar subdevs. Value is driver-specifich]h>can be used to group similar subdevs. Value is driver-specific}(hj3ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ahMhj0aubah}(h]h ]h"]h$]h&]uh1jWhjaubeh}(h]h ]h"]h$]h&]uh1j7hj/ahMhj]ubj8)}(h%``dev_priv`` pointer to private data h](j>)}(h ``dev_priv``h]h)}(hjSah]hdev_priv}(hjUahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQaubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjMaubjX)}(hhh]h)}(hpointer to private datah]hpointer to private data}(hjlahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhahMhjiaubah}(h]h ]h"]h$]h&]uh1jWhjMaubeh}(h]h ]h"]h$]h&]uh1j7hjhahMhj]ubj8)}(hW``host_priv`` pointer to private data used by the device where the subdev is attached. h](j>)}(h ``host_priv``h]h)}(hjah]h host_priv}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjaubjX)}(hhh]h)}(hHpointer to private data used by the device where the subdev is attached.h]hHpointer to private data used by the device where the subdev is attached.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjaubah}(h]h ]h"]h$]h&]uh1jWhjaubeh}(h]h ]h"]h$]h&]uh1j7hjahMhj]ubj8)}(h``devnode`` subdev device node h](j>)}(h ``devnode``h]h)}(hjah]hdevnode}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjaubjX)}(hhh]h)}(hsubdev device nodeh]hsubdev device node}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jWhjaubeh}(h]h ]h"]h$]h&]uh1j7hjahMhj]ubj8)}(h/``dev`` pointer to the physical device, if any h](j>)}(h``dev``h]h)}(hjah]hdev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjaubjX)}(hhh]h)}(h&pointer to the physical device, if anyh]h&pointer to the physical device, if any}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jWhjaubeh}(h]h ]h"]h$]h&]uh1j7hjbhMhj]ubj8)}(h``fwnode`` The fwnode_handle of the subdev, usually the same as either dev->of_node->fwnode or dev->fwnode (whichever is non-NULL). h](j>)}(h ``fwnode``h]h)}(hj8bh]hfwnode}(hj:bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6bubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj2bubjX)}(hhh]h)}(hxThe fwnode_handle of the subdev, usually the same as either dev->of_node->fwnode or dev->fwnode (whichever is non-NULL).h]hxThe fwnode_handle of the subdev, usually the same as either dev->of_node->fwnode or dev->fwnode (whichever is non-NULL).}(hjQbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjNbubah}(h]h ]h"]h$]h&]uh1jWhj2bubeh}(h]h ]h"]h$]h&]uh1j7hjMbhMhj]ubj8)}(hZ``async_list`` Links this subdev to a global subdev_list or **notifier->done_list** list. h](j>)}(h``async_list``h]h)}(hjrbh]h async_list}(hjtbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpbubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjlbubjX)}(hhh]h)}(hJLinks this subdev to a global subdev_list or **notifier->done_list** list.h](h-Links this subdev to a global subdev_list or }(hjbhhhNhNubj)}(h**notifier->done_list**h]hnotifier->done_list}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh list.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjbubah}(h]h ]h"]h$]h&]uh1jWhjlbubeh}(h]h ]h"]h$]h&]uh1j7hjbhMhj]ubj8)}(h``async_subdev_endpoint_list`` List entry in async_subdev_endpoint_entry of :c:type:`struct v4l2_async_subdev_endpoint `. h](j>)}(h``async_subdev_endpoint_list``h]h)}(hjbh]hasync_subdev_endpoint_list}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjbubjX)}(hhh]h)}(hvList entry in async_subdev_endpoint_entry of :c:type:`struct v4l2_async_subdev_endpoint `.h](h-List entry in async_subdev_endpoint_entry of }(hjbhhhNhNubh)}(hH:c:type:`struct v4l2_async_subdev_endpoint `h]h)}(hjbh]h!struct v4l2_async_subdev_endpoint}(hjbhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_async_subdev_endpointuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjbubh.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jWhjbubeh}(h]h ]h"]h$]h&]uh1j7hjbhMhj]ubj8)}(h``subdev_notifier`` A sub-device notifier implicitly registered for the sub- device using v4l2_async_register_subdev_sensor(). h](j>)}(h``subdev_notifier``h]h)}(hjch]hsubdev_notifier}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjcubjX)}(hhh]h)}(hjA sub-device notifier implicitly registered for the sub- device using v4l2_async_register_subdev_sensor().h]hjA sub-device notifier implicitly registered for the sub- device using v4l2_async_register_subdev_sensor().}(hj4chhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj1cubah}(h]h ]h"]h$]h&]uh1jWhjcubeh}(h]h ]h"]h$]h&]uh1j7hj0chMhj]ubj8)}(ht``asc_list`` Async connection list, of :c:type:`struct v4l2_async_connection `.subdev_entry. h](j>)}(h ``asc_list``h]h)}(hjUch]hasc_list}(hjWchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjScubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjOcubjX)}(hhh]h)}(hfAsync connection list, of :c:type:`struct v4l2_async_connection `.subdev_entry.h](hAsync connection list, of }(hjnchhhNhNubh)}(h>:c:type:`struct v4l2_async_connection `h]h)}(hjxch]hstruct v4l2_async_connection}(hjzchhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjvcubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_async_connectionuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjncubh.subdev_entry.}(hjnchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjkcubah}(h]h ]h"]h$]h&]uh1jWhjOcubeh}(h]h ]h"]h$]h&]uh1j7hjjchM hj]ubj8)}(h1``pdata`` common part of subdevice platform data h](j>)}(h ``pdata``h]h)}(hjch]hpdata}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM!hjcubjX)}(hhh]h)}(h&common part of subdevice platform datah]h&common part of subdevice platform data}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM!hjcubah}(h]h ]h"]h$]h&]uh1jWhjcubeh}(h]h ]h"]h$]h&]uh1j7hjchM!hj]ubj8)}(h``state_lock`` A pointer to a lock used for all the subdev's states, set by the driver. This is optional. If NULL, each state instance will get a lock of its own. h](j>)}(h``state_lock``h]h)}(hjch]h state_lock}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM$hjcubjX)}(hhh]h)}(hA pointer to a lock used for all the subdev's states, set by the driver. This is optional. If NULL, each state instance will get a lock of its own.h]hA pointer to a lock used for all the subdev’s states, set by the driver. This is optional. If NULL, each state instance will get a lock of its own.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM"hjdubah}(h]h ]h"]h$]h&]uh1jWhjcubeh}(h]h ]h"]h$]h&]uh1j7hjdhM$hj]ubj8)}(hT``privacy_led`` Optional pointer to a LED classdev for the privacy LED for sensors. h](j>)}(h``privacy_led``h]h)}(hj%dh]h privacy_led}(hj'dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#dubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM%hjdubjX)}(hhh]h)}(hCOptional pointer to a LED classdev for the privacy LED for sensors.h]hCOptional pointer to a LED classdev for the privacy LED for sensors.}(hj>dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:dhM%hj;dubah}(h]h ]h"]h$]h&]uh1jWhjdubeh}(h]h ]h"]h$]h&]uh1j7hj:dhM%hj]ubj8)}(h``active_state`` Active state for the subdev (NULL for subdevs tracking the state internally). Initialized by calling v4l2_subdev_init_finalize(). h](j>)}(h``active_state``h]h)}(hj^dh]h active_state}(hj`dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\dubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM(hjXdubjX)}(hhh]h)}(hActive state for the subdev (NULL for subdevs tracking the state internally). Initialized by calling v4l2_subdev_init_finalize().h]hActive state for the subdev (NULL for subdevs tracking the state internally). Initialized by calling v4l2_subdev_init_finalize().}(hjwdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM&hjtdubah}(h]h ]h"]h$]h&]uh1jWhjXdubeh}(h]h ]h"]h$]h&]uh1j7hjsdhM(hj]ubj8)}(h``enabled_pads`` Bitmask of enabled pads used by v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helper functions for fallback cases. h](j>)}(h``enabled_pads``h]h)}(hjdh]h enabled_pads}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM+hjdubjX)}(hhh]h)}(hBitmask of enabled pads used by v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helper functions for fallback cases.h]hBitmask of enabled pads used by v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams() helper functions for fallback cases.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM)hjdubah}(h]h ]h"]h$]h&]uh1jWhjdubeh}(h]h ]h"]h$]h&]uh1j7hjdhM+hj]ubj8)}(h|``s_stream_enabled`` Tracks whether streaming has been enabled with s_stream. This is only for call_s_stream() internal use.h](j>)}(h``s_stream_enabled``h]h)}(hjdh]hs_stream_enabled}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM,hjdubjX)}(hhh]h)}(hgTracks whether streaming has been enabled with s_stream. This is only for call_s_stream() internal use.h]hgTracks whether streaming has been enabled with s_stream. This is only for call_s_stream() internal use.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM,hjdubah}(h]h ]h"]h$]h&]uh1jWhjdubeh}(h]h ]h"]h$]h&]uh1j7hjdhM,hj]ubeh}(h]h ]h"]h$]h&]uh1j2hjl]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubh)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM0hj9hhubh)}(hnEach instance of a subdev driver should create this struct, either stand-alone or embedded in a larger struct.h]hnEach instance of a subdev driver should create this struct, either stand-alone or embedded in a larger struct.}(hj*ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM.hj9hhubh)}(hThis structure should be initialized by v4l2_subdev_init() or one of its variants: v4l2_spi_subdev_init(), v4l2_i2c_subdev_init().h]hThis structure should be initialized by v4l2_subdev_init() or one of its variants: v4l2_spi_subdev_init(), v4l2_i2c_subdev_init().}(hj9ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM1hj9hhubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%media_entity_to_v4l2_subdev (C macro)c.media_entity_to_v4l2_subdevhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hmedia_entity_to_v4l2_subdevh]jg)}(hmedia_entity_to_v4l2_subdevh]j)}(hmedia_entity_to_v4l2_subdevh]j)}(hj[eh]hmedia_entity_to_v4l2_subdev}(hjeehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaeubah}(h]h ](jjeh"]h$]h&]hhuh1jhj]ehhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMgubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjYehhhjxehMgubah}(h]jTeah ](jjeh"]h$]h&]jj)jhuh1j`hjxehMghjVehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVehhhjxehMgubeh}(h]h ](hmacroeh"]h$]h&]jhjjejjejjjuh1j[hhhj9hNhNubh)}(h%``media_entity_to_v4l2_subdev (ent)``h]h)}(hjeh]h!media_entity_to_v4l2_subdev (ent)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMihj9hhubj)}(h{Returns a :c:type:`struct v4l2_subdev ` from the :c:type:`struct media_entity ` embedded in it. h]h)}(hzReturns a :c:type:`struct v4l2_subdev ` from the :c:type:`struct media_entity ` embedded in it.h](h Returns a }(hjehhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjeh]hstruct v4l2_subdev}(hjehhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMbhjeubh from the }(hjehhhNhNubh)}(h,:c:type:`struct media_entity `h]h)}(hjeh]hstruct media_entity}(hjehhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj media_entityuh1hhjehMbhjeubh embedded in it.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMbhjeubah}(h]h ]h"]h$]h&]uh1jhjehMbhj9hhubj)}(hR**Parameters** ``ent`` pointer to :c:type:`struct media_entity `.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMfhj fubj3)}(hhh]j8)}(h@``ent`` pointer to :c:type:`struct media_entity `.h](j>)}(h``ent``h]h)}(hj1fh]hent}(hj3fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/fubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhhj+fubjX)}(hhh]h)}(h8pointer to :c:type:`struct media_entity `.h](h pointer to }(hjJfhhhNhNubh)}(h,:c:type:`struct media_entity `h]h)}(hjTfh]hstruct media_entity}(hjVfhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjRfubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj media_entityuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMehjJfubh.}(hjJfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqfhMehjGfubah}(h]h ]h"]h$]h&]uh1jWhj+fubeh}(h]h ]h"]h$]h&]uh1j7hjFfhMhhj(fubah}(h]h ]h"]h$]h&]uh1j2hj fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWvdev_to_v4l2_subdev (C macro)c.vdev_to_v4l2_subdevhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hvdev_to_v4l2_subdevh]jg)}(hvdev_to_v4l2_subdevh]j)}(hvdev_to_v4l2_subdevh]j)}(hjfh]hvdev_to_v4l2_subdev}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]hhuh1jhjfhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMvubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjfhhhjfhMvubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1j`hjfhMvhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMvubeh}(h]h ](hmacroeh"]h$]h&]jhjjfjjfjjjuh1j[hhhj9hNhNubh)}(h``vdev_to_v4l2_subdev (vdev)``h]h)}(hjfh]hvdev_to_v4l2_subdev (vdev)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMxhj9hhubj)}(h{Returns a :c:type:`struct v4l2_subdev ` from the :c:type:`struct video_device ` embedded on it. h]h)}(hzReturns a :c:type:`struct v4l2_subdev ` from the :c:type:`struct video_device ` embedded on it.h](h Returns a }(hjfhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjgh]hstruct v4l2_subdev}(hj ghhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMqhjfubh from the }(hjfhhhNhNubh)}(h,:c:type:`struct video_device `h]h)}(hj,gh]hstruct video_device}(hj.ghhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj*gubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj video_deviceuh1hhj%ghMqhjfubh embedded on it.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%ghMqhjfubah}(h]h ]h"]h$]h&]uh1jhj%ghMqhj9hhubj)}(hR**Parameters** ``vdev`` pointer to :c:type:`struct video_device `h](h)}(h**Parameters**h]j)}(hj_gh]h Parameters}(hjaghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]gubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMuhjYgubj3)}(hhh]j8)}(h@``vdev`` pointer to :c:type:`struct video_device `h](j>)}(h``vdev``h]h)}(hj~gh]hvdev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|gubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMwhjxgubjX)}(hhh]h)}(h7pointer to :c:type:`struct video_device `h](h pointer to }(hjghhhNhNubh)}(h,:c:type:`struct video_device `h]h)}(hjgh]hstruct video_device}(hjghhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj video_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMthjgubeh}(h]h ]h"]h$]h&]uh1hhjghMthjgubah}(h]h ]h"]h$]h&]uh1jWhjxgubeh}(h]h ]h"]h$]h&]uh1j7hjghMwhjugubah}(h]h ]h"]h$]h&]uh1j2hjYgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_fh (C struct)c.v4l2_subdev_fhhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_fhh]jg)}(hstruct v4l2_subdev_fhh](jm)}(hjph]hstruct}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjghhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMyubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjghhhjhhMyubj)}(hv4l2_subdev_fhh]j)}(hjgh]hv4l2_subdev_fh}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]hhuh1jhjghhhjhhMyubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjghhhjhhMyubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1j`hjhhMyhjghhubj)}(hhh]h)}(h3Used for storing subdev information per file handleh]h3Used for storing subdev information per file handle}(hj9hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMzhj6hhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhhMyubeh}(h]h ](hstructeh"]h$]h&]jhjjQhjjQhjjjuh1j[hhhj9hNhNubj)}(hX**Definition**:: struct v4l2_subdev_fh { struct v4l2_fh vfh; struct module *owner; #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API); struct v4l2_subdev_state *state; u64 client_caps; #endif; }; **Members** ``vfh`` pointer to :c:type:`struct v4l2_fh ` ``owner`` module pointer to the owner of this file handle ``state`` pointer to :c:type:`struct v4l2_subdev_state ` ``client_caps`` bitmask of ``V4L2_SUBDEV_CLIENT_CAP_*``h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhubh:}(hjYhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM~hjUhubj*)}(hstruct v4l2_subdev_fh { struct v4l2_fh vfh; struct module *owner; #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API); struct v4l2_subdev_state *state; u64 client_caps; #endif; };h]hstruct v4l2_subdev_fh { struct v4l2_fh vfh; struct module *owner; #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API); struct v4l2_subdev_state *state; u64 client_caps; #endif; };}hjvhsbah}(h]h ]h"]h$]h&]hhuh1j)hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjUhubh)}(h **Members**h]j)}(hjhh]hMembers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjUhubj3)}(hhh](j8)}(h6``vfh`` pointer to :c:type:`struct v4l2_fh ` h](j>)}(h``vfh``h]h)}(hjhh]hvfh}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM}hjhubjX)}(hhh]h)}(h-pointer to :c:type:`struct v4l2_fh `h](h pointer to }(hjhhhhNhNubh)}(h":c:type:`struct v4l2_fh `h]h)}(hjhh]hstruct v4l2_fh}(hjhhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_fhuh1hhjhhM}hjhubeh}(h]h ]h"]h$]h&]uh1hhjhhM}hjhubah}(h]h ]h"]h$]h&]uh1jWhjhubeh}(h]h ]h"]h$]h&]uh1j7hjhhM}hjhubj8)}(h:``owner`` module pointer to the owner of this file handle h](j>)}(h ``owner``h]h)}(hjhh]howner}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhubjX)}(hhh]h)}(h/module pointer to the owner of this file handleh]h/module pointer to the owner of this file handle}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jWhjhubeh}(h]h ]h"]h$]h&]uh1j7hjihMhjhubj8)}(hL``state`` pointer to :c:type:`struct v4l2_subdev_state ` h](j>)}(h ``state``h]h)}(hj7ih]hstate}(hj9ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5iubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM~hj1iubjX)}(hhh]h)}(hApointer to :c:type:`struct v4l2_subdev_state `h](h pointer to }(hjPihhhNhNubh)}(h6:c:type:`struct v4l2_subdev_state `h]h)}(hjZih]hstruct v4l2_subdev_state}(hj\ihhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjXiubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_stateuh1hhjLihM~hjPiubeh}(h]h ]h"]h$]h&]uh1hhjLihM~hjMiubah}(h]h ]h"]h$]h&]uh1jWhj1iubeh}(h]h ]h"]h$]h&]uh1j7hjLihM~hjhubj8)}(h7``client_caps`` bitmask of ``V4L2_SUBDEV_CLIENT_CAP_*``h](j>)}(h``client_caps``h]h)}(hjih]h client_caps}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjiubjX)}(hhh]h)}(h'bitmask of ``V4L2_SUBDEV_CLIENT_CAP_*``h](h bitmask of }(hjihhhNhNubh)}(h``V4L2_SUBDEV_CLIENT_CAP_*``h]hV4L2_SUBDEV_CLIENT_CAP_*}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjiubah}(h]h ]h"]h$]h&]uh1jWhjiubeh}(h]h ]h"]h$]h&]uh1j7hjihMhjhubeh}(h]h ]h"]h$]h&]uh1j2hjUhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWto_v4l2_subdev_fh (C macro)c.to_v4l2_subdev_fhhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hto_v4l2_subdev_fhh]jg)}(hto_v4l2_subdev_fhh]j)}(hto_v4l2_subdev_fhh]j)}(hjih]hto_v4l2_subdev_fh}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]hhuh1jhjihhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjihhhjjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1j`hjjhMhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjjhMubeh}(h]h ](hmacroeh"]h$]h&]jhjj'jjj'jjjjuh1j[hhhj9hNhNubh)}(h``to_v4l2_subdev_fh (fh)``h]h)}(hj-jh]hto_v4l2_subdev_fh (fh)}(hj/jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+jubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(hwReturns a :c:type:`struct v4l2_subdev_fh ` from the :c:type:`struct v4l2_fh ` embedded on it. h]h)}(hvReturns a :c:type:`struct v4l2_subdev_fh ` from the :c:type:`struct v4l2_fh ` embedded on it.h](h Returns a }(hjGjhhhNhNubh)}(h0:c:type:`struct v4l2_subdev_fh `h]h)}(hjQjh]hstruct v4l2_subdev_fh}(hjSjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjOjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_fhuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjGjubh from the }(hjGjhhhNhNubh)}(h":c:type:`struct v4l2_fh `h]h)}(hjujh]hstruct v4l2_fh}(hjwjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjsjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_fhuh1hhjnjhMhjGjubh embedded on it.}(hjGjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnjhMhjCjubah}(h]h ]h"]h$]h&]uh1jhjnjhMhj9hhubj)}(hF**Parameters** ``fh`` pointer to :c:type:`struct v4l2_fh `h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjjubj3)}(hhh]j8)}(h4``fh`` pointer to :c:type:`struct v4l2_fh `h](j>)}(h``fh``h]h)}(hjjh]hfh}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjjubjX)}(hhh]h)}(h-pointer to :c:type:`struct v4l2_fh `h](h pointer to }(hjjhhhNhNubh)}(h":c:type:`struct v4l2_fh `h]h)}(hjjh]hstruct v4l2_fh}(hjjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_fhuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjjubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjjubah}(h]h ]h"]h$]h&]uh1jWhjjubeh}(h]h ]h"]h$]h&]uh1j7hjjhMhjjubah}(h]h ]h"]h$]h&]uh1j2hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_set_subdevdata (C function)c.v4l2_set_subdevdatahNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h:void v4l2_set_subdevdata (struct v4l2_subdev *sd, void *p)h]jg)}(h9void v4l2_set_subdevdata(struct v4l2_subdev *sd, void *p)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hjBkhhhNhNubah}(h]h ]ktah"]h$]h&]uh1j@khj` ``void *p`` pointer to the private device data to be stored.h](h)}(h**Parameters**h]j)}(hjqlh]h Parameters}(hjslhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjolubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjklubj3)}(hhh](j8)}(hQ``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjlh]hstruct v4l2_subdev *sd}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjlubjX)}(hhh]h)}(h5pointer to :c:type:`struct v4l2_subdev `h](h pointer to }(hjlhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjlh]hstruct v4l2_subdev}(hjlhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjlhMhjlubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jWhjlubeh}(h]h ]h"]h$]h&]uh1j7hjlhMhjlubj8)}(h<``void *p`` pointer to the private device data to be stored.h](j>)}(h ``void *p``h]h)}(hjlh]hvoid *p}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjlubjX)}(hhh]h)}(h0pointer to the private device data to be stored.h]h0pointer to the private device data to be stored.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjlubah}(h]h ]h"]h$]h&]uh1jWhjlubeh}(h]h ]h"]h$]h&]uh1j7hjlhMhjlubeh}(h]h ]h"]h$]h&]uh1j2hjklubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_get_subdevdata (C function)c.v4l2_get_subdevdatahNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h9void * v4l2_get_subdevdata (const struct v4l2_subdev *sd)h]jg)}(h7void *v4l2_get_subdevdata(const struct v4l2_subdev *sd)h](jAk)}(hvoidh]hvoid}(hjBmhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj>mhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjQmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj>mhhhjPmhMubjk)}(hjkh]h*}(hj_mhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj>mhhhjPmhMubj)}(hv4l2_get_subdevdatah]j)}(hv4l2_get_subdevdatah]hv4l2_get_subdevdata}(hjpmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlmubah}(h]h ](jjeh"]h$]h&]hhuh1jhj>mhhhjPmhMubjyk)}(h(const struct v4l2_subdev *sd)h]jk)}(hconst struct v4l2_subdev *sdh](jm)}(hconsth]hconst}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjmubjm)}(hjph]hstruct}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjmubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmmodnameN classnameNjj)}j]jk)}jkjrmsbc.v4l2_get_subdevdataasbuh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjmubjk)}(hjkh]h*}(hjmhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjmubj)}(hsdh]hsd}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjmubah}(h]h ]h"]h$]h&]hhuh1jxkhj>mhhhjPmhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj:mhhhjPmhMubah}(h]j5mah ](jjeh"]h$]h&]jj)jhuh1j`hjPmhMhj7mhhubj)}(hhh]h)}(h!Gets V4L2 dev private device datah]h!Gets V4L2 dev private device data}(hj+nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj(nhhubah}(h]h ]h"]h$]h&]uh1jhj7mhhhjPmhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjCnjjCnjjjuh1j[hhhj9hNhNubj)}(h**Parameters** ``const struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` **Description** Returns the pointer to the private device data to be stored.h](h)}(h**Parameters**h]j)}(hjMnh]h Parameters}(hjOnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKnubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjGnubj3)}(hhh]j8)}(hW``const struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` h](j>)}(h ``const struct v4l2_subdev *sd``h]h)}(hjlnh]hconst struct v4l2_subdev *sd}(hjnnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjnubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjfnubjX)}(hhh]h)}(h5pointer to :c:type:`struct v4l2_subdev `h](h pointer to }(hjnhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjnh]hstruct v4l2_subdev}(hjnhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjnhMhjnubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jWhjfnubeh}(h]h ]h"]h$]h&]uh1j7hjnhMhjcnubah}(h]h ]h"]h$]h&]uh1j2hjGnubh)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjGnubh)}(hvoid v4l2_set_subdev_hostdata(struct v4l2_subdev *sd, void *p)h](jAk)}(hvoidh]hvoid}(hj ohhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjohhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjohhhjohMubj)}(hv4l2_set_subdev_hostdatah]j)}(hv4l2_set_subdev_hostdatah]hv4l2_set_subdev_hostdata}(hj,ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(oubah}(h]h ](jjeh"]h$]h&]hhuh1jhjohhhjohMubjyk)}(h!(struct v4l2_subdev *sd, void *p)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjHohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDoubj)}(h h]h }(hjUohhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjDoubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjfohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcoubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjhomodnameN classnameNjj)}j]jk)}jkj.osbc.v4l2_set_subdev_hostdataasbuh1hhjDoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjDoubjk)}(hjkh]h*}(hjohhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjDoubj)}(hsdh]hsd}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj@oubjk)}(hvoid *ph](jAk)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjoubjk)}(hjkh]h*}(hjohhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjoubj)}(hjkh]hp}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj@oubeh}(h]h ]h"]h$]h&]hhuh1jxkhjohhhjohMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjohhhjohMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1j`hjohMhjohhubj)}(hhh]h)}(hSets V4L2 dev private host datah]hSets V4L2 dev private host data}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj phhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj$pjj$pjjjuh1j[hhhj9hNhNubj)}(h**Parameters** ``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` ``void *p`` pointer to the private data to be stored.h](h)}(h**Parameters**h]j)}(hj.ph]h Parameters}(hj0phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,pubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj(pubj3)}(hhh](j8)}(hQ``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjMph]hstruct v4l2_subdev *sd}(hjOphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKpubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjGpubjX)}(hhh]h)}(h5pointer to :c:type:`struct v4l2_subdev `h](h pointer to }(hjfphhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjpph]hstruct v4l2_subdev}(hjrphhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjnpubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjbphMhjfpubeh}(h]h ]h"]h$]h&]uh1hhjbphMhjcpubah}(h]h ]h"]h$]h&]uh1jWhjGpubeh}(h]h ]h"]h$]h&]uh1j7hjbphMhjDpubj8)}(h5``void *p`` pointer to the private data to be stored.h](j>)}(h ``void *p``h]h)}(hjph]hvoid *p}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjpubjX)}(hhh]h)}(h)pointer to the private data to be stored.h]h)pointer to the private data to be stored.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjpubah}(h]h ]h"]h$]h&]uh1jWhjpubeh}(h]h ]h"]h$]h&]uh1j7hjphMhjDpubeh}(h]h ]h"]h$]h&]uh1j2hj(pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%v4l2_get_subdev_hostdata (C function)c.v4l2_get_subdev_hostdatahNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h>void * v4l2_get_subdev_hostdata (const struct v4l2_subdev *sd)h]jg)}(h` **Description** Returns the pointer to the private host data to be stored.h](h)}(h**Parameters**h]j)}(hj rh]h Parameters}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjrubj3)}(hhh]j8)}(hW``const struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` h](j>)}(h ``const struct v4l2_subdev *sd``h]h)}(hj(rh]hconst struct v4l2_subdev *sd}(hj*rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&rubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj"rubjX)}(hhh]h)}(h5pointer to :c:type:`struct v4l2_subdev `h](h pointer to }(hjArhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjKrh]hstruct v4l2_subdev}(hjMrhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjIrubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhj=rhMhjArubeh}(h]h ]h"]h$]h&]uh1hhj=rhMhj>rubah}(h]h ]h"]h$]h&]uh1jWhj"rubeh}(h]h ]h"]h$]h&]uh1j7hj=rhMhjrubah}(h]h ]h"]h$]h&]uh1j2hjrubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjrubh)}(h:Returns the pointer to the private host data to be stored.h]h:Returns the pointer to the private host data to be stored.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW.v4l2_subdev_get_fwnode_pad_1_to_1 (C function)#c.v4l2_subdev_get_fwnode_pad_1_to_1hNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(heint v4l2_subdev_get_fwnode_pad_1_to_1 (struct media_entity *entity, struct fwnode_endpoint *endpoint)h]jg)}(hdint v4l2_subdev_get_fwnode_pad_1_to_1(struct media_entity *entity, struct fwnode_endpoint *endpoint)h](jAk)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjrhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjrhhhjrhMubj)}(h!v4l2_subdev_get_fwnode_pad_1_to_1h]j)}(h!v4l2_subdev_get_fwnode_pad_1_to_1h]h!v4l2_subdev_get_fwnode_pad_1_to_1}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]hhuh1jhjrhhhjrhMubjyk)}(h?(struct media_entity *entity, struct fwnode_endpoint *endpoint)h](jk)}(hstruct media_entity *entityh](jm)}(hjph]hstruct}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjsubh)}(hhh]j)}(h media_entityh]h media_entity}(hj"shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj$smodnameN classnameNjj)}j]jk)}jkjrsb#c.v4l2_subdev_get_fwnode_pad_1_to_1asbuh1hhjsubj)}(h h]h }(hjBshhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjsubjk)}(hjkh]h*}(hjPshhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjsubj)}(hentityh]hentity}(hj]shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjrubjk)}(h struct fwnode_endpoint *endpointh](jm)}(hjph]hstruct}(hjvshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjrsubh)}(hhh]j)}(hfwnode_endpointh]hfwnode_endpoint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjsmodnameN classnameNjj)}j]j>s#c.v4l2_subdev_get_fwnode_pad_1_to_1asbuh1hhjrsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjrsubjk)}(hjkh]h*}(hjshhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjrsubj)}(hendpointh]hendpoint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrsubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjrubeh}(h]h ]h"]h$]h&]hhuh1jxkhjrhhhjrhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjrhhhjrhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1j`hjrhMhjrhhubj)}(hhh]h)}(hCGet pad number from a subdev fwnode endpoint, assuming 1:1 port:padh]hCGet pad number from a subdev fwnode endpoint, assuming 1:1 port:pad}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjtjjtjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct media_entity *entity`` Pointer to the subdev entity ``struct fwnode_endpoint *endpoint`` Pointer to a parsed fwnode endpoint **Description** This function can be used as the .get_fwnode_pad operation for subdevices that map port numbers and pad indexes 1:1. If the endpoint is owned by the subdevice, the function returns the endpoint port number. Returns the endpoint port number on success or a negative error code.h](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubj3)}(hhh](j8)}(h=``struct media_entity *entity`` Pointer to the subdev entity h](j>)}(h``struct media_entity *entity``h]h)}(hj8th]hstruct media_entity *entity}(hj:thhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6tubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj2tubjX)}(hhh]h)}(hPointer to the subdev entityh]hPointer to the subdev entity}(hjQthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMthMhjNtubah}(h]h ]h"]h$]h&]uh1jWhj2tubeh}(h]h ]h"]h$]h&]uh1j7hjMthMhj/tubj8)}(hI``struct fwnode_endpoint *endpoint`` Pointer to a parsed fwnode endpoint h](j>)}(h$``struct fwnode_endpoint *endpoint``h]h)}(hjqth]h struct fwnode_endpoint *endpoint}(hjsthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjotubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjktubjX)}(hhh]h)}(h#Pointer to a parsed fwnode endpointh]h#Pointer to a parsed fwnode endpoint}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jWhjktubeh}(h]h ]h"]h$]h&]uh1j7hjthMhj/tubeh}(h]h ]h"]h$]h&]uh1j2hjtubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubh)}(hThis function can be used as the .get_fwnode_pad operation for subdevices that map port numbers and pad indexes 1:1. If the endpoint is owned by the subdevice, the function returns the endpoint port number.h]hThis function can be used as the .get_fwnode_pad operation for subdevices that map port numbers and pad indexes 1:1. If the endpoint is owned by the subdevice, the function returns the endpoint port number.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubh)}(hEReturns the endpoint port number on success or a negative error code.h]hEReturns the endpoint port number on success or a negative error code.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW.v4l2_subdev_link_validate_default (C function)#c.v4l2_subdev_link_validate_defaulthNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hint v4l2_subdev_link_validate_default (struct v4l2_subdev *sd, struct media_link *link, struct v4l2_subdev_format *source_fmt, struct v4l2_subdev_format *sink_fmt)h]jg)}(hint v4l2_subdev_link_validate_default(struct v4l2_subdev *sd, struct media_link *link, struct v4l2_subdev_format *source_fmt, struct v4l2_subdev_format *sink_fmt)h](jAk)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjthhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjthhhjuhMubj)}(h!v4l2_subdev_link_validate_defaulth]j)}(h!v4l2_subdev_link_validate_defaulth]h!v4l2_subdev_link_validate_default}(hj!uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]hhuh1jhjthhhjuhMubjyk)}(h}(struct v4l2_subdev *sd, struct media_link *link, struct v4l2_subdev_format *source_fmt, struct v4l2_subdev_format *sink_fmt)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hj=uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9uubj)}(h h]h }(hjJuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj9uubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hj[uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXuubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj]umodnameN classnameNjj)}j]jk)}jkj#usb#c.v4l2_subdev_link_validate_defaultasbuh1hhj9uubj)}(h h]h }(hj{uhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj9uubjk)}(hjkh]h*}(hjuhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj9uubj)}(hsdh]hsd}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9uubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj5uubjk)}(hstruct media_link *linkh](jm)}(hjph]hstruct}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjuubh)}(hhh]j)}(h media_linkh]h media_link}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjumodnameN classnameNjj)}j]jwu#c.v4l2_subdev_link_validate_defaultasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjuubjk)}(hjkh]h*}(hjuhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjuubj)}(hlinkh]hlink}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj5uubjk)}(h%struct v4l2_subdev_format *source_fmth](jm)}(hjph]hstruct}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubj)}(h h]h }(hj,vhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjvubh)}(hhh]j)}(hv4l2_subdev_formath]hv4l2_subdev_format}(hj=vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:vubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj?vmodnameN classnameNjj)}j]jwu#c.v4l2_subdev_link_validate_defaultasbuh1hhjvubj)}(h h]h }(hj[vhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjvubjk)}(hjkh]h*}(hjivhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjvubj)}(h source_fmth]h source_fmt}(hjvvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj5uubjk)}(h#struct v4l2_subdev_format *sink_fmth](jm)}(hjph]hstruct}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjvubh)}(hhh]j)}(hv4l2_subdev_formath]hv4l2_subdev_format}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjvmodnameN classnameNjj)}j]jwu#c.v4l2_subdev_link_validate_defaultasbuh1hhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjvubjk)}(hjkh]h*}(hjvhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjvubj)}(hsink_fmth]hsink_fmt}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj5uubeh}(h]h ]h"]h$]h&]hhuh1jxkhjthhhjuhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjthhhjuhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1j`hjuhMhjthhubj)}(hhh]h)}(hvalidates a media linkh]hvalidates a media link}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj whhubah}(h]h ]h"]h$]h&]uh1jhjthhhjuhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj(wjj(wjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` ``struct media_link *link`` pointer to :c:type:`struct media_link ` ``struct v4l2_subdev_format *source_fmt`` pointer to :c:type:`struct v4l2_subdev_format ` ``struct v4l2_subdev_format *sink_fmt`` pointer to :c:type:`struct v4l2_subdev_format ` **Description** This function ensures that width, height and the media bus pixel code are equal on both source and sink of the link.h](h)}(h**Parameters**h]j)}(hj2wh]h Parameters}(hj4whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0wubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj,wubj3)}(hhh](j8)}(hQ``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjQwh]hstruct v4l2_subdev *sd}(hjSwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOwubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjKwubjX)}(hhh]h)}(h5pointer to :c:type:`struct v4l2_subdev `h](h pointer to }(hjjwhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjtwh]hstruct v4l2_subdev}(hjvwhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjrwubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjfwhMhjjwubeh}(h]h ]h"]h$]h&]uh1hhjfwhMhjgwubah}(h]h ]h"]h$]h&]uh1jWhjKwubeh}(h]h ]h"]h$]h&]uh1j7hjfwhMhjHwubj8)}(hP``struct media_link *link`` pointer to :c:type:`struct media_link ` h](j>)}(h``struct media_link *link``h]h)}(hjwh]hstruct media_link *link}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjwubjX)}(hhh]h)}(h3pointer to :c:type:`struct media_link `h](h pointer to }(hjwhhhNhNubh)}(h(:c:type:`struct media_link `h]h)}(hjwh]hstruct media_link}(hjwhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj media_linkuh1hhjwhMhjwubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jWhjwubeh}(h]h ]h"]h$]h&]uh1j7hjwhMhjHwubj8)}(hn``struct v4l2_subdev_format *source_fmt`` pointer to :c:type:`struct v4l2_subdev_format ` h](j>)}(h)``struct v4l2_subdev_format *source_fmt``h]h)}(hjxh]h%struct v4l2_subdev_format *source_fmt}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjwubjX)}(hhh]h)}(hCpointer to :c:type:`struct v4l2_subdev_format `h](h pointer to }(hjxhhhNhNubh)}(h8:c:type:`struct v4l2_subdev_format `h]h)}(hj$xh]hstruct v4l2_subdev_format}(hj&xhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj"xubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_formatuh1hhjxhMhjxubeh}(h]h ]h"]h$]h&]uh1hhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jWhjwubeh}(h]h ]h"]h$]h&]uh1j7hjxhMhjHwubj8)}(hl``struct v4l2_subdev_format *sink_fmt`` pointer to :c:type:`struct v4l2_subdev_format ` h](j>)}(h'``struct v4l2_subdev_format *sink_fmt``h]h)}(hjYxh]h#struct v4l2_subdev_format *sink_fmt}(hj[xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWxubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjSxubjX)}(hhh]h)}(hCpointer to :c:type:`struct v4l2_subdev_format `h](h pointer to }(hjrxhhhNhNubh)}(h8:c:type:`struct v4l2_subdev_format `h]h)}(hj|xh]hstruct v4l2_subdev_format}(hj~xhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjzxubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_formatuh1hhjnxhMhjrxubeh}(h]h ]h"]h$]h&]uh1hhjnxhMhjoxubah}(h]h ]h"]h$]h&]uh1jWhjSxubeh}(h]h ]h"]h$]h&]uh1j7hjnxhMhjHwubeh}(h]h ]h"]h$]h&]uh1j2hj,wubh)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj,wubh)}(htThis function ensures that width, height and the media bus pixel code are equal on both source and sink of the link.h]htThis function ensures that width, height and the media bus pixel code are equal on both source and sink of the link.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj,wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW&v4l2_subdev_link_validate (C function)c.v4l2_subdev_link_validatehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h7int v4l2_subdev_link_validate (struct media_link *link)h]jg)}(h6int v4l2_subdev_link_validate(struct media_link *link)h](jAk)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjxhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjxhhhjyhMubj)}(hv4l2_subdev_link_validateh]j)}(hv4l2_subdev_link_validateh]hv4l2_subdev_link_validate}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]hhuh1jhjxhhhjyhMubjyk)}(h(struct media_link *link)h]jk)}(hstruct media_link *linkh](jm)}(hjph]hstruct}(hj5yhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1yubj)}(h h]h }(hjByhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj1yubh)}(hhh]j)}(h media_linkh]h media_link}(hjSyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPyubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjUymodnameN classnameNjj)}j]jk)}jkjysbc.v4l2_subdev_link_validateasbuh1hhj1yubj)}(h h]h }(hjsyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj1yubjk)}(hjkh]h*}(hjyhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj1yubj)}(hlinkh]hlink}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1yubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj-yubah}(h]h ]h"]h$]h&]hhuh1jxkhjxhhhjyhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjxhhhjyhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1j`hjyhMhjxhhubj)}(hhh]h)}(hvalidates a media linkh]hvalidates a media link}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjyjjyjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct media_link *link`` pointer to :c:type:`struct media_link ` **Description** This function calls the subdev's link_validate ops to validate if a media link is valid for streaming. It also internally calls v4l2_subdev_link_validate_default() to ensure that width, height and the media bus pixel code are equal on both source and sink of the link. The function can be used as a drop-in :c:type:`media_entity_ops.link_validate ` implementation for v4l2_subdev instances. It supports all links between subdevs, as well as links between subdevs and video devices, provided that the video devices also implement their :c:type:`media_entity_ops.link_validate ` operation.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjyubj3)}(hhh]j8)}(hP``struct media_link *link`` pointer to :c:type:`struct media_link ` h](j>)}(h``struct media_link *link``h]h)}(hjyh]hstruct media_link *link}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjyubjX)}(hhh]h)}(h3pointer to :c:type:`struct media_link `h](h pointer to }(hjzhhhNhNubh)}(h(:c:type:`struct media_link `h]h)}(hjzh]hstruct media_link}(hjzhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj media_linkuh1hhjzhMhjzubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jWhjyubeh}(h]h ]h"]h$]h&]uh1j7hjzhMhjyubah}(h]h ]h"]h$]h&]uh1j2hjyubh)}(h**Description**h]j)}(hjSzh]h Description}(hjUzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQzubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjyubh)}(hX This function calls the subdev's link_validate ops to validate if a media link is valid for streaming. It also internally calls v4l2_subdev_link_validate_default() to ensure that width, height and the media bus pixel code are equal on both source and sink of the link.h]hXThis function calls the subdev’s link_validate ops to validate if a media link is valid for streaming. It also internally calls v4l2_subdev_link_validate_default() to ensure that width, height and the media bus pixel code are equal on both source and sink of the link.}(hjizhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjyubh)}(hXbThe function can be used as a drop-in :c:type:`media_entity_ops.link_validate ` implementation for v4l2_subdev instances. It supports all links between subdevs, as well as links between subdevs and video devices, provided that the video devices also implement their :c:type:`media_entity_ops.link_validate ` operation.h](h&The function can be used as a drop-in }(hjxzhhhNhNubh)}(h;:c:type:`media_entity_ops.link_validate `h]h)}(hjzh]hmedia_entity_ops.link_validate}(hjzhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjmedia_entity_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjxzubh implementation for v4l2_subdev instances. It supports all links between subdevs, as well as links between subdevs and video devices, provided that the video devices also implement their }(hjxzhhhNhNubh)}(h;:c:type:`media_entity_ops.link_validate `h]h)}(hjzh]hmedia_entity_ops.link_validate}(hjzhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjmedia_entity_opsuh1hhjzhMhjxzubh operation.}(hjxzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW)v4l2_subdev_has_pad_interdep (C function)c.v4l2_subdev_has_pad_interdephNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hebool v4l2_subdev_has_pad_interdep (struct media_entity *entity, unsigned int pad0, unsigned int pad1)h]jg)}(hdbool v4l2_subdev_has_pad_interdep(struct media_entity *entity, unsigned int pad0, unsigned int pad1)h](jAk)}(hboolh]hbool}(hjzhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjzhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjzhhhjzhMubj)}(hv4l2_subdev_has_pad_interdeph]j)}(hv4l2_subdev_has_pad_interdeph]hv4l2_subdev_has_pad_interdep}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj {ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjzhhhjzhMubjyk)}(hC(struct media_entity *entity, unsigned int pad0, unsigned int pad1)h](jk)}(hstruct media_entity *entityh](jm)}(hjph]hstruct}(hj*{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&{ubj)}(h h]h }(hj7{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj&{ubh)}(hhh]j)}(h media_entityh]h media_entity}(hjH{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE{ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjJ{modnameN classnameNjj)}j]jk)}jkj{sbc.v4l2_subdev_has_pad_interdepasbuh1hhj&{ubj)}(h h]h }(hjh{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj&{ubjk)}(hjkh]h*}(hjv{hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj&{ubj)}(hentityh]hentity}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&{ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj"{ubjk)}(hunsigned int pad0h](jAk)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj{ubjAk)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj{ubj)}(hpad0h]hpad0}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj"{ubjk)}(hunsigned int pad1h](jAk)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj{ubjAk)}(hinth]hint}(hj |hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj{ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj{ubj)}(hpad1h]hpad1}(hj%|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj"{ubeh}(h]h ]h"]h$]h&]hhuh1jxkhjzhhhjzhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1j`hjzhMhjzhhubj)}(hhh]h)}(h.MC has_pad_interdep implementation for subdevsh]h.MC has_pad_interdep implementation for subdevs}(hjO|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjL|hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjg|jjg|jjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct media_entity *entity`` pointer to :c:type:`struct media_entity ` ``unsigned int pad0`` pad number for the first pad ``unsigned int pad1`` pad number for the second pad **Description** This function is an implementation of the media_entity_operations.has_pad_interdep operation for subdevs that implement the multiplexed streams API (as indicated by the V4L2_SUBDEV_FL_STREAMS subdev flag). It considers two pads interdependent if there is an active route between pad0 and pad1.h](h)}(h**Parameters**h]j)}(hjq|h]h Parameters}(hjs|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo|ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjk|ubj3)}(hhh](j8)}(hX``struct media_entity *entity`` pointer to :c:type:`struct media_entity ` h](j>)}(h``struct media_entity *entity``h]h)}(hj|h]hstruct media_entity *entity}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj|ubjX)}(hhh]h)}(h7pointer to :c:type:`struct media_entity `h](h pointer to }(hj|hhhNhNubh)}(h,:c:type:`struct media_entity `h]h)}(hj|h]hstruct media_entity}(hj|hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj media_entityuh1hhj|hMhj|ubeh}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jWhj|ubeh}(h]h ]h"]h$]h&]uh1j7hj|hMhj|ubj8)}(h3``unsigned int pad0`` pad number for the first pad h](j>)}(h``unsigned int pad0``h]h)}(hj|h]hunsigned int pad0}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj|ubjX)}(hhh]h)}(hpad number for the first padh]hpad number for the first pad}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jWhj|ubeh}(h]h ]h"]h$]h&]uh1j7hj|hMhj|ubj8)}(h4``unsigned int pad1`` pad number for the second pad h](j>)}(h``unsigned int pad1``h]h)}(hj!}h]hunsigned int pad1}(hj#}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj}ubjX)}(hhh]h)}(hpad number for the second padh]hpad number for the second pad}(hj:}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6}hMhj7}ubah}(h]h ]h"]h$]h&]uh1jWhj}ubeh}(h]h ]h"]h$]h&]uh1j7hj6}hMhj|ubeh}(h]h ]h"]h$]h&]uh1j2hjk|ubh)}(h**Description**h]j)}(hj\}h]h Description}(hj^}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ}ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjk|ubh)}(hThis function is an implementation of the media_entity_operations.has_pad_interdep operation for subdevs that implement the multiplexed streams API (as indicated by the V4L2_SUBDEV_FL_STREAMS subdev flag).h]hThis function is an implementation of the media_entity_operations.has_pad_interdep operation for subdevs that implement the multiplexed streams API (as indicated by the V4L2_SUBDEV_FL_STREAMS subdev flag).}(hjr}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjk|ubh)}(hWIt considers two pads interdependent if there is an active route between pad0 and pad1.h]hWIt considers two pads interdependent if there is an active route between pad0 and pad1.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjk|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW&__v4l2_subdev_state_alloc (C function)c.__v4l2_subdev_state_allochNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hstruct v4l2_subdev_state * __v4l2_subdev_state_alloc (struct v4l2_subdev *sd, const char *lock_name, struct lock_class_key *key)h]jg)}(h~struct v4l2_subdev_state *__v4l2_subdev_state_alloc(struct v4l2_subdev *sd, const char *lock_name, struct lock_class_key *key)h](jm)}(hjph]hstruct}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj}hhhj}hMubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj}modnameN classnameNjj)}j]jk)}jk__v4l2_subdev_state_allocsbc.__v4l2_subdev_state_allocasbuh1hhj}hhhj}hMubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj}hhhj}hMubjk)}(hjkh]h*}(hj}hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj}hhhj}hMubj)}(h__v4l2_subdev_state_alloch]j)}(hj}h]h__v4l2_subdev_state_alloc}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ~ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj}hhhj}hMubjyk)}(hK(struct v4l2_subdev *sd, const char *lock_name, struct lock_class_key *key)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hj*~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&~ubj)}(h h]h }(hj7~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj&~ubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjH~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE~ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjJ~modnameN classnameNjj)}j]j}c.__v4l2_subdev_state_allocasbuh1hhj&~ubj)}(h h]h }(hjf~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj&~ubjk)}(hjkh]h*}(hjt~hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj&~ubj)}(hsdh]hsd}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&~ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj"~ubjk)}(hconst char *lock_nameh](jm)}(hjmh]hconst}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubjAk)}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubjk)}(hjkh]h*}(hj~hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj~ubj)}(h lock_nameh]h lock_name}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj"~ubjk)}(hstruct lock_class_key *keyh](jm)}(hjph]hstruct}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubh)}(hhh]j)}(hlock_class_keyh]hlock_class_key}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j}c.__v4l2_subdev_state_allocasbuh1hhj~ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubjk)}(hjkh]h*}(hjAhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj~ubj)}(hkeyh]hkey}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj"~ubeh}(h]h ]h"]h$]h&]hhuh1jxkhj}hhhj}hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj}hhhj}hMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1j`hj}hMhj}hhubj)}(hhh]h)}(hallocate v4l2_subdev_stateh]hallocate v4l2_subdev_state}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjuhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX~**Parameters** ``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` for which the state is being allocated. ``const char *lock_name`` name of the state lock ``struct lock_class_key *key`` lock_class_key for the lock **Description** Must call __v4l2_subdev_state_free() when state is no longer needed. Not to be called directly by the drivers. h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(hy``struct v4l2_subdev *sd`` pointer to :c:type:`struct v4l2_subdev ` for which the state is being allocated. h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h]pointer to :c:type:`struct v4l2_subdev ` for which the state is being allocated.h](h pointer to }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjh]hstruct v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjhMhjubh( for which the state is being allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h1``const char *lock_name`` name of the state lock h](j>)}(h``const char *lock_name``h]h)}(hjh]hconst char *lock_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hname of the state lockh]hname of the state lock}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj*hMhjubj8)}(h;``struct lock_class_key *key`` lock_class_key for the lock h](j>)}(h``struct lock_class_key *key``h]h)}(hjNh]hstruct lock_class_key *key}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjHubjX)}(hhh]h)}(hlock_class_key for the lockh]hlock_class_key for the lock}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jWhjHubeh}(h]h ]h"]h$]h&]uh1j7hjchMhjubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hDMust call __v4l2_subdev_state_free() when state is no longer needed.h]hDMust call __v4l2_subdev_state_free() when state is no longer needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h)Not to be called directly by the drivers.h]h)Not to be called directly by the drivers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%__v4l2_subdev_state_free (C function)c.__v4l2_subdev_state_freehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h?void __v4l2_subdev_state_free (struct v4l2_subdev_state *state)h]jg)}(h>void __v4l2_subdev_state_free(struct v4l2_subdev_state *state)h](jAk)}(hvoidh]hvoid}(hj݀hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjـhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjـhhhjhM!ubj)}(h__v4l2_subdev_state_freeh]j)}(h__v4l2_subdev_state_freeh]h__v4l2_subdev_state_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjـhhhjhM!ubjyk)}(h!(struct v4l2_subdev_state *state)h]jk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj:modnameN classnameNjj)}j]jk)}jkjsbc.__v4l2_subdev_state_freeasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjfhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstateh]hstate}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubah}(h]h ]h"]h$]h&]hhuh1jxkhjـhhhjhM!ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjՀhhhjhM!ubah}(h]jЀah ](jjeh"]h$]h&]jj)jhuh1j`hjhM!hjҀhhubj)}(hhh]h)}(hfree a v4l2_subdev_stateh]hfree a v4l2_subdev_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjҀhhhjhM!ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(h**Parameters** ``struct v4l2_subdev_state *state`` v4l2_subdev_state to be freed. **Description** Not to be called directly by the drivers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh]j8)}(hC``struct v4l2_subdev_state *state`` v4l2_subdev_state to be freed. h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjށh]hstruct v4l2_subdev_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܁ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj؁ubjX)}(hhh]h)}(hv4l2_subdev_state to be freed.h]hv4l2_subdev_state to be freed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhj؁ubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjՁubah}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h)Not to be called directly by the drivers.h]h)Not to be called directly by the drivers.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW#v4l2_subdev_init_finalize (C macro)c.v4l2_subdev_init_finalizehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_init_finalizeh]jg)}(hv4l2_subdev_init_finalizeh]j)}(hv4l2_subdev_init_finalizeh]j)}(hjXh]hv4l2_subdev_init_finalize}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjZhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM1ubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjVhhhjuhM1ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1j`hjuhM1hjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjuhM1ubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h"``v4l2_subdev_init_finalize (sd)``h]h)}(hjh]hv4l2_subdev_init_finalize (sd)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM3hj9hhubj)}(h.Finalizes the initialization of the subdevice h]h)}(h-Finalizes the initialization of the subdeviceh]h-Finalizes the initialization of the subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM$hjubah}(h]h ]h"]h$]h&]uh1jhjhM$hj9hhubj)}(hX**Parameters** ``sd`` The subdev **Description** This function finalizes the initialization of the subdev, including allocation of the active state for the subdev. This function must be called by the subdev drivers that use the centralized active state, after the subdev struct has been initialized and media_entity_pads_init() has been called, but before registering the subdev. The user must call v4l2_subdev_cleanup() when the subdev is being removed.h](h)}(h**Parameters**h]j)}(hjɂh]h Parameters}(hj˂hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǂubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM(hjÂubj3)}(hhh]j8)}(h``sd`` The subdev h](j>)}(h``sd``h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM%hjubjX)}(hhh]h)}(h The subdevh]h The subdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM%hj߂ubah}(h]h ]h"]h$]h&]uh1j2hjÂubh)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'hjÂubh)}(hrThis function finalizes the initialization of the subdev, including allocation of the active state for the subdev.h]hrThis function finalizes the initialization of the subdev, including allocation of the active state for the subdev.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'hjÂubh)}(hThis function must be called by the subdev drivers that use the centralized active state, after the subdev struct has been initialized and media_entity_pads_init() has been called, but before registering the subdev.h]hThis function must be called by the subdev drivers that use the centralized active state, after the subdev struct has been initialized and media_entity_pads_init() has been called, but before registering the subdev.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM*hjÂubh)}(hJThe user must call v4l2_subdev_cleanup() when the subdev is being removed.h]hJThe user must call v4l2_subdev_cleanup() when the subdev is being removed.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM/hjÂubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_subdev_cleanup (C function)c.v4l2_subdev_cleanuphNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h1void v4l2_subdev_cleanup (struct v4l2_subdev *sd)h]jg)}(h0void v4l2_subdev_cleanup(struct v4l2_subdev *sd)h](jAk)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMDubj)}(hv4l2_subdev_cleanuph]j)}(hv4l2_subdev_cleanuph]hv4l2_subdev_cleanup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMDubjyk)}(h(struct v4l2_subdev *sd)h]jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjÃhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjЃhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjރubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_cleanupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubah}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMDubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj~hhhjhMDubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1j`hjhMDhj{hhubj)}(hhh]h)}(h1Releases the resources allocated by the subdeviceh]h1Releases the resources allocated by the subdevice}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM=hjChhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhMDubeh}(h]h ](hfunctioneh"]h$]h&]jhjj^jj^jjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice **Description** Clean up a V4L2 async sub-device. Must be called for a sub-device as part of its release if resources have been associated with it using v4l2_async_subdev_endpoint_add() or v4l2_subdev_init_finalize().h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMAhjbubj3)}(hhh]j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM>hjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM>hj~ubah}(h]h ]h"]h$]h&]uh1j2hjbubh)}(h**Description**h]j)}(hj„h]h Description}(hjĄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM@hjbubh)}(hClean up a V4L2 async sub-device. Must be called for a sub-device as part of its release if resources have been associated with it using v4l2_async_subdev_endpoint_add() or v4l2_subdev_init_finalize().h]hClean up a V4L2 async sub-device. Must be called for a sub-device as part of its release if resources have been associated with it using v4l2_async_subdev_endpoint_add() or v4l2_subdev_init_finalize().}(hj؄hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM@hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW&v4l2_subdev_state_get_format (C macro)c.v4l2_subdev_state_get_formathNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_state_get_formath]jg)}(hv4l2_subdev_state_get_formath]j)}(hv4l2_subdev_state_get_formath]j)}(hjh]hv4l2_subdev_state_get_format}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMcubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMchjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](hmacroeh"]h$]h&]jhjj7jj7jjjuh1j[hhhj9hNhNubh)}(h2``v4l2_subdev_state_get_format (state, pad, ...)``h]h)}(hj=h]h.v4l2_subdev_state_get_format (state, pad, ...)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMehj9hhubj)}(hGet pointer to a stream format h]h)}(hGet pointer to a stream formath]hGet pointer to a stream format}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMXhjSubah}(h]h ]h"]h$]h&]uh1jhjehMXhj9hhubj)}(hXv**Parameters** ``state`` subdevice state ``pad`` pad id ``...`` stream id (optional argument) **Description** This returns a pointer to :c:type:`struct v4l2_mbus_framefmt ` for the given pad + stream in the subdev state. For stream-unaware drivers the format for the corresponding pad is returned. If the pad does not exist, NULL is returned.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM\hjlubj3)}(hhh](j8)}(h``state`` subdevice state h](j>)}(h ``state``h]h)}(hjh]hstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMYhjubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMYhjubj8)}(h``pad`` pad id h](j>)}(h``pad``h]h)}(hjʅh]hpad}(hj̅hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȅubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMZhjąubjX)}(hhh]h)}(hpad idh]hpad id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj߅hMZhjubah}(h]h ]h"]h$]h&]uh1jWhjąubeh}(h]h ]h"]h$]h&]uh1j7hj߅hMZhjubj8)}(h&``...`` stream id (optional argument) h](j>)}(h``...``h]h)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM[hjubjX)}(hhh]h)}(hstream id (optional argument)h]hstream id (optional argument)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM[hjubeh}(h]h ]h"]h$]h&]uh1j2hjlubh)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM]hjlubh)}(hThis returns a pointer to :c:type:`struct v4l2_mbus_framefmt ` for the given pad + stream in the subdev state.h](hThis returns a pointer to }(hjThhhNhNubh)}(h8:c:type:`struct v4l2_mbus_framefmt `h]h)}(hj^h]hstruct v4l2_mbus_framefmt}(hj`hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_framefmtuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM]hjTubh0 for the given pad + stream in the subdev state.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hM]hjlubh)}(hyFor stream-unaware drivers the format for the corresponding pad is returned. If the pad does not exist, NULL is returned.h]hyFor stream-unaware drivers the format for the corresponding pad is returned. If the pad does not exist, NULL is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM`hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_state_get_crop (C macro)c.v4l2_subdev_state_get_crophNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_state_get_croph]jg)}(hv4l2_subdev_state_get_croph]j)}(hv4l2_subdev_state_get_croph]j)}(hjh]hv4l2_subdev_state_get_crop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhj̆hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hj̆hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj̆hMubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h0``v4l2_subdev_state_get_crop (state, pad, ...)``h]h)}(hjh]h,v4l2_subdev_state_get_crop (state, pad, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(h'Get pointer to a stream crop rectangle h]h)}(h&Get pointer to a stream crop rectangleh]h&Get pointer to a stream crop rectangle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM{hjubah}(h]h ]h"]h$]h&]uh1jhjhM{hj9hhubj)}(hXT**Parameters** ``state`` subdevice state ``pad`` pad id ``...`` stream id (optional argument) **Description** This returns a pointer to crop rectangle for the given pad + stream in the subdev state. For stream-unaware drivers the crop rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h``state`` subdevice state h](j>)}(h ``state``h]h)}(hj?h]hstate}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM|hj9ubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM|hjUubah}(h]h ]h"]h$]h&]uh1jWhj9ubeh}(h]h ]h"]h$]h&]uh1j7hjThM|hj6ubj8)}(h``pad`` pad id h](j>)}(h``pad``h]h)}(hjxh]hpad}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM}hjrubjX)}(hhh]h)}(hpad idh]hpad id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jWhjrubeh}(h]h ]h"]h$]h&]uh1j7hjhM}hj6ubj8)}(h&``...`` stream id (optional argument) h](j>)}(h``...``h]h)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM~hjubjX)}(hhh]h)}(hstream id (optional argument)h]hstream id (optional argument)}(hjʇhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƇhM~hjLJubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjƇhM~hj6ubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hXThis returns a pointer to crop rectangle for the given pad + stream in the subdev state.h]hXThis returns a pointer to crop rectangle for the given pad + stream in the subdev state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hFor stream-unaware drivers the crop rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned.h]hFor stream-unaware drivers the crop rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW'v4l2_subdev_state_get_compose (C macro)c.v4l2_subdev_state_get_composehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_state_get_composeh]jg)}(hv4l2_subdev_state_get_composeh]j)}(hv4l2_subdev_state_get_composeh]j)}(hj:h]hv4l2_subdev_state_get_compose}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj<hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhj8hhhjWhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1j`hjWhMhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhMubeh}(h]h ](hmacroeh"]h$]h&]jhjjpjjpjjjuh1j[hhhj9hNhNubh)}(h3``v4l2_subdev_state_get_compose (state, pad, ...)``h]h)}(hjvh]h/v4l2_subdev_state_get_compose (state, pad, ...)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(h*Get pointer to a stream compose rectangle h]h)}(h)Get pointer to a stream compose rectangleh]h)Get pointer to a stream compose rectangle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj9hhubj)}(hXZ**Parameters** ``state`` subdevice state ``pad`` pad id ``...`` stream id (optional argument) **Description** This returns a pointer to compose rectangle for the given pad + stream in the subdev state. For stream-unaware drivers the compose rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h``state`` subdevice state h](j>)}(h ``state``h]h)}(hjʈh]hstate}(hj̈hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȈubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjĈubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj߈hMhjubah}(h]h ]h"]h$]h&]uh1jWhjĈubeh}(h]h ]h"]h$]h&]uh1j7hj߈hMhjubj8)}(h``pad`` pad id h](j>)}(h``pad``h]h)}(hjh]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hpad idh]hpad id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h&``...`` stream id (optional argument) h](j>)}(h``...``h]h)}(hj<h]h...}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj6ubjX)}(hhh]h)}(hstream id (optional argument)h]hstream id (optional argument)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jWhj6ubeh}(h]h ]h"]h$]h&]uh1j7hjQhMhjubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h[This returns a pointer to compose rectangle for the given pad + stream in the subdev state.h]h[This returns a pointer to compose rectangle for the given pad + stream in the subdev state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hFor stream-unaware drivers the compose rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned.h]hFor stream-unaware drivers the compose rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW(v4l2_subdev_state_get_interval (C macro) c.v4l2_subdev_state_get_intervalhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_state_get_intervalh]jg)}(hv4l2_subdev_state_get_intervalh]j)}(hv4l2_subdev_state_get_intervalh]j)}(hjʼnh]hv4l2_subdev_state_get_interval}(hjωhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˉubah}(h]h ](jjeh"]h$]h&]hhuh1jhjljhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjÉhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h4``v4l2_subdev_state_get_interval (state, pad, ...)``h]h)}(hjh]h0v4l2_subdev_state_get_interval (state, pad, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(h'Get pointer to a stream frame interval h]h)}(h&Get pointer to a stream frame intervalh]h&Get pointer to a stream frame interval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj)hMhj9hhubj)}(hXX**Parameters** ``state`` subdevice state ``pad`` pad id ``...`` stream id (optional argument) **Description** This returns a pointer to the frame interval for the given pad + stream in the subdev state. For stream-unaware drivers the frame interval for the corresponding pad is returned. If the pad does not exist, NULL is returned.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubj3)}(hhh](j8)}(h``state`` subdevice state h](j>)}(h ``state``h]h)}(hjUh]hstate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjOubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jWhjOubeh}(h]h ]h"]h$]h&]uh1j7hjjhMhjLubj8)}(h``pad`` pad id h](j>)}(h``pad``h]h)}(hjh]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hpad idh]hpad id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjLubj8)}(h&``...`` stream id (optional argument) h](j>)}(h``...``h]h)}(hjNJh]h...}(hjɊhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŊubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hstream id (optional argument)h]hstream id (optional argument)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܊hMhj݊ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj܊hMhjLubeh}(h]h ]h"]h$]h&]uh1j2hj0ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubh)}(h\This returns a pointer to the frame interval for the given pad + stream in the subdev state.h]h\This returns a pointer to the frame interval for the given pad + stream in the subdev state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubh)}(hFor stream-unaware drivers the frame interval for the corresponding pad is returned. If the pad does not exist, NULL is returned.h]hFor stream-unaware drivers the frame interval for the corresponding pad is returned. If the pad does not exist, NULL is returned.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW v4l2_subdev_get_fmt (C function)c.v4l2_subdev_get_fmthNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(htint v4l2_subdev_get_fmt (struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_format *format)h]jg)}(hsint v4l2_subdev_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_format *format)h](jAk)}(hinth]hint}(hjVhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjRhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjRhhhjdhMubj)}(hv4l2_subdev_get_fmth]j)}(hv4l2_subdev_get_fmth]hv4l2_subdev_get_fmt}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]hhuh1jhjRhhhjdhMubjyk)}(h\(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_format *format)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjysbc.v4l2_subdev_get_fmtasbuh1hhjubj)}(h h]h }(hjыhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjߋhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj%modnameN classnameNjj)}j]j͋c.v4l2_subdev_get_fmtasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjOhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstateh]hstate}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h!struct v4l2_subdev_format *formath](jm)}(hjph]hstruct}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjqubh)}(hhh]j)}(hv4l2_subdev_formath]hv4l2_subdev_format}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j͋c.v4l2_subdev_get_fmtasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjqubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjqubj)}(hformath]hformat}(hǰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhjRhhhjdhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1j`hjdhMhjKhhubj)}(hhh]h)}(hFill format based on stateh]hFill format based on state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX/**Parameters** ``struct v4l2_subdev *sd`` subdevice ``struct v4l2_subdev_state *state`` subdevice state ``struct v4l2_subdev_format *format`` pointer to :c:type:`struct v4l2_subdev_format ` **Description** Fill **format->format** field based on the information in the **format** struct. This function can be used by the subdev drivers which support active state to implement v4l2_subdev_pad_ops.get_fmt if the subdev driver does not need to do anything special in their get_fmt op. Returns 0 on success, error value otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h%``struct v4l2_subdev *sd`` subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hj7h]hstruct v4l2_subdev *sd}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj1ubjX)}(hhh]h)}(h subdeviceh]h subdevice}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jWhj1ubeh}(h]h ]h"]h$]h&]uh1j7hjLhMhj.ubj8)}(h4``struct v4l2_subdev_state *state`` subdevice state h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjph]hstruct v4l2_subdev_state *state}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjjubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj.ubj8)}(hj``struct v4l2_subdev_format *format`` pointer to :c:type:`struct v4l2_subdev_format ` h](j>)}(h%``struct v4l2_subdev_format *format``h]h)}(hjh]h!struct v4l2_subdev_format *format}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hCpointer to :c:type:`struct v4l2_subdev_format `h](h pointer to }(hjhhhNhNubh)}(h8:c:type:`struct v4l2_subdev_format `h]h)}(hj̍h]hstruct v4l2_subdev_format}(hj΍hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjʍubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_formatuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj.ubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hPFill **format->format** field based on the information in the **format** struct.h](hFill }(hjhhhNhNubj)}(h**format->format**h]hformat->format}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' field based on the information in the }(hjhhhNhNubj)}(h **format**h]hformat}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh struct.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hThis function can be used by the subdev drivers which support active state to implement v4l2_subdev_pad_ops.get_fmt if the subdev driver does not need to do anything special in their get_fmt op.h]hThis function can be used by the subdev drivers which support active state to implement v4l2_subdev_pad_ops.get_fmt if the subdev driver does not need to do anything special in their get_fmt op.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h,Returns 0 on success, error value otherwise.h]h,Returns 0 on success, error value otherwise.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW+v4l2_subdev_get_frame_interval (C function) c.v4l2_subdev_get_frame_intervalhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hint v4l2_subdev_get_frame_interval (struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *fi)h]jg)}(hint v4l2_subdev_get_frame_interval(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *fi)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMubj)}(hv4l2_subdev_get_frame_intervalh]j)}(hv4l2_subdev_get_frame_intervalh]hv4l2_subdev_get_frame_interval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubjyk)}(h`(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, struct v4l2_subdev_frame_interval *fi)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjǎhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjÎubj)}(h h]h }(hjԎhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjÎubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsb c.v4l2_subdev_get_frame_intervalasbuh1hhjÎubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjÎubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjÎubj)}(hsdh]hsd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÎubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj5ubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjYmodnameN classnameNjj)}j]j c.v4l2_subdev_get_frame_intervalasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj5ubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj5ubj)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h%struct v4l2_subdev_frame_interval *fih](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_frame_intervalh]hv4l2_subdev_frame_interval}(hjǏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjďubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjɏmodnameN classnameNjj)}j]j c.v4l2_subdev_get_frame_intervalasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hfih]hfi}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(h"Fill frame interval based on stateh]h"Fill frame interval based on state}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj'hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjBjjBjjjuh1j[hhhj9hNhNubj)}(hXS**Parameters** ``struct v4l2_subdev *sd`` subdevice ``struct v4l2_subdev_state *state`` subdevice state ``struct v4l2_subdev_frame_interval *fi`` pointer to :c:type:`struct v4l2_subdev_frame_interval ` **Description** Fill **fi->interval** field based on the information in the **fi** struct. This function can be used by the subdev drivers which support active state to implement v4l2_subdev_pad_ops.get_frame_interval if the subdev driver does not need to do anything special in their get_frame_interval op. Returns 0 on success, error value otherwise.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubj3)}(hhh](j8)}(h%``struct v4l2_subdev *sd`` subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjkh]hstruct v4l2_subdev *sd}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjeubjX)}(hhh]h)}(h subdeviceh]h subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjeubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjbubj8)}(h4``struct v4l2_subdev_state *state`` subdevice state h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjh]hstruct v4l2_subdev_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjbubj8)}(h~``struct v4l2_subdev_frame_interval *fi`` pointer to :c:type:`struct v4l2_subdev_frame_interval ` h](j>)}(h)``struct v4l2_subdev_frame_interval *fi``h]h)}(hjݐh]h%struct v4l2_subdev_frame_interval *fi}(hjߐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjېubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjאubjX)}(hhh]h)}(hSpointer to :c:type:`struct v4l2_subdev_frame_interval `h](h pointer to }(hjhhhNhNubh)}(hH:c:type:`struct v4l2_subdev_frame_interval `h]h)}(hjh]h!struct v4l2_subdev_frame_interval}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_frame_intervaluh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjאubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjbubeh}(h]h ]h"]h$]h&]uh1j2hjFubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubh)}(hJFill **fi->interval** field based on the information in the **fi** struct.h](hFill }(hjMhhhNhNubj)}(h**fi->interval**h]h fi->interval}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh' field based on the information in the }(hjMhhhNhNubj)}(h**fi**h]hfi}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh struct.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubh)}(hThis function can be used by the subdev drivers which support active state to implement v4l2_subdev_pad_ops.get_frame_interval if the subdev driver does not need to do anything special in their get_frame_interval op.h]hThis function can be used by the subdev drivers which support active state to implement v4l2_subdev_pad_ops.get_frame_interval if the subdev driver does not need to do anything special in their get_frame_interval op.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubh)}(h,Returns 0 on success, error value otherwise.h]h,Returns 0 on success, error value otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_set_routing (C function)c.v4l2_subdev_set_routinghNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hint v4l2_subdev_set_routing (struct v4l2_subdev *sd, struct v4l2_subdev_state *state, const struct v4l2_subdev_krouting *routing)h]jg)}(hint v4l2_subdev_set_routing(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, const struct v4l2_subdev_krouting *routing)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj͑hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhj̑hMubj)}(hv4l2_subdev_set_routingh]j)}(hv4l2_subdev_set_routingh]hv4l2_subdev_set_routing}(hjߑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۑubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj̑hMubjyk)}(he(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, const struct v4l2_subdev_krouting *routing)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_set_routingasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjGhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjiubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j5c.v4l2_subdev_set_routingasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjiubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjiubj)}(hstateh]hstate}(hjĒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h*const struct v4l2_subdev_krouting *routingh](jm)}(hjmh]hconst}(hjݒhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjْubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjْubjm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjْubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjْubh)}(hhh]j)}(hv4l2_subdev_kroutingh]hv4l2_subdev_krouting}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j5c.v4l2_subdev_set_routingasbuh1hhjْubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjْubjk)}(hjkh]h*}(hjBhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjْubj)}(hroutingh]hrouting}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjْubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhj̑hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhj̑hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hj̑hMhjhhubj)}(hhh]h)}(h!Set given routing to subdev stateh]h!Set given routing to subdev state}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̑hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice ``struct v4l2_subdev_state *state`` The subdevice state ``const struct v4l2_subdev_krouting *routing`` Routing that will be copied to subdev state **Description** This will release old routing table (if any) from the state, allocate enough space for the given routing, and copy the routing. This can be used from the subdev driver's set_routing op, after validating the routing.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjӓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϓhMhjГubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjϓhMhjubj8)}(h8``struct v4l2_subdev_state *state`` The subdevice state h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjh]hstruct v4l2_subdev_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hThe subdevice stateh]hThe subdevice state}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h[``const struct v4l2_subdev_krouting *routing`` Routing that will be copied to subdev state h](j>)}(h.``const struct v4l2_subdev_krouting *routing``h]h)}(hj,h]h*const struct v4l2_subdev_krouting *routing}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj&ubjX)}(hhh]h)}(h+Routing that will be copied to subdev stateh]h+Routing that will be copied to subdev state}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jWhj&ubeh}(h]h ]h"]h$]h&]uh1j7hjAhMhjubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hThis will release old routing table (if any) from the state, allocate enough space for the given routing, and copy the routing.h]hThis will release old routing table (if any) from the state, allocate enough space for the given routing, and copy the routing.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hWThis can be used from the subdev driver's set_routing op, after validating the routing.h]hYThis can be used from the subdev driver’s set_routing op, after validating the routing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWfor_each_active_route (C macro)c.for_each_active_routehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hfor_each_active_routeh]jg)}(hfor_each_active_routeh]j)}(hfor_each_active_routeh]j)}(hjh]hfor_each_active_route}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjҔhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjҔhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjҔhMubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h*``for_each_active_route (routing, route)``h]h)}(hjh]h&for_each_active_route (routing, route)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(h0iterate on all active routes of a routing table h]h)}(h/iterate on all active routes of a routing tableh]h/iterate on all active routes of a routing table}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj9hhubj)}(hO**Parameters** ``routing`` The routing table ``route`` The route iteratorh](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj ubj3)}(hhh](j8)}(h``routing`` The routing table h](j>)}(h ``routing``h]h)}(hjEh]hrouting}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj?ubjX)}(hhh]h)}(hThe routing tableh]hThe routing table}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jWhj?ubeh}(h]h ]h"]h$]h&]uh1j7hjZhMhj<ubj8)}(h``route`` The route iteratorh](j>)}(h ``route``h]h)}(hj~h]hroute}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjxubjX)}(hhh]h)}(hThe route iteratorh]hThe route iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jWhjxubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj<ubeh}(h]h ]h"]h$]h&]uh1j2hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW-v4l2_subdev_set_routing_with_fmt (C function)"c.v4l2_subdev_set_routing_with_fmthNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hint v4l2_subdev_set_routing_with_fmt (struct v4l2_subdev *sd, struct v4l2_subdev_state *state, const struct v4l2_subdev_krouting *routing, const struct v4l2_mbus_framefmt *fmt)h]jg)}(hint v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, const struct v4l2_subdev_krouting *routing, const struct v4l2_mbus_framefmt *fmt)h](jAk)}(hinth]hint}(hjؕhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjԕhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjԕhhhjhM ubj)}(h v4l2_subdev_set_routing_with_fmth]j)}(h v4l2_subdev_set_routing_with_fmth]h v4l2_subdev_set_routing_with_fmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjԕhhhjhM ubjyk)}(h(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, const struct v4l2_subdev_krouting *routing, const struct v4l2_mbus_framefmt *fmt)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj5modnameN classnameNjj)}j]jk)}jkjsb"c.v4l2_subdev_set_routing_with_fmtasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjahhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj ubjk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jO"c.v4l2_subdev_set_routing_with_fmtasbuh1hhjubj)}(h h]h }(hjÖhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjіhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstateh]hstate}(hjޖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj ubjk)}(h*const struct v4l2_subdev_krouting *routingh](jm)}(hjmh]hconst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_kroutingh]hv4l2_subdev_krouting}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj2modnameN classnameNjj)}j]jO"c.v4l2_subdev_set_routing_with_fmtasbuh1hhjubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hj\hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hroutingh]hrouting}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj ubjk)}(h$const struct v4l2_mbus_framefmt *fmth](jm)}(hjmh]hconst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubjm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubh)}(hhh]j)}(hv4l2_mbus_framefmth]hv4l2_mbus_framefmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jO"c.v4l2_subdev_set_routing_with_fmtasbuh1hhj~ubj)}(h h]h }(hjٗhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~ubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj~ubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj ubeh}(h]h ]h"]h$]h&]hhuh1jxkhjԕhhhjhM ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjЕhhhjhM ubah}(h]j˕ah ](jjeh"]h$]h&]jj)jhuh1j`hjhM hj͕hhubj)}(hhh]h)}(h,Set given routing and format to subdev stateh]h,Set given routing and format to subdev state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj͕hhhjhM ubeh}(h]h ](hfunctioneh"]h$]h&]jhjj6jj6jjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice ``struct v4l2_subdev_state *state`` The subdevice state ``const struct v4l2_subdev_krouting *routing`` Routing that will be copied to subdev state ``const struct v4l2_mbus_framefmt *fmt`` Format used to initialize all the streams **Description** This is the same as v4l2_subdev_set_routing, but additionally initializes all the streams using the given format.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubj3)}(hhh](j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hj_h]hstruct v4l2_subdev *sd}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjYubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jWhjYubeh}(h]h ]h"]h$]h&]uh1j7hjthMhjVubj8)}(h8``struct v4l2_subdev_state *state`` The subdevice state h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjh]hstruct v4l2_subdev_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hThe subdevice stateh]hThe subdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjVubj8)}(h[``const struct v4l2_subdev_krouting *routing`` Routing that will be copied to subdev state h](j>)}(h.``const struct v4l2_subdev_krouting *routing``h]h)}(hjјh]h*const struct v4l2_subdev_krouting *routing}(hjӘhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϘubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj˘ubjX)}(hhh]h)}(h+Routing that will be copied to subdev stateh]h+Routing that will be copied to subdev state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhj˘ubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjVubj8)}(hS``const struct v4l2_mbus_framefmt *fmt`` Format used to initialize all the streams h](j>)}(h(``const struct v4l2_mbus_framefmt *fmt``h]h)}(hj h]h$const struct v4l2_mbus_framefmt *fmt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h)Format used to initialize all the streamsh]h)Format used to initialize all the streams}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjVubeh}(h]h ]h"]h$]h&]uh1j2hj:ubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubh)}(hqThis is the same as v4l2_subdev_set_routing, but additionally initializes all the streams using the given format.h]hqThis is the same as v4l2_subdev_set_routing, but additionally initializes all the streams using the given format.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW2v4l2_subdev_routing_find_opposite_end (C function)'c.v4l2_subdev_routing_find_opposite_endhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hint v4l2_subdev_routing_find_opposite_end (const struct v4l2_subdev_krouting *routing, u32 pad, u32 stream, u32 *other_pad, u32 *other_stream)h]jg)}(hint v4l2_subdev_routing_find_opposite_end(const struct v4l2_subdev_krouting *routing, u32 pad, u32 stream, u32 *other_pad, u32 *other_stream)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMubj)}(h%v4l2_subdev_routing_find_opposite_endh]j)}(h%v4l2_subdev_routing_find_opposite_endh]h%v4l2_subdev_routing_find_opposite_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubjyk)}(hd(const struct v4l2_subdev_krouting *routing, u32 pad, u32 stream, u32 *other_pad, u32 *other_stream)h](jk)}(h*const struct v4l2_subdev_krouting *routingh](jm)}(hjmh]hconst}(hjǙhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjÙubj)}(h h]h }(hjԙhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjÙubjm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjÙubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjÙubh)}(hhh]j)}(hv4l2_subdev_kroutingh]hv4l2_subdev_krouting}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsb'c.v4l2_subdev_routing_find_opposite_endasbuh1hhjÙubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjÙubjk)}(hjkh]h*}(hj.hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjÙubj)}(hroutingh]hrouting}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÙubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hu32 padh](h)}(hhh]j)}(hu32h]hu32}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjYmodnameN classnameNjj)}j]j'c.v4l2_subdev_routing_find_opposite_endasbuh1hhjPubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjPubj)}(hpadh]hpad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h u32 streamh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j'c.v4l2_subdev_routing_find_opposite_endasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubj)}(hstreamh]hstream}(hj˚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hu32 *other_padh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j'c.v4l2_subdev_routing_find_opposite_endasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(h other_padh]h other_pad}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hu32 *other_streamh](h)}(hhh]j)}(hu32h]hu32}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetj>modnameN classnameNjj)}j]j'c.v4l2_subdev_routing_find_opposite_endasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj5ubjk)}(hjkh]h*}(hjhhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj5ubj)}(h other_streamh]h other_stream}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(hFind the opposite streamh]hFind the opposite stream}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX0**Parameters** ``const struct v4l2_subdev_krouting *routing`` routing used to find the opposite side ``u32 pad`` pad id ``u32 stream`` stream id ``u32 *other_pad`` pointer used to return the opposite pad ``u32 *other_stream`` pointer used to return the opposite stream **Description** This function uses the routing table to find the pad + stream which is opposite the given pad + stream. **other_pad** and/or **other_stream** can be NULL if the caller does not need the value. Returns 0 on success, or -EINVAL if no matching route is found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjÛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(hV``const struct v4l2_subdev_krouting *routing`` routing used to find the opposite side h](j>)}(h.``const struct v4l2_subdev_krouting *routing``h]h)}(hjh]h*const struct v4l2_subdev_krouting *routing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjޛubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjڛubjX)}(hhh]h)}(h&routing used to find the opposite sideh]h&routing used to find the opposite side}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjڛubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjכubj8)}(h``u32 pad`` pad id h](j>)}(h ``u32 pad``h]h)}(hjh]hu32 pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hpad idh]hpad id}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj.hMhjכubj8)}(h``u32 stream`` stream id h](j>)}(h``u32 stream``h]h)}(hjRh]h u32 stream}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjLubjX)}(hhh]h)}(h stream idh]h stream id}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jWhjLubeh}(h]h ]h"]h$]h&]uh1j7hjghMhjכubj8)}(h;``u32 *other_pad`` pointer used to return the opposite pad h](j>)}(h``u32 *other_pad``h]h)}(hjh]hu32 *other_pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h'pointer used to return the opposite padh]h'pointer used to return the opposite pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjכubj8)}(hA``u32 *other_stream`` pointer used to return the opposite stream h](j>)}(h``u32 *other_stream``h]h)}(hjĜh]hu32 *other_stream}(hjƜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjœubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h*pointer used to return the opposite streamh]h*pointer used to return the opposite stream}(hjݜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjٜhMhjڜubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjٜhMhjכubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hgThis function uses the routing table to find the pad + stream which is opposite the given pad + stream.h]hgThis function uses the routing table to find the pad + stream which is opposite the given pad + stream.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hX**other_pad** and/or **other_stream** can be NULL if the caller does not need the value.h](j)}(h **other_pad**h]h other_pad}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh and/or }(hj$hhhNhNubj)}(h**other_stream**h]h other_stream}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh3 can be NULL if the caller does not need the value.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h?Returns 0 on success, or -EINVAL if no matching route is found.h]h?Returns 0 on success, or -EINVAL if no matching route is found.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW9v4l2_subdev_state_get_opposite_stream_format (C function).c.v4l2_subdev_state_get_opposite_stream_formathNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hstruct v4l2_mbus_framefmt * v4l2_subdev_state_get_opposite_stream_format (struct v4l2_subdev_state *state, u32 pad, u32 stream)h]jg)}(h}struct v4l2_mbus_framefmt *v4l2_subdev_state_get_opposite_stream_format(struct v4l2_subdev_state *state, u32 pad, u32 stream)h](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~hhhjhM.ubh)}(hhh]j)}(hv4l2_mbus_framefmth]hv4l2_mbus_framefmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jk,v4l2_subdev_state_get_opposite_stream_formatsb.c.v4l2_subdev_state_get_opposite_stream_formatasbuh1hhj~hhhjhM.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj~hhhjhM.ubjk)}(hjkh]h*}(hjНhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj~hhhjhM.ubj)}(h,v4l2_subdev_state_get_opposite_stream_formath]j)}(hjh]h,v4l2_subdev_state_get_opposite_stream_format}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݝubah}(h]h ](jjeh"]h$]h&]hhuh1jhj~hhhjhM.ubjyk)}(h6(struct v4l2_subdev_state *state, u32 pad, u32 stream)h](jk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j.c.v4l2_subdev_state_get_opposite_stream_formatasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjFhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstateh]hstate}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hu32 padh](h)}(hhh]j)}(hu32h]hu32}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjqmodnameN classnameNjj)}j]j.c.v4l2_subdev_state_get_opposite_stream_formatasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhubj)}(hpadh]hpad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h u32 streamh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j.c.v4l2_subdev_state_get_opposite_stream_formatasbuh1hhjubj)}(h h]h }(hj՞hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubj)}(hstreamh]hstream}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhj~hhhjhM.ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjzhhhjhM.ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j`hjhM.hjwhhubj)}(hhh]h)}(h%Get pointer to opposite stream formath]h%Get pointer to opposite stream format}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM#hj hhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhM.ubeh}(h]h ](hfunctioneh"]h$]h&]jhjj%jj%jjjuh1j[hhhj9hNhNubj)}(hXw**Parameters** ``struct v4l2_subdev_state *state`` subdevice state ``u32 pad`` pad id ``u32 stream`` stream id **Description** This returns a pointer to :c:type:`struct v4l2_mbus_framefmt ` for the pad + stream that is opposite the given pad + stream in the subdev state. If the state does not contain the given pad + stream, NULL is returned.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'hj)ubj3)}(hhh](j8)}(h4``struct v4l2_subdev_state *state`` subdevice state h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjNh]hstruct v4l2_subdev_state *state}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM%hjHubjX)}(hhh]h)}(hsubdevice stateh]hsubdevice state}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM%hjdubah}(h]h ]h"]h$]h&]uh1jWhjHubeh}(h]h ]h"]h$]h&]uh1j7hjchM%hjEubj8)}(h``u32 pad`` pad id h](j>)}(h ``u32 pad``h]h)}(hjh]hu32 pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM&hjubjX)}(hhh]h)}(hpad idh]hpad id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM&hjEubj8)}(h``u32 stream`` stream id h](j>)}(h``u32 stream``h]h)}(hjh]h u32 stream}(hjŸhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'hjubjX)}(hhh]h)}(h stream idh]h stream id}(hjٟhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj՟hM'hj֟ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj՟hM'hjEubeh}(h]h ]h"]h$]h&]uh1j2hj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM)hj)ubh)}(hThis returns a pointer to :c:type:`struct v4l2_mbus_framefmt ` for the pad + stream that is opposite the given pad + stream in the subdev state.h](hThis returns a pointer to }(hjhhhNhNubh)}(h8:c:type:`struct v4l2_mbus_framefmt `h]h)}(hjh]hstruct v4l2_mbus_framefmt}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_mbus_framefmtuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM)hjubhR for the pad + stream that is opposite the given pad + stream in the subdev state.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hM)hj)ubh)}(hGIf the state does not contain the given pad + stream, NULL is returned.h]hGIf the state does not contain the given pad + stream, NULL is returned.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM,hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW,v4l2_subdev_state_xlate_streams (C function)!c.v4l2_subdev_state_xlate_streamshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hmu64 v4l2_subdev_state_xlate_streams (const struct v4l2_subdev_state *state, u32 pad0, u32 pad1, u64 *streams)h]jg)}(hlu64 v4l2_subdev_state_xlate_streams(const struct v4l2_subdev_state *state, u32 pad0, u32 pad1, u64 *streams)h](h)}(hhh]j)}(hu64h]hu64}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjwmodnameN classnameNjj)}j]jk)}jkv4l2_subdev_state_xlate_streamssb!c.v4l2_subdev_state_xlate_streamsasbuh1hhjnhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjnhhhjhMFubj)}(hv4l2_subdev_state_xlate_streamsh]j)}(hjh]hv4l2_subdev_state_xlate_streams}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjnhhhjhMFubjyk)}(hI(const struct v4l2_subdev_state *state, u32 pad0, u32 pad1, u64 *streams)h](jk)}(h%const struct v4l2_subdev_state *stateh](jm)}(hjmh]hconst}(hjĠhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjѠhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjm)}(hjph]hstruct}(hjߠhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j!c.v4l2_subdev_state_xlate_streamsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hj)hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstateh]hstate}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hu32 pad0h](h)}(hhh]j)}(hu32h]hu32}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjTmodnameN classnameNjj)}j]j!c.v4l2_subdev_state_xlate_streamsasbuh1hhjKubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjKubj)}(hpad0h]hpad0}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(hu32 pad1h](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j!c.v4l2_subdev_state_xlate_streamsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubj)}(hpad1h]hpad1}(hjơhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h u64 *streamsh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߡubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j!c.v4l2_subdev_state_xlate_streamsasbuh1hhjۡubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjۡubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjۡubj)}(hstreamsh]hstreams}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۡubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhjnhhhjhMFubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjjhhhjhMFubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1j`hjhMFhjghhubj)}(hhh]h)}(h)Translate streams from one pad to anotherh]h)Translate streams from one pad to another}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM3hjBhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMFubeh}(h]h ](hfunctioneh"]h$]h&]jhjj]jj]jjjuh1j[hhhj9hNhNubj)}(hXT**Parameters** ``const struct v4l2_subdev_state *state`` Subdevice state ``u32 pad0`` The first pad ``u32 pad1`` The second pad ``u64 *streams`` Streams bitmask on the first pad **Description** Streams on sink pads of a subdev are routed to source pads as expressed in the subdev state routing table. Stream numbers don't necessarily match on the sink and source side of a route. This function translates stream numbers on **pad0**, expressed as a bitmask in **streams**, to the corresponding streams on **pad1** using the routing table from the **state**. It returns the stream mask on **pad1**, and updates **streams** with the streams that have been found in the routing table. **pad0** and **pad1** must be a sink and a source, in any order. **Return** The bitmask of streams of **pad1** that are routed to **streams** on **pad0**.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM7hjaubj3)}(hhh](j8)}(h:``const struct v4l2_subdev_state *state`` Subdevice state h](j>)}(h)``const struct v4l2_subdev_state *state``h]h)}(hjh]h%const struct v4l2_subdev_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM5hjubjX)}(hhh]h)}(hSubdevice stateh]hSubdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM5hj}ubj8)}(h``u32 pad0`` The first pad h](j>)}(h ``u32 pad0``h]h)}(hjh]hu32 pad0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM6hjubjX)}(hhh]h)}(h The first padh]h The first pad}(hjآhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԢhM6hjբubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjԢhM6hj}ubj8)}(h``u32 pad1`` The second pad h](j>)}(h ``u32 pad1``h]h)}(hjh]hu32 pad1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM7hjubjX)}(hhh]h)}(hThe second padh]hThe second pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM7hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj hM7hj}ubj8)}(h2``u64 *streams`` Streams bitmask on the first pad h](j>)}(h``u64 *streams``h]h)}(hj1h]h u64 *streams}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM8hj+ubjX)}(hhh]h)}(h Streams bitmask on the first padh]h Streams bitmask on the first pad}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM8hjGubah}(h]h ]h"]h$]h&]uh1jWhj+ubeh}(h]h ]h"]h$]h&]uh1j7hjFhM8hj}ubeh}(h]h ]h"]h$]h&]uh1j2hjaubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM:hjaubh)}(hXStreams on sink pads of a subdev are routed to source pads as expressed in the subdev state routing table. Stream numbers don't necessarily match on the sink and source side of a route. This function translates stream numbers on **pad0**, expressed as a bitmask in **streams**, to the corresponding streams on **pad1** using the routing table from the **state**. It returns the stream mask on **pad1**, and updates **streams** with the streams that have been found in the routing table.h](hStreams on sink pads of a subdev are routed to source pads as expressed in the subdev state routing table. Stream numbers don’t necessarily match on the sink and source side of a route. This function translates stream numbers on }(hjhhhNhNubj)}(h**pad0**h]hpad0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, expressed as a bitmask in }(hjhhhNhNubj)}(h **streams**h]hstreams}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh", to the corresponding streams on }(hjhhhNhNubj)}(h**pad1**h]hpad1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" using the routing table from the }(hjhhhNhNubj)}(h **state**h]hstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . It returns the stream mask on }(hjhhhNhNubj)}(h**pad1**h]hpad1}(hjңhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and updates }(hjhhhNhNubj)}(h **streams**h]hstreams}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh< with the streams that have been found in the routing table.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM:hjaubh)}(h@**pad0** and **pad1** must be a sink and a source, in any order.h](j)}(h**pad0**h]hpad0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**pad1**h]hpad1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+ must be a sink and a source, in any order.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMBhjaubh)}(h **Return**h]j)}(hj.h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMDhjaubh)}(hNThe bitmask of streams of **pad1** that are routed to **streams** on **pad0**.h](hThe bitmask of streams of }(hjDhhhNhNubj)}(h**pad1**h]hpad1}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh that are routed to }(hjDhhhNhNubj)}(h **streams**h]hstreams}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh on }(hjDhhhNhNubj)}(h**pad0**h]hpad0}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMDhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW(v4l2_subdev_routing_restriction (C enum)!c.v4l2_subdev_routing_restrictionhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_routing_restrictionh]jg)}(h$enum v4l2_subdev_routing_restrictionh](jm)}(hjLh]henum}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMIubj)}(hv4l2_subdev_routing_restrictionh]j)}(hjh]hv4l2_subdev_routing_restriction}(hjɤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŤubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMIubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMIhjhhubj)}(hhh]h)}(h'Subdevice internal routing restrictionsh]h'Subdevice internal routing restrictions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMIubeh}(h]h ](henumeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX**Constants** ``V4L2_SUBDEV_ROUTING_NO_1_TO_N`` an input stream shall not be routed to multiple output streams (stream duplication) ``V4L2_SUBDEV_ROUTING_NO_N_TO_1`` multiple input streams shall not be routed to the same output stream (stream merging) ``V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX`` all streams from a sink pad must be routed to a single source pad ``V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX`` all streams on a source pad must originate from a single sink pad ``V4L2_SUBDEV_ROUTING_NO_SINK_MULTIPLEXING`` sink pads shall not contain multiplexed streams ``V4L2_SUBDEV_ROUTING_NO_SOURCE_MULTIPLEXING`` source pads shall not contain multiplexed streams ``V4L2_SUBDEV_ROUTING_ONLY_1_TO_1`` only non-overlapping 1-to-1 stream routing is allowed (a combination of **V4L2_SUBDEV_ROUTING_NO_1_TO_N** and **V4L2_SUBDEV_ROUTING_NO_N_TO_1**) ``V4L2_SUBDEV_ROUTING_NO_STREAM_MIX`` all streams from a sink pad must be routed to a single source pad, and that source pad shall not get routes from any other sink pad (a combination of **V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX** and **V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX**) ``V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING`` no multiplexed streams allowed on either source or sink sides.h](h)}(h **Constants**h]j)}(hj h]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMNhjubj3)}(hhh](j8)}(hv``V4L2_SUBDEV_ROUTING_NO_1_TO_N`` an input stream shall not be routed to multiple output streams (stream duplication) h](j>)}(h!``V4L2_SUBDEV_ROUTING_NO_1_TO_N``h]h)}(hj,h]hV4L2_SUBDEV_ROUTING_NO_1_TO_N}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMRhj&ubjX)}(hhh]h)}(hSan input stream shall not be routed to multiple output streams (stream duplication)h]hSan input stream shall not be routed to multiple output streams (stream duplication)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMQhjBubah}(h]h ]h"]h$]h&]uh1jWhj&ubeh}(h]h ]h"]h$]h&]uh1j7hjAhMRhj#ubj8)}(hx``V4L2_SUBDEV_ROUTING_NO_N_TO_1`` multiple input streams shall not be routed to the same output stream (stream merging) h](j>)}(h!``V4L2_SUBDEV_ROUTING_NO_N_TO_1``h]h)}(hjfh]hV4L2_SUBDEV_ROUTING_NO_N_TO_1}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMVhj`ubjX)}(hhh]h)}(hUmultiple input streams shall not be routed to the same output stream (stream merging)h]hUmultiple input streams shall not be routed to the same output stream (stream merging)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMUhj|ubah}(h]h ]h"]h$]h&]uh1jWhj`ubeh}(h]h ]h"]h$]h&]uh1j7hj{hMVhj#ubj8)}(hm``V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX`` all streams from a sink pad must be routed to a single source pad h](j>)}(h*``V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX``h]h)}(hjh]h&V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMYhjubjX)}(hhh]h)}(hAall streams from a sink pad must be routed to a single source padh]hAall streams from a sink pad must be routed to a single source pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMYhj#ubj8)}(ho``V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX`` all streams on a source pad must originate from a single sink pad h](j>)}(h,``V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX``h]h)}(hj٥h]h(V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX}(hjۥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjץubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM\hjӥubjX)}(hhh]h)}(hAall streams on a source pad must originate from a single sink padh]hAall streams on a source pad must originate from a single sink pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jWhjӥubeh}(h]h ]h"]h$]h&]uh1j7hjhM\hj#ubj8)}(h]``V4L2_SUBDEV_ROUTING_NO_SINK_MULTIPLEXING`` sink pads shall not contain multiplexed streams h](j>)}(h,``V4L2_SUBDEV_ROUTING_NO_SINK_MULTIPLEXING``h]h)}(hjh]h(V4L2_SUBDEV_ROUTING_NO_SINK_MULTIPLEXING}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM_hj ubjX)}(hhh]h)}(h/sink pads shall not contain multiplexed streamsh]h/sink pads shall not contain multiplexed streams}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM_hj(ubah}(h]h ]h"]h$]h&]uh1jWhj ubeh}(h]h ]h"]h$]h&]uh1j7hj'hM_hj#ubj8)}(ha``V4L2_SUBDEV_ROUTING_NO_SOURCE_MULTIPLEXING`` source pads shall not contain multiplexed streams h](j>)}(h.``V4L2_SUBDEV_ROUTING_NO_SOURCE_MULTIPLEXING``h]h)}(hjKh]h*V4L2_SUBDEV_ROUTING_NO_SOURCE_MULTIPLEXING}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMbhjEubjX)}(hhh]h)}(h1source pads shall not contain multiplexed streamsh]h1source pads shall not contain multiplexed streams}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMbhjaubah}(h]h ]h"]h$]h&]uh1jWhjEubeh}(h]h ]h"]h$]h&]uh1j7hj`hMbhj#ubj8)}(h``V4L2_SUBDEV_ROUTING_ONLY_1_TO_1`` only non-overlapping 1-to-1 stream routing is allowed (a combination of **V4L2_SUBDEV_ROUTING_NO_1_TO_N** and **V4L2_SUBDEV_ROUTING_NO_N_TO_1**) h](j>)}(h#``V4L2_SUBDEV_ROUTING_ONLY_1_TO_1``h]h)}(hjh]hV4L2_SUBDEV_ROUTING_ONLY_1_TO_1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMfhj~ubjX)}(hhh]h)}(honly non-overlapping 1-to-1 stream routing is allowed (a combination of **V4L2_SUBDEV_ROUTING_NO_1_TO_N** and **V4L2_SUBDEV_ROUTING_NO_N_TO_1**)h](hHonly non-overlapping 1-to-1 stream routing is allowed (a combination of }(hjhhhNhNubj)}(h!**V4L2_SUBDEV_ROUTING_NO_1_TO_N**h]hV4L2_SUBDEV_ROUTING_NO_1_TO_N}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h!**V4L2_SUBDEV_ROUTING_NO_N_TO_1**h]hV4L2_SUBDEV_ROUTING_NO_N_TO_1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMehjubah}(h]h ]h"]h$]h&]uh1jWhj~ubeh}(h]h ]h"]h$]h&]uh1j7hjhMfhj#ubj8)}(hX``V4L2_SUBDEV_ROUTING_NO_STREAM_MIX`` all streams from a sink pad must be routed to a single source pad, and that source pad shall not get routes from any other sink pad (a combination of **V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX** and **V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX**) h](j>)}(h%``V4L2_SUBDEV_ROUTING_NO_STREAM_MIX``h]h)}(hjh]h!V4L2_SUBDEV_ROUTING_NO_STREAM_MIX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMlhjܦubjX)}(hhh]h)}(hall streams from a sink pad must be routed to a single source pad, and that source pad shall not get routes from any other sink pad (a combination of **V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX** and **V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX**)h](hall streams from a sink pad must be routed to a single source pad, and that source pad shall not get routes from any other sink pad (a combination of }(hjhhhNhNubj)}(h***V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX**h]h&V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h,**V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX**h]h(V4L2_SUBDEV_ROUTING_NO_SOURCE_STREAM_MIX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMihjubah}(h]h ]h"]h$]h&]uh1jWhjܦubeh}(h]h ]h"]h$]h&]uh1j7hjhMlhj#ubj8)}(hf``V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING`` no multiplexed streams allowed on either source or sink sides.h](j>)}(h'``V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING``h]h)}(hj@h]h#V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMnhj:ubjX)}(hhh]h)}(h>no multiplexed streams allowed on either source or sink sides.h]h>no multiplexed streams allowed on either source or sink sides.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMohjVubah}(h]h ]h"]h$]h&]uh1jWhj:ubeh}(h]h ]h"]h$]h&]uh1j7hjUhMnhj#ubeh}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW)v4l2_subdev_routing_validate (C function)c.v4l2_subdev_routing_validatehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hint v4l2_subdev_routing_validate (struct v4l2_subdev *sd, const struct v4l2_subdev_krouting *routing, enum v4l2_subdev_routing_restriction disallow)h]jg)}(hint v4l2_subdev_routing_validate(struct v4l2_subdev *sd, const struct v4l2_subdev_krouting *routing, enum v4l2_subdev_routing_restriction disallow)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMubj)}(hv4l2_subdev_routing_validateh]j)}(hv4l2_subdev_routing_validateh]hv4l2_subdev_routing_validate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubjyk)}(hs(struct v4l2_subdev *sd, const struct v4l2_subdev_krouting *routing, enum v4l2_subdev_routing_restriction disallow)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjקhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӧubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjӧubh)}(hhh]j)}(h( v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_routing_validateasbuh1hhjӧubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjӧubjk)}(hjkh]h*}(hj#hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjӧubj)}(hsdh]hsd}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӧubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjϧubjk)}(h*const struct v4l2_subdev_krouting *routingh](jm)}(hjmh]hconst}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjEubjm)}(hjph]hstruct}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjEubh)}(hhh]j)}(hv4l2_subdev_kroutingh]hv4l2_subdev_krouting}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_routing_validateasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjEubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjEubj)}(hroutingh]hrouting}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjϧubjk)}(h-enum v4l2_subdev_routing_restriction disallowh](jm)}(hjLh]henum}(hjԨhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjШubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjШubh)}(hhh]j)}(hv4l2_subdev_routing_restrictionh]hv4l2_subdev_routing_restriction}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_routing_validateasbuh1hhjШubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjШubj)}(hdisallowh]hdisallow}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjШubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjϧubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(h1Verify that routes comply with driver constraintsh]h1Verify that routes comply with driver constraints}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMxhjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj`jj`jjjuh1j[hhhj9hNhNubj)}(hX[**Parameters** ``struct v4l2_subdev *sd`` The subdevice ``const struct v4l2_subdev_krouting *routing`` Routing to verify ``enum v4l2_subdev_routing_restriction disallow`` Restrictions on routes **Description** This verifies that the given routing complies with the **disallow** constraints. Returns 0 on success, error value otherwise.h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM|hjdubj3)}(hhh](j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMzhjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMzhjubj8)}(hA``const struct v4l2_subdev_krouting *routing`` Routing to verify h](j>)}(h.``const struct v4l2_subdev_krouting *routing``h]h)}(hj©h]h*const struct v4l2_subdev_krouting *routing}(hjĩhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM{hjubjX)}(hhh]h)}(hRouting to verifyh]hRouting to verify}(hj۩hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjשhM{hjةubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjשhM{hjubj8)}(hI``enum v4l2_subdev_routing_restriction disallow`` Restrictions on routes h](j>)}(h1``enum v4l2_subdev_routing_restriction disallow``h]h)}(hjh]h-enum v4l2_subdev_routing_restriction disallow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM|hjubjX)}(hhh]h)}(hRestrictions on routesh]hRestrictions on routes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM|hjubeh}(h]h ]h"]h$]h&]uh1j2hjdubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM~hjdubh)}(hPThis verifies that the given routing complies with the **disallow** constraints.h](h7This verifies that the given routing complies with the }(hjLhhhNhNubj)}(h **disallow**h]hdisallow}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh constraints.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM~hjdubh)}(h,Returns 0 on success, error value otherwise.h]h,Returns 0 on success, error value otherwise.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW'v4l2_subdev_enable_streams (C function)c.v4l2_subdev_enable_streamshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hRint v4l2_subdev_enable_streams (struct v4l2_subdev *sd, u32 pad, u64 streams_mask)h]jg)}(hQint v4l2_subdev_enable_streams(struct v4l2_subdev *sd, u32 pad, u64 streams_mask)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMubj)}(hv4l2_subdev_enable_streamsh]j)}(hv4l2_subdev_enable_streamsh]hv4l2_subdev_enable_streams}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubjyk)}(h3(struct v4l2_subdev *sd, u32 pad, u64 streams_mask)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hj٪hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjժubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjժubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_enable_streamsasbuh1hhjժubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjժubjk)}(hjkh]h*}(hj%hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjժubj)}(hsdh]hsd}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjժubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjѪubjk)}(hu32 padh](h)}(hhh]j)}(hu32h]hu32}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjPmodnameN classnameNjj)}j]jc.v4l2_subdev_enable_streamsasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjGubj)}(hpadh]hpad}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjѪubjk)}(hu64 streams_maskh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_enable_streamsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubj)}(h streams_maskh]h streams_mask}(hj«hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjѪubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(hEnable streams on a padh]hEnable streams on a pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice ``u32 pad`` The pad ``u64 streams_mask`` Bitmask of streams to enable **Description** This function enables streams on a source **pad** of a subdevice. The pad is identified by its index, while the streams are identified by the **streams_mask** bitmask. This allows enabling multiple streams on a pad at once. Enabling a stream that is already enabled isn't allowed. If **streams_mask** contains an already enabled stream, this function returns -EALREADY without performing any operation. Per-stream enable is only available for subdevs that implement the .enable_streams() and .disable_streams() operations. For other subdevs, this function implements a best-effort compatibility by calling the .s_stream() operation, limited to subdevs that have a single source pad. Drivers that are not stream-aware shall set **streams_mask** to BIT_ULL(0). **Return** * 0: Success * -EALREADY: One of the streams in streams_mask is already enabled * -EINVAL: The pad index is invalid, or doesn't correspond to a source pad * -EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source padsh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hj-h]hstruct v4l2_subdev *sd}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj'ubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jWhj'ubeh}(h]h ]h"]h$]h&]uh1j7hjBhMhj$ubj8)}(h``u32 pad`` The pad h](j>)}(h ``u32 pad``h]h)}(hjfh]hu32 pad}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubjX)}(hhh]h)}(hThe padh]hThe pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jWhj`ubeh}(h]h ]h"]h$]h&]uh1j7hj{hMhj$ubj8)}(h2``u64 streams_mask`` Bitmask of streams to enable h](j>)}(h``u64 streams_mask``h]h)}(hjh]hu64 streams_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hBitmask of streams to enableh]hBitmask of streams to enable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj$ubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjڬh]h Description}(hjܬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjجubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hThis function enables streams on a source **pad** of a subdevice. The pad is identified by its index, while the streams are identified by the **streams_mask** bitmask. This allows enabling multiple streams on a pad at once.h](h*This function enables streams on a source }(hjhhhNhNubj)}(h**pad**h]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh] of a subdevice. The pad is identified by its index, while the streams are identified by the }(hjhhhNhNubj)}(h**streams_mask**h]h streams_mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA bitmask. This allows enabling multiple streams on a pad at once.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hEnabling a stream that is already enabled isn't allowed. If **streams_mask** contains an already enabled stream, this function returns -EALREADY without performing any operation.h](h>Enabling a stream that is already enabled isn’t allowed. If }(hj#hhhNhNubj)}(h**streams_mask**h]h streams_mask}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubhf contains an already enabled stream, this function returns -EALREADY without performing any operation.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hXPer-stream enable is only available for subdevs that implement the .enable_streams() and .disable_streams() operations. For other subdevs, this function implements a best-effort compatibility by calling the .s_stream() operation, limited to subdevs that have a single source pad.h]hXPer-stream enable is only available for subdevs that implement the .enable_streams() and .disable_streams() operations. For other subdevs, this function implements a best-effort compatibility by calling the .s_stream() operation, limited to subdevs that have a single source pad.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hKDrivers that are not stream-aware shall set **streams_mask** to BIT_ULL(0).h](h,Drivers that are not stream-aware shall set }(hjShhhNhNubj)}(h**streams_mask**h]h streams_mask}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh to BIT_ULL(0).}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh bullet_list)}(hhh](h list_item)}(h 0: Successh]h)}(hjh]h 0: Success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h@-EALREADY: One of the streams in streams_mask is already enabledh]h)}(hjh]h@-EALREADY: One of the streams in streams_mask is already enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hH-EINVAL: The pad index is invalid, or doesn't correspond to a source padh]h)}(hjŭh]hJ-EINVAL: The pad index is invalid, or doesn’t correspond to a source pad}(hjǭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjíubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hw-EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source padsh]h)}(hw-EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source padsh]hw-EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source pads}(hj߭hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjۭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bulletjkuh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW(v4l2_subdev_disable_streams (C function)c.v4l2_subdev_disable_streamshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hSint v4l2_subdev_disable_streams (struct v4l2_subdev *sd, u32 pad, u64 streams_mask)h]jg)}(hRint v4l2_subdev_disable_streams(struct v4l2_subdev *sd, u32 pad, u64 streams_mask)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhj)hMubj)}(hv4l2_subdev_disable_streamsh]j)}(hv4l2_subdev_disable_streamsh]hv4l2_subdev_disable_streams}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj)hMubjyk)}(h3(struct v4l2_subdev *sd, u32 pad, u64 streams_mask)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjTubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjxmodnameN classnameNjj)}j]jk)}jkj>sbc.v4l2_subdev_disable_streamsasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjTubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjTubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjPubjk)}(hu32 padh](h)}(hhh]j)}(hu32h]hu32}(hjͮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʮubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjϮmodnameN classnameNjj)}j]jc.v4l2_subdev_disable_streamsasbuh1hhjƮubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjƮubj)}(hpadh]hpad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƮubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjPubjk)}(hu64 streams_maskh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_disable_streamsasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubj)}(h streams_maskh]h streams_mask}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjPubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhj)hMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhj)hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hj)hMhjhhubj)}(hhh]h)}(hDisable streams on a padh]hDisable streams on a pad}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice ``u32 pad`` The pad ``u64 streams_mask`` Bitmask of streams to disable **Description** This function disables streams on a source **pad** of a subdevice. The pad is identified by its index, while the streams are identified by the **streams_mask** bitmask. This allows disabling multiple streams on a pad at once. Disabling a streams that is not enabled isn't allowed. If **streams_mask** contains a disabled stream, this function returns -EALREADY without performing any operation. Per-stream disable is only available for subdevs that implement the .enable_streams() and .disable_streams() operations. For other subdevs, this function implements a best-effort compatibility by calling the .s_stream() operation, limited to subdevs that have a single source pad. Drivers that are not stream-aware shall set **streams_mask** to BIT_ULL(0). **Return** * 0: Success * -EALREADY: One of the streams in streams_mask is not enabled * -EINVAL: The pad index is invalid, or doesn't correspond to a source pad * -EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source padsh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjůhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj¯ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h``u32 pad`` The pad h](j>)}(h ``u32 pad``h]h)}(hjh]hu32 pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj߯ubjX)}(hhh]h)}(hThe padh]hThe pad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhj߯ubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h3``u64 streams_mask`` Bitmask of streams to disable h](j>)}(h``u64 streams_mask``h]h)}(hjh]hu64 streams_mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hBitmask of streams to disableh]hBitmask of streams to disable}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj3hMhjubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hThis function disables streams on a source **pad** of a subdevice. The pad is identified by its index, while the streams are identified by the **streams_mask** bitmask. This allows disabling multiple streams on a pad at once.h](h+This function disables streams on a source }(hjohhhNhNubj)}(h**pad**h]hpad}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh] of a subdevice. The pad is identified by its index, while the streams are identified by the }(hjohhhNhNubj)}(h**streams_mask**h]h streams_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhB bitmask. This allows disabling multiple streams on a pad at once.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hDisabling a streams that is not enabled isn't allowed. If **streams_mask** contains a disabled stream, this function returns -EALREADY without performing any operation.h](hubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hw-EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source padsh]h)}(hw-EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source padsh]hw-EOPNOTSUPP: Falling back to the legacy .s_stream() operation is impossible because the subdev has multiple source pads}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjVubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjkuh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW(v4l2_subdev_s_stream_helper (C function)c.v4l2_subdev_s_stream_helperhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hDint v4l2_subdev_s_stream_helper (struct v4l2_subdev *sd, int enable)h]jg)}(hCint v4l2_subdev_s_stream_helper(struct v4l2_subdev *sd, int enable)h](jAk)}(hinth]hint}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMubj)}(hv4l2_subdev_s_stream_helperh]j)}(hv4l2_subdev_s_stream_helperh]hv4l2_subdev_s_stream_helper}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubjyk)}(h$(struct v4l2_subdev *sd, int enable)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjұhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjαubj)}(h h]h }(hj߱hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjαubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_s_stream_helperasbuh1hhjαubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjαubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjαubj)}(hsdh]hsd}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjαubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjʱubjk)}(h int enableh](jAk)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj@ubj)}(henableh]henable}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjʱubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(hZHelper to implement the subdev s_stream operation using enable_streams and disable_streamsh]hZHelper to implement the subdev s_stream operation using enable_streams and disable_streams}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(hXB**Parameters** ``struct v4l2_subdev *sd`` The subdevice ``int enable`` Enable or disable streaming **Description** Subdevice drivers that implement the streams-aware :c:type:`v4l2_subdev_pad_ops.enable_streams ` and :c:type:`v4l2_subdev_pad_ops.disable_streams ` operations can use this helper to implement the legacy :c:type:`v4l2_subdev_video_ops.s_stream ` operation. This helper can only be used by subdevs that have a single source pad. **Return** 0 on success, or a negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hj˲h]hstruct v4l2_subdev *sd}(hjͲhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɲubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjŲubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjŲubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj²ubj8)}(h+``int enable`` Enable or disable streaming h](j>)}(h``int enable``h]h)}(hjh]h int enable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hEnable or disable streamingh]hEnable or disable streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj²ubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hX@Subdevice drivers that implement the streams-aware :c:type:`v4l2_subdev_pad_ops.enable_streams ` and :c:type:`v4l2_subdev_pad_ops.disable_streams ` operations can use this helper to implement the legacy :c:type:`v4l2_subdev_video_ops.s_stream ` operation.h](h3Subdevice drivers that implement the streams-aware }(hjUhhhNhNubh)}(hB:c:type:`v4l2_subdev_pad_ops.enable_streams `h]h)}(hj_h]h"v4l2_subdev_pad_ops.enable_streams}(hjahhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pad_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjUubh and }(hjUhhhNhNubh)}(hC:c:type:`v4l2_subdev_pad_ops.disable_streams `h]h)}(hjh]h#v4l2_subdev_pad_ops.disable_streams}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_pad_opsuh1hhj|hMhjUubh8 operations can use this helper to implement the legacy }(hjUhhhNhNubh)}(h@:c:type:`v4l2_subdev_video_ops.s_stream `h]h)}(hjh]hv4l2_subdev_video_ops.s_stream}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_video_opsuh1hhj|hMhjUubh operation.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMhjubh)}(hFThis helper can only be used by subdevs that have a single source pad.h]hFThis helper can only be used by subdevs that have a single source pad.}(hjͳhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h **Return**h]j)}(hj޳h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܳubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW#v4l2_subdev_lock_state (C function)c.v4l2_subdev_lock_statehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h=void v4l2_subdev_lock_state (struct v4l2_subdev_state *state)h]jg)}(h)}(h#``struct v4l2_subdev_state *state``h]h)}(hj$h]hstruct v4l2_subdev_state *state}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hThe subdevice stateh]hThe subdevice state}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj9hMhjubah}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hLocks the given subdev state.h]hLocks the given subdev state.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hEThe state must be unlocked with v4l2_subdev_unlock_state() after use.h]hEThe state must be unlocked with v4l2_subdev_unlock_state() after use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%v4l2_subdev_unlock_state (C function)c.v4l2_subdev_unlock_statehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h?void v4l2_subdev_unlock_state (struct v4l2_subdev_state *state)h]jg)}(h>void v4l2_subdev_unlock_state(struct v4l2_subdev_state *state)h](jAk)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjµhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhjhMubj)}(hv4l2_subdev_unlock_stateh]j)}(hv4l2_subdev_unlock_stateh]hv4l2_subdev_unlock_state}(hjԵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjеubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubjyk)}(h!(struct v4l2_subdev_state *state)h]jk)}(hstruct v4l2_subdev_state *stateh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjֵsbc.v4l2_subdev_unlock_stateasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hj<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstateh]hstate}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubah}(h]h ]h"]h$]h&]hhuh1jxkhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(hUnlocks the subdev stateh]hUnlocks the subdev state}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubj)}(h{**Parameters** ``struct v4l2_subdev_state *state`` The subdevice state **Description** Unlocks the given subdev state.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh]j8)}(h8``struct v4l2_subdev_state *state`` The subdevice state h](j>)}(h#``struct v4l2_subdev_state *state``h]h)}(hjh]hstruct v4l2_subdev_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hThe subdevice stateh]hThe subdevice state}(hjͶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɶhMhjʶubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjɶhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hUnlocks the given subdev state.h]hUnlocks the given subdev state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_lock_states (C function)c.v4l2_subdev_lock_stateshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(havoid v4l2_subdev_lock_states (struct v4l2_subdev_state *state1, struct v4l2_subdev_state *state2)h]jg)}(h`void v4l2_subdev_lock_states(struct v4l2_subdev_state *state1, struct v4l2_subdev_state *state2)h](jAk)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj0hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj0hhhjBhMubj)}(hv4l2_subdev_lock_statesh]j)}(hv4l2_subdev_lock_statesh]hv4l2_subdev_lock_states}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]hhuh1jhj0hhhjBhMubjyk)}(hD(struct v4l2_subdev_state *state1, struct v4l2_subdev_state *state2)h](jk)}(h struct v4l2_subdev_state *state1h](jm)}(hjph]hstruct}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjmubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjWsbc.v4l2_subdev_lock_statesasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjmubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjmubj)}(hstate1h]hstate1}(hjʷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjiubjk)}(h struct v4l2_subdev_state *state2h](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj߷ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj߷ubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_lock_statesasbuh1hhj߷ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj߷ubjk)}(hjkh]h*}(hj-hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj߷ubj)}(hstate2h]hstate2}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߷ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjiubeh}(h]h ]h"]h$]h&]hhuh1jxkhj0hhhjBhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1j`hjBhMhj)hhubj)}(hhh]h)}(hLock two sub-device statesh]hLock two sub-device states}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjahhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj|jj|jjjuh1j[hhhj9hNhNubj)}(hX **Parameters** ``struct v4l2_subdev_state *state1`` One subdevice state ``struct v4l2_subdev_state *state2`` The other subdevice state **Description** Locks the state of two sub-devices. The states must be unlocked with v4l2_subdev_unlock_states() after use. This differs from calling v4l2_subdev_lock_state() on both states so that if the states share the same lock, the lock is acquired only once (so no deadlock occurs). The caller is responsible for ensuring the locks will always be acquired in the same order.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(h9``struct v4l2_subdev_state *state1`` One subdevice state h](j>)}(h$``struct v4l2_subdev_state *state1``h]h)}(hjh]h struct v4l2_subdev_state *state1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hOne subdevice stateh]hOne subdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h?``struct v4l2_subdev_state *state2`` The other subdevice state h](j>)}(h$``struct v4l2_subdev_state *state2``h]h)}(hj޸h]h struct v4l2_subdev_state *state2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܸubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjظubjX)}(hhh]h)}(hThe other subdevice stateh]hThe other subdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjظubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(h#Locks the state of two sub-devices.h]h#Locks the state of two sub-devices.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hGThe states must be unlocked with v4l2_subdev_unlock_states() after use.h]hGThe states must be unlocked with v4l2_subdev_unlock_states() after use.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh)}(hXThis differs from calling v4l2_subdev_lock_state() on both states so that if the states share the same lock, the lock is acquired only once (so no deadlock occurs). The caller is responsible for ensuring the locks will always be acquired in the same order.h]hXThis differs from calling v4l2_subdev_lock_state() on both states so that if the states share the same lock, the lock is acquired only once (so no deadlock occurs). The caller is responsible for ensuring the locks will always be acquired in the same order.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW&v4l2_subdev_unlock_states (C function)c.v4l2_subdev_unlock_stateshNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hcvoid v4l2_subdev_unlock_states (struct v4l2_subdev_state *state1, struct v4l2_subdev_state *state2)h]jg)}(hbvoid v4l2_subdev_unlock_states(struct v4l2_subdev_state *state1, struct v4l2_subdev_state *state2)h](jAk)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjxhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjxhhhjhMubj)}(hv4l2_subdev_unlock_statesh]j)}(hv4l2_subdev_unlock_statesh]hv4l2_subdev_unlock_states}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjxhhhjhMubjyk)}(hD(struct v4l2_subdev_state *state1, struct v4l2_subdev_state *state2)h](jk)}(h struct v4l2_subdev_state *state1h](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjƹhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hj׹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԹubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjٹmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_unlock_statesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hstate1h]hstate1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubjk)}(h struct v4l2_subdev_state *state2h](jm)}(hjph]hstruct}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj'ubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjKmodnameN classnameNjj)}j]jc.v4l2_subdev_unlock_statesasbuh1hhj'ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj'ubjk)}(hjkh]h*}(hjuhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj'ubj)}(hstate2h]hstate2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubeh}(h]h ]h"]h$]h&]hhuh1jxkhjxhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjqhhubj)}(hhh]h)}(hUnlock two sub-device statesh]hUnlock two sub-device states}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjĺjjĺjjjuh1j[hhhj9hNhNubj)}(hXT**Parameters** ``struct v4l2_subdev_state *state1`` One subdevice state ``struct v4l2_subdev_state *state2`` The other subdevice state **Description** Unlocks the state of two sub-devices. This differs from calling v4l2_subdev_unlock_state() on both states so that if the states share the same lock, the lock is released only once.h](h)}(h**Parameters**h]j)}(hjκh]h Parameters}(hjкhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̺ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjȺubj3)}(hhh](j8)}(h9``struct v4l2_subdev_state *state1`` One subdevice state h](j>)}(h$``struct v4l2_subdev_state *state1``h]h)}(hjh]h struct v4l2_subdev_state *state1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hjubjX)}(hhh]h)}(hOne subdevice stateh]hOne subdevice state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM hjubj8)}(h?``struct v4l2_subdev_state *state2`` The other subdevice state h](j>)}(h$``struct v4l2_subdev_state *state2``h]h)}(hj&h]h struct v4l2_subdev_state *state2}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj ubjX)}(hhh]h)}(hThe other subdevice stateh]hThe other subdevice state}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM hj<ubah}(h]h ]h"]h$]h&]uh1jWhj ubeh}(h]h ]h"]h$]h&]uh1j7hj;hM hjubeh}(h]h ]h"]h$]h&]uh1j2hjȺubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjȺubh)}(h%Unlocks the state of two sub-devices.h]h%Unlocks the state of two sub-devices.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjȺubh)}(hThis differs from calling v4l2_subdev_unlock_state() on both states so that if the states share the same lock, the lock is released only once.h]hThis differs from calling v4l2_subdev_unlock_state() on both states so that if the states share the same lock, the lock is released only once.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjȺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW2v4l2_subdev_get_unlocked_active_state (C function)'c.v4l2_subdev_get_unlocked_active_statehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hYstruct v4l2_subdev_state * v4l2_subdev_get_unlocked_active_state (struct v4l2_subdev *sd)h]jg)}(hWstruct v4l2_subdev_state *v4l2_subdev_get_unlocked_active_state(struct v4l2_subdev *sd)h](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM'ubj)}(h h]h }(hjûhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhj»hM'ubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjԻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѻubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjֻmodnameN classnameNjj)}j]jk)}jk%v4l2_subdev_get_unlocked_active_statesb'c.v4l2_subdev_get_unlocked_active_stateasbuh1hhjhhhj»hM'ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhj»hM'ubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjhhhj»hM'ubj)}(h%v4l2_subdev_get_unlocked_active_stateh]j)}(hjh]h%v4l2_subdev_get_unlocked_active_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj»hM'ubjyk)}(h(struct v4l2_subdev *sd)h]jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj+ubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjOmodnameN classnameNjj)}j]j'c.v4l2_subdev_get_unlocked_active_stateasbuh1hhj+ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj+ubjk)}(hjkh]h*}(hjyhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj+ubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khj'ubah}(h]h ]h"]h$]h&]hhuh1jxkhjhhhj»hM'ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhj»hM'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hj»hM'hjhhubj)}(hhh]h)}(h>Checks that the active subdev state is unlocked and returns ith]h>Checks that the active subdev state is unlocked and returns it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj»hM'ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjȼjjȼjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice **Description** Returns the active state for the subdevice, or NULL if the subdev does not support active state. If the state is not NULL, calls lockdep_assert_not_held() to issue a warning if the state is locked. This function is to be used e.g. when getting the active state for the sole purpose of passing it forward, without accessing the state fields.h](h)}(h**Parameters**h]j)}(hjҼh]h Parameters}(hjԼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjмubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj̼ubj3)}(hhh]j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubah}(h]h ]h"]h$]h&]uh1j2hj̼ubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj̼ubh)}(hReturns the active state for the subdevice, or NULL if the subdev does not support active state. If the state is not NULL, calls lockdep_assert_not_held() to issue a warning if the state is locked.h]hReturns the active state for the subdevice, or NULL if the subdev does not support active state. If the state is not NULL, calls lockdep_assert_not_held() to issue a warning if the state is locked.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM hj̼ubh)}(hThis function is to be used e.g. when getting the active state for the sole purpose of passing it forward, without accessing the state fields.h]hThis function is to be used e.g. when getting the active state for the sole purpose of passing it forward, without accessing the state fields.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM$hj̼ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW0v4l2_subdev_get_locked_active_state (C function)%c.v4l2_subdev_get_locked_active_statehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hWstruct v4l2_subdev_state * v4l2_subdev_get_locked_active_state (struct v4l2_subdev *sd)h]jg)}(hUstruct v4l2_subdev_state *v4l2_subdev_get_locked_active_state(struct v4l2_subdev *sd)h](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM<ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj|hhhjhM<ubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jk#v4l2_subdev_get_locked_active_statesb%c.v4l2_subdev_get_locked_active_stateasbuh1hhj|hhhjhM<ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj|hhhjhM<ubjk)}(hjkh]h*}(hjνhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhj|hhhjhM<ubj)}(h#v4l2_subdev_get_locked_active_stateh]j)}(hjh]h#v4l2_subdev_get_locked_active_state}(hj߽hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۽ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj|hhhjhM<ubjyk)}(h(struct v4l2_subdev *sd)h]jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j%c.v4l2_subdev_get_locked_active_stateasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjDhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubah}(h]h ]h"]h$]h&]hhuh1jxkhj|hhhjhM<ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjxhhhjhM<ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j`hjhM<hjuhhubj)}(hhh]h)}(h)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM3hjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjվhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѾhM3hjҾubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjѾhM3hjubah}(h]h ]h"]h$]h&]uh1j2hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM5hjubh)}(hReturns the active state for the subdevice, or NULL if the subdev does not support active state. If the state is not NULL, calls lockdep_assert_held() to issue a warning if the state is not locked.h]hReturns the active state for the subdevice, or NULL if the subdev does not support active state. If the state is not NULL, calls lockdep_assert_held() to issue a warning if the state is not locked.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM5hjubh)}(hZThis function is to be used when the caller knows that the active state is already locked.h]hZThis function is to be used when the caller knows that the active state is already locked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW2v4l2_subdev_lock_and_get_active_state (C function)'c.v4l2_subdev_lock_and_get_active_statehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hYstruct v4l2_subdev_state * v4l2_subdev_lock_and_get_active_state (struct v4l2_subdev *sd)h]jg)}(hWstruct v4l2_subdev_state *v4l2_subdev_lock_and_get_active_state(struct v4l2_subdev *sd)h](jm)}(hjph]hstruct}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMNubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjGhhhjXhMNubh)}(hhh]j)}(hv4l2_subdev_stateh]hv4l2_subdev_state}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjlmodnameN classnameNjj)}j]jk)}jk%v4l2_subdev_lock_and_get_active_statesb'c.v4l2_subdev_lock_and_get_active_stateasbuh1hhjGhhhjXhMNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjGhhhjXhMNubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjGhhhjXhMNubj)}(h%v4l2_subdev_lock_and_get_active_stateh]j)}(hjh]h%v4l2_subdev_lock_and_get_active_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjGhhhjXhMNubjyk)}(h(struct v4l2_subdev *sd)h]jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjſhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjҿhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]j'c.v4l2_subdev_lock_and_get_active_stateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubah}(h]h ]h"]h$]h&]hhuh1jxkhjGhhhjXhMNubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjChhhjXhMNubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1j`hjXhMNhj@hhubj)}(hhh]h)}(h;Locks and returns the active subdev state for the subdeviceh]h;Locks and returns the active subdev state for the subdevice}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMEhjChhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjXhMNubeh}(h]h ](hfunctioneh"]h$]h&]jhjj^jj^jjjuh1j[hhhj9hNhNubj)}(h**Parameters** ``struct v4l2_subdev *sd`` The subdevice **Description** Returns the locked active state for the subdevice, or NULL if the subdev does not support active state. The state must be unlocked with v4l2_subdev_unlock_state() after use.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMIhjbubj3)}(hhh]j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMGhjubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMGhj~ubah}(h]h ]h"]h$]h&]uh1j2hjbubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMIhjbubh)}(hgReturns the locked active state for the subdevice, or NULL if the subdev does not support active state.h]hgReturns the locked active state for the subdevice, or NULL if the subdev does not support active state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMIhjbubh)}(hEThe state must be unlocked with v4l2_subdev_unlock_state() after use.h]hEThe state must be unlocked with v4l2_subdev_unlock_state() after use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMLhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_init (C function)c.v4l2_subdev_inithNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hQvoid v4l2_subdev_init (struct v4l2_subdev *sd, const struct v4l2_subdev_ops *ops)h]jg)}(hPvoid v4l2_subdev_init(struct v4l2_subdev *sd, const struct v4l2_subdev_ops *ops)h](jAk)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM\ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjhhhj$hM\ubj)}(hv4l2_subdev_inith]j)}(hv4l2_subdev_inith]hv4l2_subdev_init}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj$hM\ubjyk)}(h;(struct v4l2_subdev *sd, const struct v4l2_subdev_ops *ops)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjOubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjsmodnameN classnameNjj)}j]jk)}jkj9sbc.v4l2_subdev_initasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjOubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjOubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjKubjk)}(h!const struct v4l2_subdev_ops *opsh](jm)}(hjmh]hconst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(hv4l2_subdev_opsh]hv4l2_subdev_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hj*hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hopsh]hops}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjKubeh}(h]h ]h"]h$]h&]hhuh1jxkhjhhhj$hM\ubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhj$hM\ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j`hj$hM\hj hhubj)}(hhh]h)}(h!initializes the sub-device structh]h!initializes the sub-device struct}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMWhj^hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hM\ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjyjjyjjjuh1j[hhhj9hNhNubj)}(h**Parameters** ``struct v4l2_subdev *sd`` pointer to the :c:type:`struct v4l2_subdev ` to be initialized ``const struct v4l2_subdev_ops *ops`` pointer to :c:type:`struct v4l2_subdev_ops `.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM[hj}ubj3)}(hhh](j8)}(hg``struct v4l2_subdev *sd`` pointer to the :c:type:`struct v4l2_subdev ` to be initialized h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMYhjubjX)}(hhh]h)}(hKpointer to the :c:type:`struct v4l2_subdev ` to be initializedh](hpointer to the }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjh]hstruct v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjhMYhjubh to be initialized}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMYhjubj8)}(hd``const struct v4l2_subdev_ops *ops`` pointer to :c:type:`struct v4l2_subdev_ops `.h](j>)}(h%``const struct v4l2_subdev_ops *ops``h]h)}(hjh]h!const struct v4l2_subdev_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhM[hjubjX)}(hhh]h)}(h>pointer to :c:type:`struct v4l2_subdev_ops `.h](h pointer to }(hjhhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hj!h]hstruct v4l2_subdev_ops}(hj#hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMZhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hMZhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhM[hjubeh}(h]h ]h"]h$]h&]uh1j2hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_call (C macro)c.v4l2_subdev_callhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_callh]jg)}(hv4l2_subdev_callh]j)}(hv4l2_subdev_callh]j)}(hjuh]hv4l2_subdev_call}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjwhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMnubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjshhhjhMnubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1j`hjhMnhjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjhMnubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h(``v4l2_subdev_call (sd, o, f, args...)``h]h)}(hjh]h$v4l2_subdev_call (sd, o, f, args...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMphj9hhubj)}(h$call an operation of a v4l2_subdev. h]h)}(h#call an operation of a v4l2_subdev.h]h#call an operation of a v4l2_subdev.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMbhjubah}(h]h ]h"]h$]h&]uh1jhjhMbhj9hhubj)}(hX**Parameters** ``sd`` pointer to the :c:type:`struct v4l2_subdev ` ``o`` name of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions. ``f`` callback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `. ``args...`` arguments for **f**. **Example** err = v4l2_subdev_call(sd, video, s_std, norm);h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMfhjubj3)}(hhh](j8)}(hA``sd`` pointer to the :c:type:`struct v4l2_subdev ` h](j>)}(h``sd``h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMdhjubjX)}(hhh]h)}(h9pointer to the :c:type:`struct v4l2_subdev `h](hpointer to the }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hj(h]hstruct v4l2_subdev}(hj*hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjhMdhjubeh}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMdhjubj8)}(h``o`` name of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions. h](j>)}(h``o``h]h)}(hj]h]ho}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMfhjWubjX)}(hhh]h)}(hname of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions.h](hname of the element at }(hjvhhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hjh]hstruct v4l2_subdev_ops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMehjvubh that contains }(hjvhhhNhNubj)}(h**f**h]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh9. Each element there groups a set of callbacks functions.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMehjsubah}(h]h ]h"]h$]h&]uh1jWhjWubeh}(h]h ]h"]h$]h&]uh1j7hjrhMfhjubj8)}(h``f`` callback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `. h](j>)}(h``f``h]h)}(hjh]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMihjubjX)}(hhh]h)}(hcallback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `.h](hkcallback function to be called. The callback functions are defined in groups, according to each element at }(hjhhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hjh]hstruct v4l2_subdev_ops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMghjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMghjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMihjubj8)}(h!``args...`` arguments for **f**. h](j>)}(h ``args...``h]h)}(hj)h]hargs...}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMjhj#ubjX)}(hhh]h)}(harguments for **f**.h](harguments for }(hjBhhhNhNubj)}(h**f**h]hf}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hMjhj?ubah}(h]h ]h"]h$]h&]uh1jWhj#ubeh}(h]h ]h"]h$]h&]uh1j7hj>hMjhjubeh}(h]h ]h"]h$]h&]uh1j2hjubh)}(h **Example**h]j)}(hjvh]hExample}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMlhjubh)}(h/err = v4l2_subdev_call(sd, video, s_std, norm);h]h/err = v4l2_subdev_call(sd, video, s_std, norm);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW'v4l2_subdev_call_state_active (C macro)c.v4l2_subdev_call_state_activehNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_call_state_activeh]jg)}(hv4l2_subdev_call_state_activeh]j)}(hv4l2_subdev_call_state_activeh]j)}(hjh]hv4l2_subdev_call_state_active}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h5``v4l2_subdev_call_state_active (sd, o, f, args...)``h]h)}(hjh]h1v4l2_subdev_call_state_active (sd, o, f, args...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(hjcall an operation of a v4l2_subdev which takes state as a parameter, passing the subdev its active state. h]h)}(hicall an operation of a v4l2_subdev which takes state as a parameter, passing the subdev its active state.h]hicall an operation of a v4l2_subdev which takes state as a parameter, passing the subdev its active state.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj9hhubj)}(hX**Parameters** ``sd`` pointer to the :c:type:`struct v4l2_subdev ` ``o`` name of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions. ``f`` callback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `. ``args...`` arguments for **f**. **Description** This is similar to v4l2_subdev_call(), except that this version can only be used for ops that take a subdev state as a parameter. The macro will get the active state, lock it before calling the op and unlock it after the call.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj ubj3)}(hhh](j8)}(hA``sd`` pointer to the :c:type:`struct v4l2_subdev ` h](j>)}(h``sd``h]h)}(hjEh]hsd}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj?ubjX)}(hhh]h)}(h9pointer to the :c:type:`struct v4l2_subdev `h](hpointer to the }(hj^hhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjhh]hstruct v4l2_subdev}(hjjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjZhMhj^ubeh}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jWhj?ubeh}(h]h ]h"]h$]h&]uh1j7hjZhMhj<ubj8)}(h``o`` name of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions. h](j>)}(h``o``h]h)}(hjh]ho}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hname of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions.h](hname of the element at }(hjhhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hjh]hstruct v4l2_subdev_ops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh that contains }(hjhhhNhNubj)}(h**f**h]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9. Each element there groups a set of callbacks functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj<ubj8)}(h``f`` callback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `. h](j>)}(h``f``h]h)}(hj h]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hcallback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `.h](hkcallback function to be called. The callback functions are defined in groups, according to each element at }(hj%hhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hj/h]hstruct v4l2_subdev_ops}(hj1hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhMhj"ubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hj!hMhj<ubj8)}(h!``args...`` arguments for **f**. h](j>)}(h ``args...``h]h)}(hjih]hargs...}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjcubjX)}(hhh]h)}(harguments for **f**.h](harguments for }(hjhhhNhNubj)}(h**f**h]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jWhjcubeh}(h]h ]h"]h$]h&]uh1j7hj~hMhj<ubeh}(h]h ]h"]h$]h&]uh1j2hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj ubh)}(hThis is similar to v4l2_subdev_call(), except that this version can only be used for ops that take a subdev state as a parameter. The macro will get the active state, lock it before calling the op and unlock it after the call.h]hThis is similar to v4l2_subdev_call(), except that this version can only be used for ops that take a subdev state as a parameter. The macro will get the active state, lock it before calling the op and unlock it after the call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW$v4l2_subdev_call_state_try (C macro)c.v4l2_subdev_call_state_tryhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_call_state_tryh]jg)}(hv4l2_subdev_call_state_tryh]j)}(hv4l2_subdev_call_state_tryh]j)}(hjh]hv4l2_subdev_call_state_try}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hmacroeh"]h$]h&]jhjj+jj+jjjuh1j[hhhj9hNhNubh)}(h2``v4l2_subdev_call_state_try (sd, o, f, args...)``h]h)}(hj1h]h.v4l2_subdev_call_state_try (sd, o, f, args...)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(hucall an operation of a v4l2_subdev which takes state as a parameter, passing the subdev a newly allocated try state. h]h)}(htcall an operation of a v4l2_subdev which takes state as a parameter, passing the subdev a newly allocated try state.h]htcall an operation of a v4l2_subdev which takes state as a parameter, passing the subdev a newly allocated try state.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjGubah}(h]h ]h"]h$]h&]uh1jhjYhMhj9hhubj)}(hX**Parameters** ``sd`` pointer to the :c:type:`struct v4l2_subdev ` ``o`` name of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions. ``f`` callback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `. ``args...`` arguments for **f**. **Description** This is similar to v4l2_subdev_call_state_active(), except that as this version allocates a new state, this is only usable for V4L2_SUBDEV_FORMAT_TRY use cases. **Note** only legacy non-MC drivers may need this macro.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubj3)}(hhh](j8)}(hA``sd`` pointer to the :c:type:`struct v4l2_subdev ` h](j>)}(h``sd``h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h9pointer to the :c:type:`struct v4l2_subdev `h](hpointer to the }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjh]hstruct v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj|ubj8)}(h``o`` name of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions. h](j>)}(h``o``h]h)}(hjh]ho}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hname of the element at :c:type:`struct v4l2_subdev_ops ` that contains **f**. Each element there groups a set of callbacks functions.h](hname of the element at }(hjhhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hjh]hstruct v4l2_subdev_ops}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubh that contains }(hjhhhNhNubj)}(h**f**h]hf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9. Each element there groups a set of callbacks functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj|ubj8)}(h``f`` callback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `. h](j>)}(h``f``h]h)}(hjLh]hf}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjFubjX)}(hhh]h)}(hcallback function to be called. The callback functions are defined in groups, according to each element at :c:type:`struct v4l2_subdev_ops `.h](hkcallback function to be called. The callback functions are defined in groups, according to each element at }(hjehhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hjoh]hstruct v4l2_subdev_ops}(hjqhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjbubah}(h]h ]h"]h$]h&]uh1jWhjFubeh}(h]h ]h"]h$]h&]uh1j7hjahMhj|ubj8)}(h!``args...`` arguments for **f**. h](j>)}(h ``args...``h]h)}(hjh]hargs...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(harguments for **f**.h](harguments for }(hjhhhNhNubj)}(h**f**h]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhj|ubeh}(h]h ]h"]h$]h&]uh1j2hj`ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubh)}(hThis is similar to v4l2_subdev_call_state_active(), except that as this version allocates a new state, this is only usable for V4L2_SUBDEV_FORMAT_TRY use cases.h]hThis is similar to v4l2_subdev_call_state_active(), except that as this version allocates a new state, this is only usable for V4L2_SUBDEV_FORMAT_TRY use cases.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubh)}(h/only legacy non-MC drivers may need this macro.h]h/only legacy non-MC drivers may need this macro.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jWv4l2_subdev_has_op (C macro)c.v4l2_subdev_has_ophNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hv4l2_subdev_has_oph]jg)}(hv4l2_subdev_has_oph]j)}(hv4l2_subdev_has_oph]j)}(hj\h]hv4l2_subdev_has_op}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]hhuh1jhj^hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubah}(h]h ]h"]h$]h&]hhjuh1jfjjhjZhhhjyhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j`hjyhMhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjyhMubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j[hhhj9hNhNubh)}(h!``v4l2_subdev_has_op (sd, o, f)``h]h)}(hjh]hv4l2_subdev_has_op (sd, o, f)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj9hhubj)}(h0Checks if a subdev defines a certain operation. h]h)}(h/Checks if a subdev defines a certain operation.h]h/Checks if a subdev defines a certain operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj9hhubj)}(hX **Parameters** ``sd`` pointer to the :c:type:`struct v4l2_subdev ` ``o`` The group of callback functions in :c:type:`struct v4l2_subdev_ops ` which **f** is a part of. ``f`` callback function to be checked for its existence.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubj3)}(hhh](j8)}(hA``sd`` pointer to the :c:type:`struct v4l2_subdev ` h](j>)}(h``sd``h]h)}(hjh]hsd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h9pointer to the :c:type:`struct v4l2_subdev `h](hpointer to the }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_subdev `h]h)}(hjh]hstruct v4l2_subdev}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_subdevuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(hv``o`` The group of callback functions in :c:type:`struct v4l2_subdev_ops ` which **f** is a part of. h](j>)}(h``o``h]h)}(hjDh]ho}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj>ubjX)}(hhh]h)}(hoThe group of callback functions in :c:type:`struct v4l2_subdev_ops ` which **f** is a part of.h](h#The group of callback functions in }(hj]hhhNhNubh)}(h2:c:type:`struct v4l2_subdev_ops `h]h)}(hjgh]hstruct v4l2_subdev_ops}(hjihhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_subdev_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj]ubh which }(hj]hhhNhNubj)}(h**f**h]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh is a part of.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjZubah}(h]h ]h"]h$]h&]uh1jWhj>ubeh}(h]h ]h"]h$]h&]uh1j7hjYhMhjubj8)}(h8``f`` callback function to be checked for its existence.h](j>)}(h``f``h]h)}(hjh]hf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h2callback function to be checked for its existence.h]h2callback function to be checked for its existence.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubeh}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%v4l2_subdev_notify_event (C function)c.v4l2_subdev_notify_eventhNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(hSvoid v4l2_subdev_notify_event (struct v4l2_subdev *sd, const struct v4l2_event *ev)h]jg)}(hRvoid v4l2_subdev_notify_event(struct v4l2_subdev *sd, const struct v4l2_event *ev)h](jAk)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj hhhjhMubj)}(hv4l2_subdev_notify_eventh]j)}(hv4l2_subdev_notify_eventh]hv4l2_subdev_notify_event}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj hhhjhMubjyk)}(h5(struct v4l2_subdev *sd, const struct v4l2_event *ev)h](jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjFubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjjmodnameN classnameNjj)}j]jk)}jkj0sbc.v4l2_subdev_notify_eventasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjFubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjFubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjBubjk)}(hconst struct v4l2_event *evh](jm)}(hjmh]hconst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_eventh]h v4l2_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jc.v4l2_subdev_notify_eventasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hj!hhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hevh]hev}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjBubeh}(h]h ]h"]h$]h&]hhuh1jxkhj hhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j`hjhMhjhhubj)}(hhh]h)}(h)Delivers event notification for subdeviceh]h)Delivers event notification for subdevice}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjpjjpjjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdev for which to deliver the event ``const struct v4l2_event *ev`` The event to deliver **Description** Will deliver the specified event to all userspace event listeners which are subscribed to the v42l subdev event queue as well as to the bridge driver using the notify callback. The notification type for the notify callback will be ``V4L2_DEVICE_NOTIFY_EVENT``.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubj3)}(hhh](j8)}(hE``struct v4l2_subdev *sd`` The subdev for which to deliver the event h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjh]hstruct v4l2_subdev *sd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(h)The subdev for which to deliver the eventh]h)The subdev for which to deliver the event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubj8)}(h5``const struct v4l2_event *ev`` The event to deliver h](j>)}(h``const struct v4l2_event *ev``h]h)}(hjh]hconst struct v4l2_event *ev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjubjX)}(hhh]h)}(hThe event to deliverh]hThe event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jWhjubeh}(h]h ]h"]h$]h&]uh1j7hjhMhjubeh}(h]h ]h"]h$]h&]uh1j2hjtubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubh)}(hXWill deliver the specified event to all userspace event listeners which are subscribed to the v42l subdev event queue as well as to the bridge driver using the notify callback. The notification type for the notify callback will be ``V4L2_DEVICE_NOTIFY_EVENT``.h](hWill deliver the specified event to all userspace event listeners which are subscribed to the v42l subdev event queue as well as to the bridge driver using the notify callback. The notification type for the notify callback will be }(hj#hhhNhNubh)}(h``V4L2_DEVICE_NOTIFY_EVENT``h]hV4L2_DEVICE_NOTIFY_EVENT}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubjK)}(hhh]h}(h]h ]h"]h$]h&]entries](jW%v4l2_subdev_is_streaming (C function)c.v4l2_subdev_is_streaminghNtauh1jJhj9hhhNhNubj\)}(hhh](ja)}(h6bool v4l2_subdev_is_streaming (struct v4l2_subdev *sd)h]jg)}(h5bool v4l2_subdev_is_streaming(struct v4l2_subdev *sd)h](jAk)}(hjzh]hbool}(hjdhhhNhNubah}(h]h ]jMkah"]h$]h&]uh1j@khj`hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hj`hhhjqhMubj)}(hv4l2_subdev_is_streamingh]j)}(hv4l2_subdev_is_streamingh]hv4l2_subdev_is_streaming}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhj`hhhjqhMubjyk)}(h(struct v4l2_subdev *sd)h]jk)}(hstruct v4l2_subdev *sdh](jm)}(hjph]hstruct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubh)}(hhh]j)}(h v4l2_subdevh]h v4l2_subdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypejk reftargetjmodnameN classnameNjj)}j]jk)}jkjsbc.v4l2_subdev_is_streamingasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j~hjubjk)}(hjkh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1jkhjubj)}(hsdh]hsd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j~khjubah}(h]h ]h"]h$]h&]hhuh1jxkhj`hhhjqhMubeh}(h]h ]h"]h$]h&]hhjuh1jfjjhj\hhhjqhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1j`hjqhMhjYhhubj)}(hhh]h)}(h%Returns if the subdevice is streamingh]h%Returns if the subdevice is streaming}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjqhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj;jj;jjjuh1j[hhhj9hNhNubj)}(hX**Parameters** ``struct v4l2_subdev *sd`` The subdevice **Description** v4l2_subdev_is_streaming() tells if the subdevice is currently streaming. "Streaming" here means whether .s_stream() or .enable_streams() has been successfully called, and the streaming has not yet been disabled. If the subdevice implements .enable_streams() this function must be called while holding the active state lock.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj?ubj3)}(hhh]j8)}(h)``struct v4l2_subdev *sd`` The subdevice h](j>)}(h``struct v4l2_subdev *sd``h]h)}(hjdh]hstruct v4l2_subdev *sd}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]uh1j=hi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj^ubjX)}(hhh]h)}(h The subdeviceh]h The subdevice}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jWhj^ubeh}(h]h ]h"]h$]h&]uh1j7hjyhMhj[ubah}(h]h ]h"]h$]h&]uh1j2hj?ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj?ubh)}(hv4l2_subdev_is_streaming() tells if the subdevice is currently streaming. "Streaming" here means whether .s_stream() or .enable_streams() has been successfully called, and the streaming has not yet been disabled.h]hv4l2_subdev_is_streaming() tells if the subdevice is currently streaming. “Streaming” here means whether .s_stream() or .enable_streams() has been successfully called, and the streaming has not yet been disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj?ubh)}(hoIf the subdevice implements .enable_streams() this function must be called while holding the active state lock.h]hoIf the subdevice implements .enable_streams() this function must be called while holding the active state lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-subdev:644: ./include/media/v4l2-subdev.hhMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj9hhhNhNubeh}(h]-v4l2-sub-device-functions-and-data-structuresah ]h"]-v4l2 sub-device functions and data structuresah$]h&]uh1hhhhhhhhMubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}j`]jUasnameids}(j j jI jF jfjcj)j`j(j%ja j^ j j j j j j jA j> j j jjjjjjjj j6j3jju nametypes}(j jI jfj)j(ja j j j jA j jjjjj6juh}(j hjF j[jcjj`jij%jij^ j0j jd j j j j j> j j jL jj jjjjj jj3jjj9jYjbj=jBj*j/j; j@ j~$j$j<(jA(j*j *j7+j<+jp,ju,j/j/ju0jz0j2j2j2j2j?8jD8j;j";j`<je<j==jB=jAjAjCjCjEjEjHjHjJjJjKjKjtNjyNjTjTjXjXj[j[j]j]jTejYejfjfjgjgjijij3kj8kj5mj:mjnjojpjpjrjrjtjtjxjxjzjzj}j}jЀjՀjQjVjyj~jjjjj3j8jjÉjIjNj}jjjjjj˕jЕj}jjujzjejjjjjjjjjjjjjjjjj'j,jojtjjjsjxj>jCj jjnjsjjjjjUjZjjjWj\u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]h)}(hhh]hEHyperlink target "media-registering-async-subdevs" is not referenced.}hjosbah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1jjuba transformerN include_log] decorationNhhub.