From 0a4652855d897498c72f308098e00fb468cca066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Tue, 7 Jan 2020 13:58:38 +0100 Subject: [PATCH] add audio example readme --- examples/audio/README.md | 16 ++++++++++++++++ examples/common/uac.d | 7 ------- 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 examples/audio/README.md delete mode 100644 examples/common/uac.d diff --git a/examples/audio/README.md b/examples/audio/README.md new file mode 100644 index 0000000..801638b --- /dev/null +++ b/examples/audio/README.md @@ -0,0 +1,16 @@ +# USB audio example + +This is an example application implementing USB audio class (UAC) (see: [Universal Serial Bus Device Class Definition for Audio Devices](https://usb.org/)). + +Device descriptor uses class/subclass/protocol compatible with Interface Association Descriptors +(see: [USB Interface Association Descriptor Device Class Code and Use Model, 1.0](https://www.usb.org/sites/default/files/iadclasscode_r10.pdf)). + +There are two interfaces: + +* Audio control interface: 0 endpoints - no need for interrupt endpoint + +* Audio streaming interface (with alternate settings 0 and 1) + * alternate setting 0: no endpoints, host can use it to disable audio in case of bandwidth problems + * alternate setting 1: single isochronous endpoint + +The application provides simple audio topology consisting of a single input terminal and single output terminal. diff --git a/examples/common/uac.d b/examples/common/uac.d deleted file mode 100644 index 1ec5a17..0000000 --- a/examples/common/uac.d +++ /dev/null @@ -1,7 +0,0 @@ -build/../../common/uac.rel: ../../common/uac.c ../../common/uac.h \ - ../../third_party/libfx2/firmware/library/include/fx2usb.h \ - ../../third_party/libfx2/firmware/library/include/fx2regs.h \ - ../../third_party/libfx2/firmware/library/include/fx2ints.h \ - ../../third_party/libfx2/firmware/library/include/usb.h \ - ../../common/uac_defs.h ../../common/usb_defs.h \ - ../../third_party/libfx2/firmware/library/include/fx2lib.h