2sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget>/translations/zh_CN/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/zh_TW/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/it_IT/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/ja_JP/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/ko_KR/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/pt_BR/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/sp_SP/userspace-api/media/v4l/vidioc-g-modulatormodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-laterh]h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhX/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-g-modulator.rsthKubhtarget)}(h.. _VIDIOC_G_MODULATOR:h]h}(h]h ]h"]h$]h&]refidvidioc-g-modulatoruh1hhKhhhhhhubhsection)}(hhh](htitle)}(h,ioctl VIDIOC_G_MODULATOR, VIDIOC_S_MODULATORh]h,ioctl VIDIOC_G_MODULATOR, VIDIOC_S_MODULATOR}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hNameh]hName}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(hIVIDIOC_G_MODULATOR - VIDIOC_S_MODULATOR - Get or set modulator attributesh]hIVIDIOC_G_MODULATOR - VIDIOC_S_MODULATOR - Get or set modulator attributes}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubeh}(h]nameah ]h"]nameah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hSynopsish]hSynopsis}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](single V4L.VIDIOC_G_MODULATOR (C macro)c.V4L.VIDIOC_G_MODULATORhNtauh1j%hjhhhNhNubhdesc)}(hhh](hdesc_signature)}(hVIDIOC_G_MODULATORh]hdesc_signature_line)}(hVIDIOC_G_MODULATORh]h desc_name)}(hVIDIOC_G_MODULATORh]h desc_sig_name)}(hj?h]hVIDIOC_G_MODULATOR}(hjOhhhNhNubah}(h]h ]nah"]h$]h&]uh1jMhjIubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jGhjChhhhhKubah}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1jAsphinx_line_type declaratorhj=hhhhhKubah}(h]j4ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j;hhhKhj8hhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1jyhj8hhhhhKubeh}(h]h ](cmacroeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j6hhhjhNhNubh)}(hF``int ioctl(int fd, VIDIOC_G_MODULATOR, struct v4l2_modulator *argp)``h]hliteral)}(hjh]hBint ioctl(int fd, VIDIOC_G_MODULATOR, struct v4l2_modulator *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj&)}(hhh]h}(h]h ]h"]h$]h&]entries](j2 V4L.VIDIOC_S_MODULATOR (C macro)c.V4L.VIDIOC_S_MODULATORhNtauh1j%hjhhhNhNubj7)}(hhh](j<)}(hVIDIOC_S_MODULATORh]jB)}(hVIDIOC_S_MODULATORh]jH)}(hVIDIOC_S_MODULATORh]jN)}(hjh]hVIDIOC_S_MODULATOR}(hjhhhNhNubah}(h]h ]jYah"]h$]h&]uh1jMhjubah}(h]h ](j`jaeh"]h$]h&]hhuh1jGhjhhhhhKubah}(h]h ]h"]h$]h&]hhjkuh1jAjljmhjhhhhhKubah}(h]jah ](jqjreh"]h$]h&]jvjw)jxhuh1j;hhhKhjhhubjz)}(hhh]h}(h]h ]h"]h$]h&]uh1jyhjhhhhhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j6hhhjhNhNubh)}(hL``int ioctl(int fd, VIDIOC_S_MODULATOR, const struct v4l2_modulator *argp)``h]j)}(hjh]hHint ioctl(int fd, VIDIOC_S_MODULATOR, const struct v4l2_modulator *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]synopsisah ]h"]synopsisah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Argumentsh]h Arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhdefinition_list)}(hhh](hdefinition_list_item)}(h5``fd`` File descriptor returned by :c:func:`open()`. h](hterm)}(h``fd``h]j)}(hj6h]hfd}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1j2hhhKhj.ubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hjPhhhNhNubh)}(h:c:func:`open()`h]j)}(hjZh]hopen()}(hj\hhhNhNubah}(h]h ](xrefjc-funceh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdoc*userspace-api/media/v4l/vidioc-g-modulator refdomainjreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]jy ASTIdentifier)} identifierV4LsbNasb reftargetopenuh1hhhhKhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjMubah}(h]h ]h"]h$]h&]uh1jKhj.ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj)ubj-)}(h5``argp`` Pointer to struct :c:type:`v4l2_modulator`. h](j3)}(h``argp``h]j)}(hjh]hargp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j2hhhK!hjubjL)}(hhh]h)}(h+Pointer to struct :c:type:`v4l2_modulator`.h](hPointer to struct }(hjhhhNhNubh)}(h:c:type:`v4l2_modulator`h]j)}(hjh]hv4l2_modulator}(hjhhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_modulatoruh1hhhhK!hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]uh1j,hhhK!hj)hhubeh}(h]h ]h"]h$]h&]uh1j'hjhhhhhNubeh}(h] argumentsah ]h"] argumentsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Descriptionh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK$ubh)}(hXTo query the attributes of a modulator applications initialize the ``index`` field and zero out the ``reserved`` array of a struct :c:type:`v4l2_modulator` and call the :ref:`VIDIOC_G_MODULATOR ` ioctl with a pointer to this structure. Drivers fill the rest of the structure or return an ``EINVAL`` error code when the index is out of bounds. To enumerate all modulators applications shall begin at index zero, incrementing by one until the driver returns EINVAL.h](hCTo query the attributes of a modulator applications initialize the }(hjhhhNhNubj)}(h ``index``h]hindex}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh field and zero out the }(hjhhhNhNubj)}(h ``reserved``h]hreserved}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh array of a struct }(hjhhhNhNubh)}(h:c:type:`v4l2_modulator`h]j)}(hjGh]hv4l2_modulator}(hjIhhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_modulatoruh1hhhhK&hjubh and call the }(hjhhhNhNubh)}(h.:ref:`VIDIOC_G_MODULATOR `h]hinline)}(hjjh]hVIDIOC_G_MODULATOR}(hjnhhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&]refdocjr refdomainjxreftyperef refexplicitrefwarnjvidioc_g_modulatoruh1hhhhK&hjubh] ioctl with a pointer to this structure. Drivers fill the rest of the structure or return an }(hjhhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh error code when the index is out of bounds. To enumerate all modulators applications shall begin at index zero, incrementing by one until the driver returns EINVAL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK&hjhhubh)}(hXModulators have two writable properties, an audio modulation set and the radio frequency. To change the modulated audio subprograms, applications initialize the ``index`` and ``txsubchans`` fields and the ``reserved`` array and call the :ref:`VIDIOC_S_MODULATOR ` ioctl. Drivers may choose a different audio modulation if the request cannot be satisfied. However this is a write-only ioctl, it does not return the actual audio modulation selected.h](hModulators have two writable properties, an audio modulation set and the radio frequency. To change the modulated audio subprograms, applications initialize the }(hjhhhNhNubj)}(h ``index``h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h``txsubchans``h]h txsubchans}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh fields and the }(hjhhhNhNubj)}(h ``reserved``h]hreserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh array and call the }(hjhhhNhNubh)}(h.:ref:`VIDIOC_S_MODULATOR `h]jm)}(hjh]hVIDIOC_S_MODULATOR}(hjhhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftyperef refexplicitrefwarnjvidioc_g_modulatoruh1hhhhK/hjubh ioctl. Drivers may choose a different audio modulation if the request cannot be satisfied. However this is a write-only ioctl, it does not return the actual audio modulation selected.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK/hjhhubh)}(h:ref:`SDR ` specific modulator types are ``V4L2_TUNER_SDR`` and ``V4L2_TUNER_RF``. For SDR devices ``txsubchans`` field must be initialized to zero. The term 'modulator' means SDR transmitter in this context.h](h)}(h:ref:`SDR `h]jm)}(hjh]hSDR}(hjhhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&]refdocjr refdomainj reftyperef refexplicitrefwarnjsdruh1hhhhK7hjubh specific modulator types are }(hjhhhNhNubj)}(h``V4L2_TUNER_SDR``h]hV4L2_TUNER_SDR}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h``V4L2_TUNER_RF``h]h V4L2_TUNER_RF}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. For SDR devices }(hjhhhNhNubj)}(h``txsubchans``h]h txsubchans}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhc field must be initialized to zero. The term ‘modulator’ means SDR transmitter in this context.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK7hjhhubh)}(hdTo change the radio frequency the :ref:`VIDIOC_S_FREQUENCY ` ioctl is available.h](h"To change the radio frequency the }(hjrhhhNhNubh)}(h.:ref:`VIDIOC_S_FREQUENCY `h]jm)}(hj|h]hVIDIOC_S_FREQUENCY}(hj~hhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftyperef refexplicitrefwarnjvidioc_g_frequencyuh1hhhhKThe highest tunable frequency in units of 62.5 KHz, or if the }(hjhhhNhNubj)}(h``capability``h]h capability}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh flag }(hjhhhNhNubj)}(h``V4L2_TUNER_CAP_LOW``h]hV4L2_TUNER_CAP_LOW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( is set, in units of 62.5 Hz, or if the }(hjhhhNhNubj)}(h``capability``h]h capability}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh flag }hjsbj)}(h``V4L2_TUNER_CAP_1HZ``h]hV4L2_TUNER_CAP_1HZ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set, in units of 1 Hz.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK_hjubah}(h]h ]h"]h$]h&]morecolsKuh1juhjfubeh}(h]h ]h"]h$]h&]uh1jphjmubjq)}(hhh](jv)}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKchj ubah}(h]h ]h"]h$]h&]uh1juhjubjv)}(hhh]h)}(h``txsubchans``h]j)}(hj%h]h txsubchans}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhhhKdhj ubah}(h]h ]h"]h$]h&]uh1juhjubjv)}(hhh](h)}(hWith this field applications can determine how audio sub-carriers shall be modulated. It contains a set of flags as defined in :ref:`modulator-txsubchans`.h](hWith this field applications can determine how audio sub-carriers shall be modulated. It contains a set of flags as defined in }(hjChhhNhNubh)}(h:ref:`modulator-txsubchans`h]jm)}(hjMh]hmodulator-txsubchans}(hjOhhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&]refdocjr refdomainjYreftyperef refexplicitrefwarnjmodulator-txsubchansuh1hhhhKehjCubh.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKehj@ubhnote)}(hX;The tuner ``rxsubchans`` flags are reused, but the semantics are different. Video output devices are assumed to have an analog or PCM audio input with 1-3 channels. The ``txsubchans`` flags select one or more channels for modulation, together with some audio subprogram indicator, for example, a stereo pilot tone.h]h)}(hX;The tuner ``rxsubchans`` flags are reused, but the semantics are different. Video output devices are assumed to have an analog or PCM audio input with 1-3 channels. The ``txsubchans`` flags select one or more channels for modulation, together with some audio subprogram indicator, for example, a stereo pilot tone.h](h The tuner }(hj{hhhNhNubj)}(h``rxsubchans``h]h rxsubchans}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh flags are reused, but the semantics are different. Video output devices are assumed to have an analog or PCM audio input with 1-3 channels. The }(hj{hhhNhNubj)}(h``txsubchans``h]h txsubchans}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh flags select one or more channels for modulation, together with some audio subprogram indicator, for example, a stereo pilot tone.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKkhjwubah}(h]h ]h"]h$]h&]uh1juhj@ubeh}(h]h ]h"]h$]h&]morecolsKuh1juhjubeh}(h]h ]h"]h$]h&]uh1jphjmubjq)}(hhh](jv)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhjubah}(h]h ]h"]h$]h&]uh1juhjubjv)}(hhh]h)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKrhjubah}(h]h ]h"]h$]h&]uh1juhjubjv)}(hhh]h)}(h@:cspan:`2` Type of the modulator, see :c:type:`v4l2_tuner_type`.h](h Type of the modulator, see }(hjhhhNhNubh)}(h:c:type:`v4l2_tuner_type`h]j)}(hj h]hv4l2_tuner_type}(hj hhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_tuner_typeuh1hhhhKshjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKshjubah}(h]h ]h"]h$]h&]morecolsKuh1juhjubeh}(h]h ]h"]h$]h&]uh1jphjmubjq)}(hhh](jv)}(hhh]h)}(h__u32h]h__u32}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKthj> ubah}(h]h ]h"]h$]h&]uh1juhj; ubjv)}(hhh]h)}(h``reserved``\ [3]h](j)}(h ``reserved``h]hreserved}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX ubh [3]}(hjX hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKuhjU ubah}(h]h ]h"]h$]h&]uh1juhj; ubjv)}(hhh](h)}(hReserved for future extensions.h]hReserved for future extensions.}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjz ubh)}(h4Drivers and applications must set the array to zero.h]h4Drivers and applications must set the array to zero.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjz ubeh}(h]h ]h"]h$]h&]morecolsKuh1juhj; ubeh}(h]h ]h"]h$]h&]uh1jphjmubeh}(h]h ]h"]h$]h&]uh1jkhj4ubeh}(h]h ]h"]h$]h&]colsKuh1j2hj!ubeh}(h]id1ah ]h"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]j|p{6.0cm}|p{2.0cm}|p{9.3cm}|uh1jhhhKzhjhhubh)}(h.. _modulator-txsubchans:h]h}(h]h ]h"]h$]h&]hԌmodulator-txsubchansuh1hhK~hjhhhhubj )}(hhh](h)}(h"Modulator Audio Transmission Flagsh]h"Modulator Audio Transmission Flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubj3)}(hhh](j8)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j7hj ubj8)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j7hj ubj8)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j7hj ubjl)}(hhh](jq)}(hhh](jv)}(hhh]h)}(h``V4L2_TUNER_SUB_MONO``h]j)}(hj h]hV4L2_TUNER_SUB_MONO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h0x0001h]h0x0001}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj' ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(hModulate channel 1 as mono audio, when the input has more channels, a down-mix of channel 1 and 2. This flag does not combine with ``V4L2_TUNER_SUB_STEREO`` or ``V4L2_TUNER_SUB_LANG1``.h](hModulate channel 1 as mono audio, when the input has more channels, a down-mix of channel 1 and 2. This flag does not combine with }(hjA hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA ubh or }(hjA hhhNhNubj)}(h``V4L2_TUNER_SUB_LANG1``h]hV4L2_TUNER_SUB_LANG1}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA ubh.}(hjA hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj> ubah}(h]h ]h"]h$]h&]uh1juhj ubeh}(h]h ]h"]h$]h&]uh1jphj ubjq)}(hhh](jv)}(hhh]h)}(h``V4L2_TUNER_SUB_STEREO``h]j)}(hj h]hV4L2_TUNER_SUB_STEREO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h0x0002h]h0x0002}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(hXwModulate channel 1 and 2 as left and right channel of a stereo audio signal. When the input has only one channel or two channels and ``V4L2_TUNER_SUB_SAP`` is also set, channel 1 is encoded as left and right channel. This flag does not combine with ``V4L2_TUNER_SUB_MONO`` or ``V4L2_TUNER_SUB_LANG1``. When the driver does not support stereo audio it shall fall back to mono.h](hModulate channel 1 and 2 as left and right channel of a stereo audio signal. When the input has only one channel or two channels and }(hj hhhNhNubj)}(h``V4L2_TUNER_SUB_SAP``h]hV4L2_TUNER_SUB_SAP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh^ is also set, channel 1 is encoded as left and right channel. This flag does not combine with }(hj hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh or }(hj hhhNhNubj)}(h``V4L2_TUNER_SUB_LANG1``h]hV4L2_TUNER_SUB_LANG1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhK. When the driver does not support stereo audio it shall fall back to mono.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubeh}(h]h ]h"]h$]h&]uh1jphj ubjq)}(hhh](jv)}(hhh]h)}(h``V4L2_TUNER_SUB_LANG1``h]j)}(hj h]hV4L2_TUNER_SUB_LANG1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h0x0008h]h0x0008}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj/ ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(hX_Modulate channel 1 and 2 as primary and secondary language of a bilingual audio signal. When the input has only one channel it is used for both languages. It is not possible to encode the primary or secondary language only. This flag does not combine with ``V4L2_TUNER_SUB_MONO``, ``V4L2_TUNER_SUB_STEREO`` or ``V4L2_TUNER_SUB_SAP``. If the hardware does not support the respective audio matrix, or the current video standard does not permit bilingual audio the :ref:`VIDIOC_S_MODULATOR ` ioctl shall return an ``EINVAL`` error code and the driver shall fall back to mono or stereo mode.h](hXModulate channel 1 and 2 as primary and secondary language of a bilingual audio signal. When the input has only one channel it is used for both languages. It is not possible to encode the primary or secondary language only. This flag does not combine with }(hjI hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh, }(hjI hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh or }(hjI hhhNhNubj)}(h``V4L2_TUNER_SUB_SAP``h]hV4L2_TUNER_SUB_SAP}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh. If the hardware does not support the respective audio matrix, or the current video standard does not permit bilingual audio the }(hjI hhhNhNubh)}(h.:ref:`VIDIOC_S_MODULATOR `h]jm)}(hj h]hVIDIOC_S_MODULATOR}(hj hhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainj reftyperef refexplicitrefwarnjvidioc_g_modulatoruh1hhhhKhjI ubh ioctl shall return an }(hjI hhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubhB error code and the driver shall fall back to mono or stereo mode.}(hjI hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjF ubah}(h]h ]h"]h$]h&]uh1juhj ubeh}(h]h ]h"]h$]h&]uh1jphj ubjq)}(hhh](jv)}(hhh]h)}(h``V4L2_TUNER_SUB_LANG2``h]j)}(hj h]hV4L2_TUNER_SUB_LANG2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h0x0004h]h0x0004}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h&Same effect as ``V4L2_TUNER_SUB_SAP``.h](hSame effect as }(hj hhhNhNubj)}(h``V4L2_TUNER_SUB_SAP``h]hV4L2_TUNER_SUB_SAP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubeh}(h]h ]h"]h$]h&]uh1jphj ubjq)}(hhh](jv)}(hhh]h)}(h``V4L2_TUNER_SUB_SAP``h]j)}(hj@ h]hV4L2_TUNER_SUB_SAP}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj> ubah}(h]h ]h"]h$]h&]uh1hhhhKhj; ubah}(h]h ]h"]h$]h&]uh1juhj8 ubjv)}(hhh]h)}(h0x0004h]h0x0004}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[ ubah}(h]h ]h"]h$]h&]uh1juhj8 ubjv)}(hhh]h)}(hXWhen combined with ``V4L2_TUNER_SUB_MONO`` the first channel is encoded as mono audio, the last channel as Second Audio Program. When the input has only one channel it is used for both audio tracks. When the input has three channels the mono track is a down-mix of channel 1 and 2. When combined with ``V4L2_TUNER_SUB_STEREO`` channel 1 and 2 are encoded as left and right stereo audio, channel 3 as Second Audio Program. When the input has only two channels, the first is encoded as left and right channel and the second as SAP. When the input has only one channel it is used for all audio tracks. It is not possible to encode a Second Audio Program only. This flag must combine with ``V4L2_TUNER_SUB_MONO`` or ``V4L2_TUNER_SUB_STEREO``. If the hardware does not support the respective audio matrix, or the current video standard does not permit SAP the :ref:`VIDIOC_S_MODULATOR ` ioctl shall return an ``EINVAL`` error code and driver shall fall back to mono or stereo mode.h](hWhen combined with }(hju hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubhX the first channel is encoded as mono audio, the last channel as Second Audio Program. When the input has only one channel it is used for both audio tracks. When the input has three channels the mono track is a down-mix of channel 1 and 2. When combined with }(hju hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubhXg channel 1 and 2 are encoded as left and right stereo audio, channel 3 as Second Audio Program. When the input has only two channels, the first is encoded as left and right channel and the second as SAP. When the input has only one channel it is used for all audio tracks. It is not possible to encode a Second Audio Program only. This flag must combine with }(hju hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubh or }(hju hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubhv. If the hardware does not support the respective audio matrix, or the current video standard does not permit SAP the }(hju hhhNhNubh)}(h.:ref:`VIDIOC_S_MODULATOR `h]jm)}(hj h]hVIDIOC_S_MODULATOR}(hj hhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainj reftyperef refexplicitrefwarnjvidioc_g_modulatoruh1hhhhKhju ubh ioctl shall return an }(hju hhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubh> error code and driver shall fall back to mono or stereo mode.}(hju hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjr ubah}(h]h ]h"]h$]h&]uh1juhj8 ubeh}(h]h ]h"]h$]h&]uh1jphj ubjq)}(hhh](jv)}(hhh]h)}(h``V4L2_TUNER_SUB_RDS``h]j)}(hj h]hV4L2_TUNER_SUB_RDS}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h0x0010h]h0x0010}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0 ubah}(h]h ]h"]h$]h&]uh1juhj ubjv)}(hhh]h)}(h2Enable the RDS encoder for a radio FM transmitter.h]h2Enable the RDS encoder for a radio FM transmitter.}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjG ubah}(h]h ]h"]h$]h&]uh1juhj ubeh}(h]h ]h"]h$]h&]uh1jphj ubeh}(h]h ]h"]h$]h&]uh1jkhj ubeh}(h]h ]h"]h$]h&]colsKuh1j2hj ubeh}(h](id2j eh ] longtableah"]modulator-txsubchansah$]h&]uh1jhjhhhNhNexpect_referenced_by_name}jw j sexpect_referenced_by_id}j j subeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhK$ubh)}(hhh](h)}(h Return Valueh]h Return Value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hOn success 0 is returned, on error -1 and the ``errno`` variable is set appropriately. The generic error codes are described at the :ref:`Generic Error Codes ` chapter.h](h.On success 0 is returned, on error -1 and the }(hj hhhNhNubj)}(h ``errno``h]herrno}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhM variable is set appropriately. The generic error codes are described at the }(hj hhhNhNubh)}(h':ref:`Generic Error Codes `h]jm)}(hj h]hGeneric Error Codes}(hj hhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainj reftyperef refexplicitrefwarnj gen-errorsuh1hhhhKhj ubh chapter.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj()}(hhh]j-)}(hFEINVAL The struct :c:type:`v4l2_modulator` ``index`` is out of bounds.h](j3)}(hEINVALh]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hhhKhj ubjL)}(hhh]h)}(h?The struct :c:type:`v4l2_modulator` ``index`` is out of bounds.h](h The struct }(hj hhhNhNubh)}(h:c:type:`v4l2_modulator`h]j)}(hj h]hv4l2_modulator}(hj hhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_modulatoruh1hhhhKhj ubh }(hj hhhNhNubj)}(h ``index``h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is out of bounds.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jKhj ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj ubah}(h]h ]h"]h$]h&]uh1j'hj hhhhhNubeh}(h] return-valueah ]h"] return valueah$]h&]uh1hhhhhhhhKubeh}(h](+ioctl-vidioc-g-modulator-vidioc-s-modulatorheh ]h"](,ioctl vidioc_g_modulator, vidioc_s_modulatorvidioc_g_modulatoreh$]h&]uh1hhhhhhhhKjz }jVhsj| }hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjufootnote_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_handlerj}error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _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}(h]haj ]j aunameids}(jVhjUjRjjjjjjj j jw j jMjJu nametypes}(jVjUjjjj jw jMuh}(hhjRhjhjjj4j=jjjjj jjjj j jJj j j!js j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages](hsystem_message)}(hhh]h)}(hhh]h8Hyperlink target "vidioc-g-modulator" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehnjlineKuh1jubj)}(hhh]h)}(hhh]h:Hyperlink target "modulator-txsubchans" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehnjlineK~uh1jube transformerN include_log] decorationNhhub.