summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-09-04 10:49:44 +0200
committerGitHub <[email protected]>2026-09-04 10:49:44 +0200
commit29851564af08cb4909175315d20c71f5eca13040 (patch)
tree32d417cc4f80d87b54cf16d31636b2f758525ab7 /src/host
parentf89e21aa66ce142d7b959cd9fc2a45d47834f121 (diff)
parentef404be0337b1486b0a45acd248639ac8dea6c15 (diff)
Merge pull request #3774 from zjzhang-cn/feature/tuh-audio-uac-1.0
feat(audio): add USB Audio Host (UAC 1.0/2.0) support
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 94d075813..fd0c9b7b5 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -258,6 +258,18 @@ static usbh_class_driver_t const usbh_class_drivers[] = {
},
#endif
+ #if CFG_TUH_AUDIO
+ {
+ .name = DRIVER_NAME("AUDIO"),
+ .init = audioh_init,
+ .deinit = audioh_deinit,
+ .open = audioh_open,
+ .set_config = audioh_set_config,
+ .xfer_cb = audioh_xfer_cb,
+ .close = audioh_close
+ },
+ #endif
+
#if CFG_TUH_HID
{
.name = DRIVER_NAME("HID"),