-
Notifications
You must be signed in to change notification settings - Fork 39
fix(uvc): improve uac compatibility and add checks for uvc #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bffcba8
6621975
0d8f1fe
fd1c730
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # The following lines of boilerplate have to be in your project's CMakeLists | ||
| # in this exact order for cmake to work correctly | ||
| cmake_minimum_required(VERSION 3.5) | ||
|
|
||
| include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
| project(audio_player) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| | Supported Targets | ESP32-S2 | ESP32-S3 | ESP32-P4 | | ||
| | ----------------- | -------- | -------- | -------- | | ||
|
|
||
| # UVC driver example: Video stream | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Outdated description. It would be nice to provide a simple 'how-to' use this example
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
|
|
||
| ## Selecting the USB Component | ||
|
|
||
| To manually select which USB Component shall be used to build this example, please refer to the following documentation page: [Manual USB component selection](../../../../../../docs/host/usb_host_lib/usb_component_manual_selection.md). | ||
|
|
||
| ## Enable MIC playback | ||
|
|
||
| To enable MIC playback in menuconfig `(Top) → Example USB Audio Player → Playback audio from microphone` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| idf_component_register(SRC_DIRS . | ||
| INCLUDE_DIRS "." | ||
| EMBED_FILES ../spiffs/output_8k.wav ../spiffs/output_16k.wav) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||
| menu "Example USB Audio Player" | ||||||
| config EXAMPLE_MIC_PLAYBACK | ||||||
| bool "Playback audio from microphone" | ||||||
| default n | ||||||
| help | ||||||
| Enabled this to playback audio from microphone | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo:
Suggested change
|
||||||
|
|
||||||
| endmenu | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| dependencies: | ||
| idf: ">=5.0" # The version of the ESP-IDF that esp-audio-player requires | ||
| usb_host_uac: | ||
| override_path: ../../../../usb_host_uac/ | ||
| espressif/usb: | ||
| version: "*" | ||
| override_path: "../../../../../../usb" | ||
| rules: # Both if clauses must be fulfilled to override the component | ||
| - if: "$ENV_VAR_USB_COMP_MANAGED == yes" # Environmental variable to select between managed (esp-usb) and native (esp-idf) USB Component | ||
| - if: "idf_version >=5.4" # Use managed component only for 5.4 and above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should work also on H4