Skip to content
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

CDC class dcd_transdimension improvements #926

Closed
wants to merge 18 commits into from

Conversation

HiFiPhile
Copy link
Collaborator

@HiFiPhile HiFiPhile commented Jun 27, 2021

Describe the PR
Various improvements in order to improve CDC efficiency.

Test result can be found in #920, which shows a great increment in throughput and
and reduce execution time.

  • Add xfer_fifo support for CDC and dcd_transdimension
  • Add functions to support direct (DMA) fifo transfer for CDC class
  • tud_cdc_rx_wanted_cb is still WIP since can't be done without accessing underlying fifo struct members
  • Added explicite xfer_fifo option for UAC class

Additional context
Linear buffer is still used by default since more RAM maybe needed (at least 4K for dcd_transdimension), and no tud_cdc_rx_wanted_cb for the moment.

Instead of export the fifo it's also possible to export only tu_fifo_buffer_info_t, but it's inconsistent with audio class.

@HiFiPhile HiFiPhile changed the title Add xfer_fifo support for CDC and dcd_transdimension CDC class dcd_transdimension improvements Jun 27, 2021
@HiFiPhile HiFiPhile force-pushed the xfer_fifo_transdimension branch 3 times, most recently from 64e5551 to d059aa9 Compare June 30, 2021 15:27
@HiFiPhile
Copy link
Collaborator Author

I think I'll separate this PR into multiple parts for easier review:

  • Improvements for dcd_transdimension
  • CDC xfer_fifo & DMA support
  • Update UAC2 with dcd_transdimension

@hathach
Copy link
Owner

hathach commented Aug 31, 2021

yes, please do, separate the cdc fifo expose, since I don't want to commit to have that at the moment. Need more time to evaluate the API or alternatives.

@HiFiPhile
Copy link
Collaborator Author

Superceded by #1062 #1063 #1064

@HiFiPhile HiFiPhile closed this Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants