samples/subsys/usb/audio/headset/README.html · samples/subsys/usb/audio/headset/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · USB Audio

USB Audio 헤드셋

입출력을 하나의 USB Audio 장치로 노출하고 재생·녹음으로 검증합니다.

Official pathsamples/subsys/usb/audio/headset/README.html
Source filesamples/subsys/usb/audio/headset/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Overlay 구성, host 연결과 headset loopback 시험 절차를 설명합니다.

Device

Single headset

Streams

Audio IN · OUT

Transport

ISO endpoints

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 9EF7622182B36A94E36807B8CE698788219503D0DBB0F2106DAF2DB62750F93B
.. zephyr:code-sample:: usb-audio-headset
   :name: USB Audio headset
   :relevant-api: _usb_device_core_api

   Implement a USB Audio headset device with audio IN/OUT loopback.

Overview
********

This sample app demonstrates use of a USB Audio driver by the Zephyr
project. This very simple sample that performs loopback over IN/OUT
ISO endpoints. The device will show up as single audio device.

Building and Running
********************

In order to build the sample an overlay file with required options
must be provided. By default app.overlay is added. An overlay contains
software and hardware specific information which allow to fully
describe the device.

After you have built and flashed the sample app image to your board, plug the
board into a host device.

Testing
*******

Steps to test the sample:

- Build and flash the sample as described above.
- Connect to the HOST.
- Chose default Audio IN/OUT.
- Start streaming audio (for example by playing an audio file on the HOST).
- Start recording audio stream (for example using Audacity).
- Verify the recorded audio stream.

This sample can be found under
:zephyr_file:`samples/subsys/usb/audio/headset` in the Zephyr project tree.

Part 3

한국어 전문 번역

개요

이 sample application은 Zephyr project가 제공하는 USB Audio driver 사용법을 보여 줍니다. Audio IN/OUT isochronous(ISO) endpoint 사이에서 단순 loopback을 수행합니다.

Host에서는 장치가 입력과 출력을 함께 제공하는 하나의 USB Audio headset device로 나타납니다. Host가 출력한 stream이 장치를 거쳐 입력 stream으로 되돌아오므로 재생과 녹음을 함께 사용해 data path를 확인할 수 있습니다.

빌드 및 실행

Sample을 build하려면 필요한 option이 들어 있는 overlay file을 제공해야 합니다. 기본적으로 app.overlay가 추가됩니다. Overlay에는 device를 완전히 기술하는 데 필요한 software 및 hardware별 정보가 들어 있습니다.

Sample application image를 build해 board에 flash한 뒤 board를 host device에 연결합니다.

테스트

다음 순서로 sample을 시험합니다.

  1. 위 설명대로 sample을 build하고 flash합니다.
  2. Board를 HOST에 연결합니다.
  3. 기본 Audio IN/OUT device를 선택합니다.
  4. HOST에서 audio file을 재생하는 등의 방법으로 audio streaming을 시작합니다.
  5. Audacity 등을 사용해 audio stream 녹음을 시작합니다.
  6. 녹음된 audio stream이 재생한 내용을 올바르게 담고 있는지 확인합니다.

이 sample은 Zephyr project tree의 samples/subsys/usb/audio/headset에서 찾을 수 있습니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.