요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _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.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
AM/FM 라디오 장치와 노드
1-16Radio 인터페이스는 AM과 FM 아날로그 라디오 수신기 및 송신기를 위한 V4L2 인터페이스입니다. 영상 장치가 아니라 주파수와 오디오 관련 control을 다루는 radio 전용 장치 모델입니다.
관례적으로 장치는 major 81, minor 64부터 127을 사용하고 `/dev/radio`, `/dev/radio0`부터 `/dev/radio63`까지의 character device special file로 노출됩니다.
V4L2 radio 장치의 전통적인 번호와 이름입니다.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _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.
Capability와 지원하지 않는 기능
17-39Radio 인터페이스를 지원하면 `VIDIOC_QUERYCAP`가 반환한 `struct v4l2_capability.capabilities`에 `V4L2_CAP_RADIO`와 함께 수신기용 `V4L2_CAP_TUNER` 또는 송신기용 `V4L2_CAP_MODULATOR`를 설정합니다. 그 밖의 capability 조합은 향후 확장을 위해 예약되어 있습니다.
Radio 장치는 control을 지원할 수 있고 tuner 또는 modulator ioctl은 반드시 지원해야 합니다. 반대로 video input/output, audio input/output, video standard, cropping/scaling, compression, streaming parameter, overlay ioctl은 지원하지 않습니다. 여기에 명시되지 않은 다른 ioctl과 I/O 방식도 향후 확장용입니다.
수신과 송신 역할에 따라 필수 flag가 달라집니다.
영상 처리 경로의 ioctl은 radio 장치에 적용하지 않습니다.
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.
주파수와 mono/stereo 제어
40-52Radio 장치에는 volume 같은 소수의 audio control과 장치 고유 control이 있을 수 있습니다. 모든 장치는 index 0인 tuner 또는 modulator 하나를 가지며, 이 객체로 radio frequency를 선택하고 mono 또는 FM stereo 프로그램의 수신·송신 상태를 다룹니다.
AM과 FM 전환은 선택한 주파수에 따라 드라이버가 자동으로 수행합니다. 지원 주파수 범위는 수신기에서 `VIDIOC_G_TUNER`, 송신기에서 `VIDIOC_G_MODULATOR`로 조회합니다.
장치 역할을 확인하고 index 0 객체에서 주파수를 선택합니다.
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.
요약·해설
dev-radio.rst:1-52AM/FM radio 노드는 index 0 tuner 또는 modulator로 주파수를 관리하며, 영상·overlay·streaming parameter API를 지원하지 않는 간결한 V4L2 장치 모델입니다.