← Documents Documentation/sound/cards/bt87x.rst GitHub 원문 ↗

Linux 6.18.37 · Sound

ALSA BT87x 드라이버

Bt878의 오디오 PCI 기능을 담당하는 `snd-bt87x` 캡처 전용 드라이버의 카드 인식 옵션, 디지털·아날로그 PCM 모드와 매우 높은 A/D 표본률 제약을 설명합니다.

Source pathDocumentation/sound/cards/bt87x.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

bt87x.rst:1-83

Bt878의 오디오 PCI 기능을 담당하는 `snd-bt87x` 캡처 전용 드라이버의 카드 인식 옵션, 디지털·아날로그 PCM 모드와 매우 높은 A/D 표본률 제약을 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 =================
2 ALSA BT87x Driver
3 =================
4
5 Intro
6 =====
7
8 You might have noticed that the bt878 grabber cards have actually
9 *two* PCI functions:
10 ::
11
12 $ lspci
13 [ ... ]
14 00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
15 00:0a.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
16 [ ... ]
17
18 The first does video, it is backward compatible to the bt848. The second
19 does audio. snd-bt87x is a driver for the second function. It's a sound
20 driver which can be used for recording sound (and *only* recording, no
21 playback). As most TV cards come with a short cable which can be plugged
22 into your sound card's line-in you probably don't need this driver if all
23 you want to do is just watching TV...
24
25 Some cards do not bother to connect anything to the audio input pins of
26 the chip, and some other cards use the audio function to transport MPEG
27 video data, so it's quite possible that audio recording may not work
28 with your card.
29
30
31 Driver Status
32 =============
33
34 The driver is now stable. However, it doesn't know about many TV cards,
35 and it refuses to load for cards it doesn't know.
36
37 If the driver complains ("Unknown TV card found, the audio driver will
38 not load"), you can specify the ``load_all=1`` option to force the driver to
39 try to use the audio capture function of your card. If the frequency of
40 recorded data is not right, try to specify the ``digital_rate`` option with
41 other values than the default 32000 (often it's 44100 or 64000).
42
43 If you have an unknown card, please mail the ID and board name to
44 <alsa-devel@alsa-project.org>, regardless of whether audio capture works
45 or not, so that future versions of this driver know about your card.
46
47
48 Audio modes
49 ===========
50
51 The chip knows two different modes (digital/analog). snd-bt87x
52 registers two PCM devices, one for each mode. They cannot be used at
53 the same time.
54
55
56 Digital audio mode
57 ==================
58
59 The first device (hw:X,0) gives you 16 bit stereo sound. The sample
60 rate depends on the external source which feeds the Bt87x with digital
61 sound via I2S interface.
62
63
64 Analog audio mode (A/D)
65 =======================
66
67 The second device (hw:X,1) gives you 8 or 16 bit mono sound. Supported
68 sample rates are between 119466 and 448000 Hz (yes, these numbers are
69 that high). If you've set the CONFIG_SND_BT87X_OVERCLOCK option, the
70 maximum sample rate is 1792000 Hz, but audio data becomes unusable
71 beyond 896000 Hz on my card.
72
73 The chip has three analog inputs. Consequently you'll get a mixer
74 device to control these.
75
76
77 Have fun,
78
79 Clemens
80
81
82 Written by Clemens Ladisch <clemens@ladisch.de>
83 big parts copied from btaudio.txt by Gerd Knorr <kraxel@bytesex.org>
84

3. 한국어 전문 번역

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

Bt878의 두 PCI 기능과 캡처 전용 드라이버

1-30

Bt878 그래버 카드는 실제로 두 개의 PCI 기능을 제공한다. `lspci`에서 `00:0a.0`은 Brooktree Corporation Bt878 멀티미디어 비디오 컨트롤러로 나타나고, `00:0a.1`은 같은 칩의 멀티미디어 컨트롤러로 나타난다.

$ lspci
[ ... ]
00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
00:0a.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
[ ... ]

첫 번째 기능은 비디오를 처리하며 bt848과 하위 호환된다. 두 번째 기능은 오디오를 처리하고 `snd-bt87x`가 이 기능의 드라이버다. 이 사운드 드라이버는 녹음만 지원하며 재생은 지원하지 않는다. 대부분의 TV 카드에는 사운드 카드의 라인 입력에 연결하는 짧은 케이블이 있으므로 단순히 TV를 보는 용도라면 이 드라이버가 필요하지 않을 수 있다.

일부 카드는 칩의 오디오 입력 핀에 아무것도 연결하지 않고, 다른 일부 카드는 오디오 기능으로 MPEG 비디오 데이터를 운반한다. 따라서 사용하는 카드에서는 오디오 녹음이 동작하지 않을 가능성도 있다.

Bt878 PCI 기능
PCI 기능 예역할드라이버 특성
00:0a.0비디오, bt848 하위 호환비디오 기능
00:0a.1오디오snd-bt87x, 녹음 전용

같은 칩이 비디오와 오디오를 별도 PCI 기능으로 노출한다.

=================
ALSA BT87x Driver
=================

Intro
=====

You might have noticed that the bt878 grabber cards have actually
*two* PCI functions:
::

  $ lspci
  [ ... ]
  00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
  00:0a.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
  [ ... ]

The first does video, it is backward compatible to the bt848.  The second
does audio.  snd-bt87x is a driver for the second function.  It's a sound
driver which can be used for recording sound (and *only* recording, no
playback).  As most TV cards come with a short cable which can be plugged
into your sound card's line-in you probably don't need this driver if all
you want to do is just watching TV...

Some cards do not bother to connect anything to the audio input pins of
the chip, and some other cards use the audio function to transport MPEG
video data, so it's quite possible that audio recording may not work
with your card.

드라이버 상태와 알 수 없는 카드

31-46

드라이버 자체는 안정적이지만 많은 TV 카드 정보를 알지 못하므로, 인식하지 못한 카드에는 적재를 거부한다.

`Unknown TV card found, the audio driver will not load`라는 메시지가 나오면 `load_all=1` 옵션으로 해당 카드의 오디오 캡처 기능 사용을 강제로 시도할 수 있다. 녹음 데이터의 주파수가 맞지 않으면 기본값 32000 대신 `digital_rate`에 다른 값을 지정한다. 흔한 값은 44100 또는 64000이다.

알 수 없는 카드를 사용한다면 오디오 캡처 성공 여부와 관계없이 카드 ID와 보드 이름을 `<alsa-devel@alsa-project.org>`로 보내야 향후 드라이버 버전에 카드 정보를 추가할 수 있다.

알 수 없는 BT87x 카드 진단
상황옵션값 / 조치
카드를 몰라 적재 거부load_allload_all=1로 캡처 기능 강제 시도
녹음 주파수 불일치digital_rate기본 32000, 흔한 대안 44100 또는 64000
미등록 카드식별 정보 보고카드 ID와 보드 이름을 alsa-devel에 전달

적재 실패와 잘못된 녹음 주파수에 대응하는 옵션이다.

Driver Status
=============

The driver is now stable.  However, it doesn't know about many TV cards,
and it refuses to load for cards it doesn't know.

If the driver complains ("Unknown TV card found, the audio driver will
not load"), you can specify the ``load_all=1`` option to force the driver to
try to use the audio capture function of your card.  If the frequency of
recorded data is not right, try to specify the ``digital_rate`` option with
other values than the default 32000 (often it's 44100 or 64000).

If you have an unknown card, please mail the ID and board name to
<alsa-devel@alsa-project.org>, regardless of whether audio capture works
or not, so that future versions of this driver know about your card.

디지털 및 아날로그 오디오 모드

47-83

칩에는 디지털과 아날로그라는 두 모드가 있고 `snd-bt87x`는 모드별 PCM 장치를 하나씩 등록한다. 두 PCM 장치는 동시에 사용할 수 없다.

첫 번째 장치 `hw:X,0`은 16비트 스테레오 디지털 오디오를 제공한다. 표본률은 I2S 인터페이스를 통해 Bt87x에 디지털 사운드를 공급하는 외부 소스에 따라 결정된다.

두 번째 장치 `hw:X,1`은 8비트 또는 16비트 모노 아날로그 A/D 오디오를 제공한다. 지원 표본률은 119466~448000Hz로 실제로 매우 높다. `CONFIG_SND_BT87X_OVERCLOCK`을 설정하면 최대 1792000Hz지만, 작성자의 카드에서는 896000Hz를 넘으면 오디오 데이터를 사용할 수 없었다.

칩에는 아날로그 입력이 세 개 있으므로 이 입력들을 제어하는 믹서 장치도 제공된다. 문서는 Clemens Ladisch가 작성했으며 큰 부분은 Gerd Knorr의 `btaudio.txt`에서 가져왔다.

BT87x 오디오 모드
PCM모드형식표본률
hw:X,0디지털16비트 스테레오외부 I2S 소스에 종속
hw:X,1아날로그 A/D8/16비트 모노119466~448000Hz, 오버클록 시 최대 1792000Hz

서로 배타적인 두 PCM 장치의 형식과 표본률이다.


Audio modes
===========

The chip knows two different modes (digital/analog).  snd-bt87x
registers two PCM devices, one for each mode.  They cannot be used at
the same time.


Digital audio mode
==================

The first device (hw:X,0) gives you 16 bit stereo sound.  The sample
rate depends on the external source which feeds the Bt87x with digital
sound via I2S interface.


Analog audio mode (A/D)
=======================

The second device (hw:X,1) gives you 8 or 16 bit mono sound.  Supported
sample rates are between 119466 and 448000 Hz (yes, these numbers are
that high).  If you've set the CONFIG_SND_BT87X_OVERCLOCK option, the
maximum sample rate is 1792000 Hz, but audio data becomes unusable
beyond 896000 Hz on my card.

The chip has three analog inputs.  Consequently you'll get a mixer
device to control these.


Have fun,

  Clemens


Written by Clemens Ladisch <clemens@ladisch.de>
big parts copied from btaudio.txt by Gerd Knorr <kraxel@bytesex.org>