Skip to content

Commit

Permalink
usb_stream: support uac and uvc param self-adaption
Browse files Browse the repository at this point in the history
1. Support parsing descriptors to check the device functions and capabilities
2. Self-adaption appropriate interfaces based on descriptors and user's configurations
3. Support UVC config to any resolution, the first frame index will be used
4. Fix STALL (appear on some devices) during get short configuration descriptor
5. Resize endpoint 0 MPS based on device descriptor

fix #146,
fix #148,
fix #152,
fix #157,
fix #166,
fix #198,
fix #219,
  • Loading branch information
leeebo committed Dec 23, 2022
1 parent 3b98c36 commit c875fbc
Show file tree
Hide file tree
Showing 13 changed files with 1,744 additions and 601 deletions.
21 changes: 21 additions & 0 deletions components/usb/usb_stream/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# ChangeLog

## v0.4.0 - 2022-12-22

### Enhancements:

* Support parsing descriptors to check the device functions and capabilities
* Self-adaption appropriate interfaces based on descriptors and user's configurations
* Camera:
* Support UVC config to any resolution, the first frame index will be used

### API Changes:

* add `optional` label to some members in `uvc_config_t` and `uac_config_t`, users can optionally set a value. The self-adaption process will first use actual configs from descriptors, if no appropriate interface found, will use the params from user's configuration

### Bug Fixes:

* USB:
* Fix STALL (appear on some devices) during get short configuration descriptor
* Resize endpoint 0 MPS based on device descriptor

## v0.3.3 - 2022-12-22

### Enhancements:
Expand Down
10 changes: 8 additions & 2 deletions components/usb/usb_stream/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ menu "UVC Stream"
bool "Get camera device descriptor during emum"
default y
config UVC_GET_CONFIG_DESC
bool "Get camera config descriptor during emum"
bool "Get and parse camera config descriptor during emum"
default y
help
This option should be enable if need self-adaptation
config UVC_PRINT_DESC
bool "Print descriptor info"
default y
config UVC_PRINT_DESC_VERBOSE
bool "Print camera more descriptor info"
bool "Print descriptor info in verbose mode"
depends on UVC_PRINT_DESC
default n
config UVC_PRINT_PROBE_RESULT
bool "Print video cur probe result"
Expand Down
Loading

0 comments on commit c875fbc

Please sign in to comment.