€•·)Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ4/translations/zh_CN/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ4/translations/zh_TW/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ4/translations/it_IT/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ4/translations/ja_JP/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ4/translations/ko_KR/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ4/translations/pt_BR/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ4/translations/sp_SP/userspace-api/media/v4l/querycap”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later”h]”hŒ8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒN/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/querycap.rst”h´KubhŒtarget”“”)”}”(hŒ .. _querycap:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œquerycap”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒQuerying Capabilities”h]”hŒQuerying Capabilities”…””}”(hhÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhØh²hh³hÇh´KubhŒ paragraph”“”)”}”(hXBecause V4L2 covers a wide variety of devices not all aspects of the API are equally applicable to all types of devices. Furthermore devices of the same type have different capabilities and this specification permits the omission of a few complicated and less important parts of the API.”h]”hXBecause V4L2 covers a wide variety of devices not all aspects of the API are equally applicable to all types of devices. Furthermore devices of the same type have different capabilities and this specification permits the omission of a few complicated and less important parts of the API.”…””}”(hhíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K hhØh²hubhì)”}”(hŒÓThe :ref:`VIDIOC_QUERYCAP` ioctl is available to check if the kernel device is compatible with this specification, and to query the :ref:`functions ` and :ref:`I/O methods ` supported by the device.”h]”(hŒThe ”…””}”(hhûh²hh³Nh´Nubh)”}”(hŒ:ref:`VIDIOC_QUERYCAP`”h]”hŒinline”“”)”}”(hjh]”hŒVIDIOC_QUERYCAP”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ userspace-api/media/v4l/querycap”Œ refdomain”jŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆŒ reftarget”Œvidioc_querycap”uh1hh³hÇh´KhhûubhŒj ioctl is available to check if the kernel device is compatible with this specification, and to query the ”…””}”(hhûh²hh³Nh´Nubh)”}”(hŒ:ref:`functions `”h]”j)”}”(hj.h]”hŒ functions”…””}”(hj0h²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj,ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”j:Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj&Œdevices”uh1hh³hÇh´KhhûubhŒ and ”…””}”(hhûh²hh³Nh´Nubh)”}”(hŒ:ref:`I/O methods `”h]”j)”}”(hjRh]”hŒ I/O methods”…””}”(hjTh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjPubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”j^Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj&Œio”uh1hh³hÇh´KhhûubhŒ supported by the device.”…””}”(hhûh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KhhØh²hubhì)”}”(hXJStarting with kernel version 3.1, :ref:`VIDIOC_QUERYCAP` will return the V4L2 API version used by the driver, with generally matches the Kernel version. There's no need of using :ref:`VIDIOC_QUERYCAP` to check if a specific ioctl is supported, the V4L2 core now returns ``ENOTTY`` if a driver doesn't provide support for an ioctl.”h]”(hŒ"Starting with kernel version 3.1, ”…””}”(hjzh²hh³Nh´Nubh)”}”(hŒ:ref:`VIDIOC_QUERYCAP`”h]”j)”}”(hj„h]”hŒVIDIOC_QUERYCAP”…””}”(hj†h²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj‚ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”jŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj&Œvidioc_querycap”uh1hh³hÇh´KhjzubhŒ| will return the V4L2 API version used by the driver, with generally matches the Kernel version. There’s no need of using ”…””}”(hjzh²hh³Nh´Nubh)”}”(hŒ:ref:`VIDIOC_QUERYCAP`”h]”j)”}”(hj¨h]”hŒVIDIOC_QUERYCAP”…””}”(hjªh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj¦ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”j´Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj&Œvidioc_querycap”uh1hh³hÇh´KhjzubhŒF to check if a specific ioctl is supported, the V4L2 core now returns ”…””}”(hjzh²hh³Nh´NubhŒliteral”“”)”}”(hŒ ``ENOTTY``”h]”hŒENOTTY”…””}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÊhjzubhŒ4 if a driver doesn’t provide support for an ioctl.”…””}”(hjzh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KhhØh²hubhì)”}”(hXROther features can be queried by calling the respective ioctl, for example :ref:`VIDIOC_ENUMINPUT` to learn about the number, types and names of video connectors on the device. Although abstraction is a major objective of this API, the :ref:`VIDIOC_QUERYCAP` ioctl also allows driver specific applications to reliably identify the driver.”h]”(hŒKOther features can be queried by calling the respective ioctl, for example ”…””}”(hjäh²hh³Nh´Nubh)”}”(hŒ:ref:`VIDIOC_ENUMINPUT`”h]”j)”}”(hjîh]”hŒVIDIOC_ENUMINPUT”…””}”(hjðh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjìubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”júŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj&Œvidioc_enuminput”uh1hh³hÇh´KhjäubhŒŠ to learn about the number, types and names of video connectors on the device. Although abstraction is a major objective of this API, the ”…””}”(hjäh²hh³Nh´Nubh)”}”(hŒ:ref:`VIDIOC_QUERYCAP`”h]”j)”}”(hjh]”hŒVIDIOC_QUERYCAP”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”jŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj&Œvidioc_querycap”uh1hh³hÇh´KhjäubhŒP ioctl also allows driver specific applications to reliably identify the driver.”…””}”(hjäh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KhhØh²hubhì)”}”(hŒzAll V4L2 drivers must support :ref:`VIDIOC_QUERYCAP`. Applications should always call this ioctl after opening the device.”h]”(hŒAll V4L2 drivers must support ”…””}”(hj:h²hh³Nh´Nubh)”}”(hŒ:ref:`VIDIOC_QUERYCAP`”h]”j)”}”(hjDh]”hŒVIDIOC_QUERYCAP”…””}”(hjFh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjBubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”jPŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj&Œvidioc_querycap”uh1hh³hÇh´K"hj:ubhŒF. Applications should always call this ioctl after opening the device.”…””}”(hj:h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K"hhØh²hubeh}”(h]”(Œquerying-capabilities”hÕeh ]”h"]”(Œquerying capabilities”Œquerycap”eh$]”h&]”uh1hÖhhh²hh³hÇh´KŒexpect_referenced_by_name”}”jrhÊsŒexpect_referenced_by_id”}”hÕhÊsubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÛNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jœŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”hÕ]”hÊasŒnameids”}”(jrhÕjqjnuŒ nametypes”}”(jrˆjq‰uh}”(hÕhØjnhØuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hì)”}”(hhh]”hŒ.Hyperlink target "querycap" is not referenced.”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”uh1hëhjubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1jubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.