← Documents Documentation/devicetree/bindings/sound/dai-params.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Sound

DAI stream parameters

DAI channel 수, sample format과 sample rate 변환을 설명합니다.

Source pathDocumentation/devicetree/bindings/sound/dai-params.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

dai-params.yaml:1-37

DAI stream과 TI McASP의 schema 구조, clock·DMA·routing 조건을 먼저 해설하고, 접을 수 있는 영어 원문 전체와 원문 줄 좌표를 보존한 한국어 전문 번역을 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/dai-params.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Digital Audio Interface (DAI) Stream Parameters
8
9 maintainers:
10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
11
12 select: false
13
14 properties:
15 convert-channels:
16 description: Number of audio channels used by DAI
17 $ref: /schemas/types.yaml#/definitions/uint32
18 minimum: 1
19 maximum: 32
20
21 convert-sample-format:
22 description: Audio sample format used by DAI
23 $ref: /schemas/types.yaml#/definitions/string
24 enum:
25 - s8
26 - s16_le
27 - s24_le
28 - s24_3le
29 - s32_le
30
31 convert-rate:
32 description: Audio sample rate used by DAI
33 $ref: /schemas/types.yaml#/definitions/uint32
34 minimum: 8000
35 maximum: 192000
36
37 additionalProperties: true
38

3. 한국어 전문 번역

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

DAI stream parameter schema

1-13

이 YAML schema는 DAI stream conversion parameter를 정의합니다. Schema ID는 `http://devicetree.org/schemas/sound/dai-params.yaml#`이고 maintainer는 Kuninori Morimoto입니다.

`select: false`이므로 compatible을 기준으로 독립 선택되는 binding이 아니라 다른 audio schema에서 참조하는 공통 parameter schema입니다.

Channel 수 변환

14-20

`convert-channels`는 DAI가 사용할 audio channel 수를 나타내는 `uint32`입니다. 허용 범위는 1~32 channel입니다.

Sample format 변환

21-30

`convert-sample-format`은 DAI가 사용할 audio sample format 문자열입니다. 허용값은 `s8`, `s16_le`, `s24_le`, `s24_3le`, `s32_le`입니다.

Sample rate 변환

31-37

`convert-rate`는 DAI가 사용할 audio sample rate를 나타내는 `uint32`이며 8000Hz부터 192000Hz까지 허용합니다. `additionalProperties: true`이므로 참조하는 schema가 다른 속성을 함께 둘 수 있습니다.