Skip to content

Commit eb50aec

Browse files
jfischer-nocfriedt
authored andcommitted
sample: usb: move Audio 1.0 samples to legacy
Move Audio 1.0 headphones-microphone and headset samples that demonstrate only legacy device stack functionality to the legacy directory. Signed-off-by: Johann Fischer <[email protected]>
1 parent 57cc286 commit eb50aec

File tree

14 files changed

+31
-41
lines changed

14 files changed

+31
-41
lines changed

samples/subsys/usb/audio/headphones_microphone/sample.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

samples/subsys/usb/audio/headset/sample.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

samples/subsys/usb/audio/headphones_microphone/README.rst renamed to samples/subsys/usb/legacy/audio_headphones_microphone/README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. zephyr:code-sample:: usb-audio-headphones-microphone
2-
:name: USB Audio microphone & headphones
2+
:name: Legacy USB Audio microphone & headphones
33
:relevant-api: _usb_device_core_api
44

55
Implement a USB Audio microphone + headphones device with audio IN/OUT loopback.
@@ -12,6 +12,9 @@ project. This very simple sample that performs loopback over IN/OUT
1212
ISO endpoints. The device will show up as two audio devices. One
1313
Input (Microphone) and one Output (Headphones) device.
1414

15+
.. note::
16+
This samples demonstrate deprecated :ref:`usb_device_stack`.
17+
1518
Building and Running
1619
********************
1720

@@ -36,4 +39,4 @@ Steps to test the sample:
3639
- Verify the recorded audio stream.
3740

3841
This sample can be found under
39-
:zephyr_file:`samples/subsys/usb/audio/headphones_microphone` in the Zephyr project tree.
42+
:zephyr_file:`samples/subsys/usb/legacy/audio_headphones_microphone` in the Zephyr project tree.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sample:
2+
name: USB audio Headphones Microphone sample
3+
tests:
4+
sample.usb.legacy.audio.headphones_microphone:
5+
depends_on: usb_device
6+
tags: usb
7+
build_only: true
8+
integration_platforms:
9+
- nrf52840dk/nrf52840
10+
- nrf5340dk/nrf5340/cpuapp

samples/subsys/usb/audio/headset/README.rst renamed to samples/subsys/usb/legacy/audio_headset/README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. zephyr:code-sample:: usb-audio-headset
2-
:name: USB Audio headset
2+
:name: Legacy USB Audio headset
33
:relevant-api: _usb_device_core_api
44

55
Implement a USB Audio headset device with audio IN/OUT loopback.
@@ -11,6 +11,9 @@ This sample app demonstrates use of a USB Audio driver by the Zephyr
1111
project. This very simple sample that performs loopback over IN/OUT
1212
ISO endpoints. The device will show up as single audio device.
1313

14+
.. note::
15+
This samples demonstrate deprecated :ref:`usb_device_stack`.
16+
1417
Building and Running
1518
********************
1619

@@ -35,4 +38,4 @@ Steps to test the sample:
3538
- Verify the recorded audio stream.
3639

3740
This sample can be found under
38-
:zephyr_file:`samples/subsys/usb/audio/headset` in the Zephyr project tree.
41+
:zephyr_file:`samples/subsys/usb/legacy/audio_headset` in the Zephyr project tree.

0 commit comments

Comments
 (0)