samples: usb: add UAC2 implicit feedback sample

The sample illustates how to achieve bidirectional asynchronous audio.
Implicit feedback is the only way to achieve asynchronous USB headset
on devices that have only one isochronous IN and one isochronous OUT
endpoint.

The sample implements stereo playback and mono recording. While it would
be possible to have stereo recording, the commonly available headsets
are mono only. The number of channels can differ between audio sink and
source because the only requirement is that the two run on same clock.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
This commit is contained in:
Tomasz Moń 2023-12-06 08:58:58 +01:00 committed by Anas Nashif
commit d3e1bc8b59
14 changed files with 1024 additions and 0 deletions

View file

@ -603,6 +603,8 @@ The following Product IDs are currently used:
+----------------------------------------------------+--------+
| :zephyr:code-sample:`uac2-explicit-feedback` | 0x000E |
+----------------------------------------------------+--------+
| :zephyr:code-sample:`uac2-implicit-feedback` | 0x000F |
+----------------------------------------------------+--------+
| :zephyr:code-sample:`usb-dfu` (DFU Mode) | 0xFFFF |
+----------------------------------------------------+--------+

View file

@ -55,6 +55,8 @@ Samples
* :zephyr:code-sample:`uac2-explicit-feedback`
* :zephyr:code-sample:`uac2-implicit-feedback`
Samples ported to new USB device support
----------------------------------------