Commit Graph

53 Commits

Author SHA1 Message Date
sakumisu
02340e0f44 chore: static code analysis 2024-09-19 09:50:18 +08:00
sakumisu
b56b67182a refactor(class/audio/usbh_audio): refactor getting audio control info 2024-09-08 22:12:29 +08:00
sakumisu
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +08:00
sakumisu
755d067650 update: check class->hport validity 2024-06-23 14:16:57 +08:00
sakumisu
47e6ed1c75 fix(class/audio/usbh_audio): fix sample frequence 2024-06-16 20:59:46 +08:00
sakumisu
5fec929b93 support id table for multi vid pid 2024-05-03 18:54:36 +08:00
sakumisu
23e2787a43 add user_data param in host class for users 2024-04-24 22:40:55 +08:00
sakumisu
c8be4d6fd3 change INFO to RAW 2024-04-07 23:31:04 +08:00
sakumisu
d1c7fa8c19 support multi port api for device 2024-02-06 19:52:22 +08:00
sakumisu
eeb304ae08 update log tag 2024-01-30 23:04:35 +08:00
sakumisu
14f1f597f1 add usb errno, do not use system errno 2023-12-05 21:34:32 +08:00
sakumisu
5bbe2a97f2 refactor urb, add ep & hport in urb to make hardware pipe more reusable 2023-11-16 19:56:52 +08:00
sakimisu
c8b832e1a0 fix function name 2023-08-05 11:08:24 +08:00
Zhihong Chen
4d7938e349 update for midi
- add MidiCodeIndexNumber enum
- update midi descriptor. Audio v1.0's endpoint has 9 bytes instead of 7.

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-08-05 11:05:44 +08:00
sakumisu
c8ecf31c99 remove ununsed code 2023-07-13 20:13:51 +08:00
sakimisu
3057f41020 use static memory to malloc & free class 2023-07-12 22:48:18 +08:00
sakimisu
1c7110bd86 refactor audio device class 2023-06-21 20:43:35 +08:00
Zhihong Chen
16180bfc8e audio: fix descriptor endpoint attribute error and add audiov2 feedback descriptor
- fix descriptor endpoint attribute error and add audiov2 feedback descriptor

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-06-02 15:26:32 +08:00
sakimisu
9172223fe6 call usbh_xxx_stop when class enumerates completely 2023-05-17 20:43:23 +08:00
sakumisu
e9ad3bdc21 add volume and mute control 2023-03-22 14:58:07 +08:00
sakumisu
75ddfc8e4d move hub and hport variable into common ram to reduce nocache ram usage 2023-02-18 15:19:52 +08:00
sakimisu
3fa3f3e356 do not check if device is closed 2023-02-07 22:54:51 +08:00
sakumisu
82e4baf908 support more audio altsetting 2023-02-05 14:38:52 +08:00
sakimisu
d0890c2caf fix class get data due to 528d8dc9d6 2023-01-15 17:20:31 +08:00
Zhihong Chen
1d84f735d3 update audio class and demo template
- fix descriptor error.
- move audio v2 default_sampling_freq_table from class driver to demo template.

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-01-02 12:53:42 +08:00
sakimisu
914d3cbf42 add audio host driver 2022-12-31 22:44:08 +08:00
sakumisu
dca8b4cfed remove intf malloc 2022-10-20 21:22:08 +08:00
sakumisu
cb2510f121 remove custom handler, split class handler into interface and endpoint
handler
2022-09-08 21:44:56 +08:00
sakumisu
3c94fca8d8 refactor usb device intf and ep register 2022-08-20 18:08:36 +08:00
sakumisu
523d33506d give up class register 2022-08-19 23:34:35 +08:00
sakumisu
6e29b6a427 delete sof callback 2022-08-18 21:48:42 +08:00
sakumisu
7377b5183d Simplify the license rows, standardize header macro name 2022-08-18 21:41:19 +08:00
sakumisu
54c52944d2 remove comments to reduce rows 2022-08-17 20:12:37 +08:00
sakumisu
cb906c90b8 fix clock source process in uac2.0 2022-08-11 17:27:00 +08:00
sakumisu
bdbf3cb670 info level log to debug level 2022-05-25 11:00:25 +08:00
sakumisu
9708f51420 replace malloc with usb_malloc 2022-04-15 16:49:54 +08:00
sakumisu
81bc7dd63a disable sampling rate which outweigh 48k 2022-04-13 16:24:09 +08:00
sakumisu
67c6a8cdcc add entity_id param for audio function 2022-04-12 16:39:05 +08:00
sakumisu
065a0a4a0b update audio class driver 2022-04-09 17:15:06 +08:00
sakumisu
b285051bdf add audio2.0 support and template 2022-04-08 21:11:02 +08:00
aozima
3cce9e7d78 clean compiler warning. 2022-03-27 14:58:25 +08:00
sakumisu
5d78031bb2 update audio and video macros,add xxx_open and xxx_close function 2022-03-26 16:07:28 +08:00
sakumisu
ae5c691587 add static to embelish request handler 2022-02-12 18:49:06 +08:00
sakimisu
1edbae8e07 format codes 2022-02-08 11:44:46 +08:00
sakimusu
f8ea5c12fa rename paramater named class with devclass instead 2022-02-01 22:00:10 +08:00
sakumisu
c5bfeed867 update license 2022-01-15 17:13:57 +08:00
sakumisu
95f3b81cfd add usb debug level control and color display 2022-01-15 17:07:54 +08:00
sakumisu
c3cc88d95f fix doxygen user name 2021-12-04 14:39:35 +08:00
sakumisu
636b30c3d8 refactor usb class structure 2021-11-29 10:32:05 +08:00
sakumisu
5a22e7a57b modify print log,add USBD_LOG_INFO forever print 2021-11-14 21:14:51 +08:00