mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e8be7e97e6
instead of declaring the uAPI structs using usual refs, e. g.: .. _foo-struct: Use the C domain way: .. c:type:: foo_struct This way, the kAPI documentation can use cross-references to point to the uAPI symbols. That solves about ~100 undefined warnings like: WARNING: c:type reference target not found: foo_struct Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
53 lines
1.7 KiB
ReStructuredText
53 lines
1.7 KiB
ReStructuredText
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
.. _radio:
|
|
|
|
***************
|
|
Radio Interface
|
|
***************
|
|
|
|
This interface is intended for AM and FM (analog) radio receivers and
|
|
transmitters.
|
|
|
|
Conventionally V4L2 radio devices are accessed through character device
|
|
special files named ``/dev/radio`` and ``/dev/radio0`` to
|
|
``/dev/radio63`` with major number 81 and minor numbers 64 to 127.
|
|
|
|
|
|
Querying Capabilities
|
|
=====================
|
|
|
|
Devices supporting the radio interface set the ``V4L2_CAP_RADIO`` and
|
|
``V4L2_CAP_TUNER`` or ``V4L2_CAP_MODULATOR`` flag in the
|
|
``capabilities`` field of struct
|
|
:c:type:`v4l2_capability` returned by the
|
|
:ref:`VIDIOC_QUERYCAP` ioctl. Other combinations of
|
|
capability flags are reserved for future extensions.
|
|
|
|
|
|
Supplemental Functions
|
|
======================
|
|
|
|
Radio devices can support :ref:`controls <control>`, and must support
|
|
the :ref:`tuner or modulator <tuner>` ioctls.
|
|
|
|
They do not support the video input or output, audio input or output,
|
|
video standard, cropping and scaling, compression and streaming
|
|
parameter, or overlay ioctls. All other ioctls and I/O methods are
|
|
reserved for future extensions.
|
|
|
|
|
|
Programming
|
|
===========
|
|
|
|
Radio devices may have a couple audio controls (as discussed in
|
|
:ref:`control`) such as a volume control, possibly custom controls.
|
|
Further all radio devices have one tuner or modulator (these are
|
|
discussed in :ref:`tuner`) with index number zero to select the radio
|
|
frequency and to determine if a monaural or FM stereo program is
|
|
received/emitted. Drivers switch automatically between AM and FM
|
|
depending on the selected frequency. The
|
|
:ref:`VIDIOC_G_TUNER <VIDIOC_G_TUNER>` or
|
|
:ref:`VIDIOC_G_MODULATOR <VIDIOC_G_MODULATOR>` ioctl reports the
|
|
supported frequency range.
|