<sphinx.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]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_MODULATORhNtauh1jhjhhhNhNubhdesc)}(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}(hj;hhhNhNubah}(h]h ]nah"]h$]h&]uh1j9hj5ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1j3hj/hhhhhKubah}(h]h ]h"]h$]h&]hh add_permalinkuh1j-sphinx_line_type declaratorhj)hhhhhKubah}(h]j ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j'hhhKhj$hhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1jehj$hhhhhKubeh}(h]h ](cmacroeh"]h$]h&]domainjsobjtypejtdesctypejtnoindex noindexentrynocontentsentryuh1j"hhhjhNhNubh)}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j V4L.VIDIOC_S_MODULATOR (C macro)c.V4L.VIDIOC_S_MODULATORhNtauh1jhjhhhNhNubj#)}(hhh](j()}(hVIDIOC_S_MODULATORh]j.)}(hVIDIOC_S_MODULATORh]j4)}(hVIDIOC_S_MODULATORh]j:)}(hjh]hVIDIOC_S_MODULATOR}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]hhuh1j3hjhhhhhKubah}(h]h ]h"]h$]h&]hhjWuh1j-jXjYhjhhhhhKubah}(h]jah ](j]j^eh"]h$]h&]jbjc)jdhuh1j'hhhKhjhhubjf)}(hhh]h}(h]h ]h"]h$]h&]uh1jehjhhhhhKubeh}(h]h ](jsmacroeh"]h$]h&]jxjsjyjjzjj{j|j}uh1j"hhhjhNhNubh)}(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)}(hj"h]hfd}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hj<hhhNhNubh)}(h:c:func:`open()`h]j)}(hjFh]hopen()}(hjHhhhNhNubah}(h]h ](xrefjsc-funceh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdoc*userspace-api/media/v4l/vidioc-g-modulator refdomainjsreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]je ASTIdentifier)} identifierV4LsbNasb reftargetopenuh1hhhhKhj<ubh.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(h5``argp`` Pointer to struct :c:type:`v4l2_modulator`. h](j)}(h``argp``h]j)}(hjh]hargp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK!hjubj8)}(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 ](jRjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_modulatoruh1hhhhK!hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jhhhK!hjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h] argumentsah ]h"] argumentsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Descriptionh]h Description}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh array of a struct }(hjhhhNhNubh)}(h:c:type:`v4l2_modulator`h]j)}(hj3h]hv4l2_modulator}(hj5hhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_modulatoruh1hhhhK&hjubh and call the }(hjhhhNhNubh)}(h.:ref:`VIDIOC_G_MODULATOR `h]hinline)}(hjVh]hVIDIOC_G_MODULATOR}(hjZhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhjTubah}(h]h ]h"]h$]h&]refdocj^ refdomainjdreftyperef refexplicitrefwarnjsvidioc_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}(hjzhhhNhNubah}(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]jY)}(hjh]hVIDIOC_S_MODULATOR}(hjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjreftyperef refexplicitrefwarnjsvidioc_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]jY)}(hjh]hSDR}(hjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainj reftyperef refexplicitrefwarnjssdruh1hhhhK7hjubh specific modulator types are }(hjhhhNhNubj)}(h``V4L2_TUNER_SDR``h]hV4L2_TUNER_SDR}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h``V4L2_TUNER_RF``h]h V4L2_TUNER_RF}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. For SDR devices }(hjhhhNhNubj)}(h``txsubchans``h]h txsubchans}(hjFhhhNhNubah}(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 }(hj^hhhNhNubh)}(h.:ref:`VIDIOC_S_FREQUENCY `h]jY)}(hjhh]hVIDIOC_S_FREQUENCY}(hjjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhjfubah}(h]h ]h"]h$]h&]refdocj^ refdomainjtreftyperef refexplicitrefwarnjsvidioc_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&]morecolsKuh1jahjRubeh}(h]h ]h"]h$]h&]uh1j\hjYubj])}(hhh](jb)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKchjubah}(h]h ]h"]h$]h&]uh1jahjubjb)}(hhh]h)}(h``txsubchans``h]j)}(hjh]h txsubchans}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKdhj ubah}(h]h ]h"]h$]h&]uh1jahjubjb)}(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 }(hj/hhhNhNubh)}(h:ref:`modulator-txsubchans`h]jY)}(hj9h]hmodulator-txsubchans}(hj;hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhj7ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjEreftyperef refexplicitrefwarnjsmodulator-txsubchansuh1hhhhKehj/ubh.}(hj/hhhNhNubeh}(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 }(hjghhhNhNubj)}(h``rxsubchans``h]h rxsubchans}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh 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 }(hjghhhNhNubj)}(h``txsubchans``h]h txsubchans}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh flags select one or more channels for modulation, together with some audio subprogram indicator, for example, a stereo pilot tone.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKkhjcubah}(h]h ]h"]h$]h&]uh1jahj,ubeh}(h]h ]h"]h$]h&]morecolsKuh1jahjubeh}(h]h ]h"]h$]h&]uh1j\hjYubj])}(hhh](jb)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhjubah}(h]h ]h"]h$]h&]uh1jahjubjb)}(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&]uh1jahjubjb)}(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)}(hjh]hv4l2_tuner_type}(hjhhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_tuner_typeuh1hhhhKshjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKshjubah}(h]h ]h"]h$]h&]morecolsKuh1jahjubeh}(h]h ]h"]h$]h&]uh1j\hjYubj])}(hhh](jb)}(hhh]h)}(h__u32h]h__u32}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKthj* ubah}(h]h ]h"]h$]h&]uh1jahj' ubjb)}(hhh]h)}(h``reserved``\ [3]h](j)}(h ``reserved``h]hreserved}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD ubh [3]}(hjD hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKuhjA ubah}(h]h ]h"]h$]h&]uh1jahj' ubjb)}(hhh](h)}(hReserved for future extensions.h]hReserved for future extensions.}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjf ubh)}(h4Drivers and applications must set the array to zero.h]h4Drivers and applications must set the array to zero.}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjf ubeh}(h]h ]h"]h$]h&]morecolsKuh1jahj' ubeh}(h]h ]h"]h$]h&]uh1j\hjYubeh}(h]h ]h"]h$]h&]uh1jWhj ubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubeh}(h]id1ah ]h"]h$]h&]uh1j hjhhhNhNubj)}(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&]hmodulator-txsubchansuh1hhK~hjhhhhubj )}(hhh](h)}(h"Modulator Audio Transmission Flagsh]h"Modulator Audio Transmission Flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubj)}(hhh](j$)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j#hj ubj$)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j#hj ubj$)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j#hj ubjX)}(hhh](j])}(hhh](jb)}(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&]uh1jahj ubjb)}(hhh]h)}(h0x0001h]h0x0001}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jahj ubjb)}(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 }(hj- hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj- ubh or }(hj- hhhNhNubj)}(h``V4L2_TUNER_SUB_LANG1``h]hV4L2_TUNER_SUB_LANG1}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj- ubh.}(hj- hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj* ubah}(h]h ]h"]h$]h&]uh1jahj ubeh}(h]h ]h"]h$]h&]uh1j\hj ubj])}(hhh](jb)}(hhh]h)}(h``V4L2_TUNER_SUB_STEREO``h]j)}(hjs h]hV4L2_TUNER_SUB_STEREO}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq ubah}(h]h ]h"]h$]h&]uh1hhhhKhjn ubah}(h]h ]h"]h$]h&]uh1jahjk ubjb)}(hhh]h)}(h0x0002h]h0x0002}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jahjk ubjb)}(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&]uh1jahjk ubeh}(h]h ]h"]h$]h&]uh1j\hj ubj])}(hhh](jb)}(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&]uh1jahj ubjb)}(hhh]h)}(h0x0008h]h0x0008}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jahj ubjb)}(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 }(hj5 hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubh, }(hj5 hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubh or }(hj5 hhhNhNubj)}(h``V4L2_TUNER_SUB_SAP``h]hV4L2_TUNER_SUB_SAP}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubh. If the hardware does not support the respective audio matrix, or the current video standard does not permit bilingual audio the }(hj5 hhhNhNubh)}(h.:ref:`VIDIOC_S_MODULATOR `h]jY)}(hju h]hVIDIOC_S_MODULATOR}(hjw hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhjs ubah}(h]h ]h"]h$]h&]refdocj^ refdomainj reftyperef refexplicitrefwarnjsvidioc_g_modulatoruh1hhhhKhj5 ubh ioctl shall return an }(hj5 hhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubhB error code and the driver shall fall back to mono or stereo mode.}(hj5 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj2 ubah}(h]h ]h"]h$]h&]uh1jahj ubeh}(h]h ]h"]h$]h&]uh1j\hj ubj])}(hhh](jb)}(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&]uh1jahj ubjb)}(hhh]h)}(h0x0004h]h0x0004}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jahj ubjb)}(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&]uh1jahj ubeh}(h]h ]h"]h$]h&]uh1j\hj ubj])}(hhh](jb)}(hhh]h)}(h``V4L2_TUNER_SUB_SAP``h]j)}(hj, h]hV4L2_TUNER_SUB_SAP}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj* ubah}(h]h ]h"]h$]h&]uh1hhhhKhj' ubah}(h]h ]h"]h$]h&]uh1jahj$ ubjb)}(hhh]h)}(h0x0004h]h0x0004}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjG ubah}(h]h ]h"]h$]h&]uh1jahj$ ubjb)}(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 }(hja hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja 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 }(hja hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja 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 }(hja hhhNhNubj)}(h``V4L2_TUNER_SUB_MONO``h]hV4L2_TUNER_SUB_MONO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubh or }(hja hhhNhNubj)}(h``V4L2_TUNER_SUB_STEREO``h]hV4L2_TUNER_SUB_STEREO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubhv. If the hardware does not support the respective audio matrix, or the current video standard does not permit SAP the }(hja hhhNhNubh)}(h.:ref:`VIDIOC_S_MODULATOR `h]jY)}(hj h]hVIDIOC_S_MODULATOR}(hj hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainj reftyperef refexplicitrefwarnjsvidioc_g_modulatoruh1hhhhKhja ubh ioctl shall return an }(hja hhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubh> error code and driver shall fall back to mono or stereo mode.}(hja hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj^ ubah}(h]h ]h"]h$]h&]uh1jahj$ ubeh}(h]h ]h"]h$]h&]uh1j\hj ubj])}(hhh](jb)}(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&]uh1jahj ubjb)}(hhh]h)}(h0x0010h]h0x0010}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jahj ubjb)}(hhh]h)}(h2Enable the RDS encoder for a radio FM transmitter.h]h2Enable the RDS encoder for a radio FM transmitter.}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj3 ubah}(h]h ]h"]h$]h&]uh1jahj ubeh}(h]h ]h"]h$]h&]uh1j\hj ubeh}(h]h ]h"]h$]h&]uh1jWhj ubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubeh}(h](id2j eh ] longtableah"]modulator-txsubchansah$]h&]uh1j hjhhhNhNexpect_referenced_by_name}jc j sexpect_referenced_by_id}j j subeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhK$ubh)}(hhh](h)}(h Return Valueh]h Return Value}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr 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]jY)}(hj h]hGeneric Error Codes}(hj hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jXhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainj reftyperef refexplicitrefwarnjs gen-errorsuh1hhhhKhj ubh chapter.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjr hhubj)}(hhh]j)}(hFEINVAL The struct :c:type:`v4l2_modulator` ``index`` is out of bounds.h](j)}(hEINVALh]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj8)}(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 ](jRjsc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_modulatoruh1hhhhKhj ubh }(hj hhhNhNubj)}(h ``index``h]hindex}(hj hhhNhNubah}(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&]uh1j7hj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjr 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&]uh1hhhhhhhhKjf }jBhsjh }hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjafootnote_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_handlerjierror_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}(h]haj ]j aunameids}(jBhjAj>hhjjjjjo jl jc j j9j6u nametypes}(jBjAhjjjo jc j9uh}(hhj>hhhjjj j)jjjjjl jjjj j j6jr j j j_ j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jwKsRparse_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&]levelKtypeINFOsourcehlineKuh1jubj)}(hhh]h)}(hhh]h:Hyperlink target "modulator-txsubchans" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineK~uh1jube transformerN include_log] decorationNhhub.