← Documents Documentation/userspace-api/media/rc/rc-intro.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / Remote Controller

Remote Controller 소개

RC 장치를 일반 evdev input으로 노출하고 IR 고유 속성을 sysfs로 제어합니다.

Source pathDocumentation/userspace-api/media/rc/rc-intro.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

rc-intro.rst:1-24

RC subsystem은 표준 input event 전달을 재사용하면서 다양한 remote protocol과 receiver·transmitter 조합에 필요한 설정을 sysfs class node로 확장합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
2
3 .. _Remote_controllers_Intro:
4
5 ************
6 Introduction
7 ************
8
9 Currently, most analog and digital devices have a Infrared input for
10 remote controllers. Each manufacturer has their own type of control. It
11 is not rare for the same manufacturer to ship different types of
12 controls, depending on the device.
13
14 A Remote Controller interface is mapped as a normal evdev/input
15 interface, just like a keyboard or a mouse. So, it uses all ioctls
16 already defined for any other input devices.
17
18 However, remove controllers are more flexible than a normal input
19 device, as the IR receiver (and/or transmitter) can be used in
20 conjunction with a wide variety of different IR remotes.
21
22 In order to allow flexibility, the Remote Controller subsystem allows
23 controlling the RC-specific attributes via
24 :ref:`the sysfs class nodes <remote_controllers_sysfs_nodes>`.
25

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Remote protocol과 장치의 다양성

1-13

현재 대부분의 analog·digital media 장치는 remote controller용 infrared input을 갖습니다. 제조사마다 제어 방식이 다르고 같은 제조사도 제품에 따라 서로 다른 remote type을 제공하는 일이 흔합니다.

따라서 RC subsystem은 하나의 고정 protocol이나 handset을 전제로 하지 않고 receiver·transmitter와 여러 protocol 및 keymap을 조합할 수 있게 설계됩니다.

.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later

.. _Remote_controllers_Intro:

************
Introduction
************

Currently, most analog and digital devices have a Infrared input for
remote controllers. Each manufacturer has their own type of control. It
is not rare for the same manufacturer to ship different types of
controls, depending on the device.

evdev input mapping과 sysfs 확장

14-24

Remote Controller interface는 keyboard나 mouse처럼 일반 evdev/input interface로 mapping됩니다. 그래서 다른 input device에 정의된 기존 ioctl과 event 전달 방식을 그대로 사용합니다.

다만 IR receiver 또는 transmitter는 매우 다양한 remote와 조합할 수 있어 일반 input device보다 구성 유연성이 큽니다. RC 고유 protocol·keymap·device attribute는 remote controller sysfs class node를 통해 제어합니다.

RC subsystem의 두 제어 면
항목설명
evdev/inputKey event 전달과 일반 input ioctl
RC sysfs classProtocol, keymap 등 RC-specific attribute 제어

표준 입력 동작과 IR 전용 구성을 분리합니다.

A Remote Controller interface is mapped as a normal evdev/input
interface, just like a keyboard or a mouse. So, it uses all ioctls
already defined for any other input devices.

However, remove controllers are more flexible than a normal input
device, as the IR receiver (and/or transmitter) can be used in
conjunction with a wide variety of different IR remotes.

In order to allow flexibility, the Remote Controller subsystem allows
controlling the RC-specific attributes via
:ref:`the sysfs class nodes <remote_controllers_sysfs_nodes>`.