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

libfx2-migration: audio example #51

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jedrzejboczar
Copy link

This is a part of splitting #47 into smaller PRs.

This is an example of USB audio device implementation. It includes descriptors configuration for proper enumeration, and handles set/get interface commands.

The relevant code is located in examples/audio/ and in common/.

@todo
Copy link

todo bot commented Jan 8, 2020

{ .generic = (struct usb_desc_generic *) &usb_uac_if_assoc },

// TODO: { .generic = (struct usb_desc_generic *) &usb_uac_if_assoc },
// Marco for adding descriptors to usb_configuration_c
#define UAC_DESCRIPTORS_LIST \
{ .interface = &usb_uac_std_ac_interface }, \
{ .generic = (struct usb_desc_generic *) &usb_uac_ac_header }, \
{ .generic = (struct usb_desc_generic *) &usb_uac_input_terminal }, \


This comment was generated by todo based on a TODO comment in 0a46528 in #51. cc @antmicro.

@todo
Copy link

todo bot commented Jan 8, 2020

this has been extracted from linux headers, but should be organised better,

// TODO: this has been extracted from linux headers, but should be organised better,
// we also need one naming convention corresponding to that in libfx2
enum {
/* bInterfaceProtocol values to denote the version of the standard used */
UAC_VERSION_1 = 0x00,
UAC_VERSION_2 = 0x20,


This comment was generated by todo based on a TODO comment in 0a46528 in #51. cc @antmicro.

@todo
Copy link

todo bot commented Jan 8, 2020

{ .generic = (struct usb_desc_generic *) &usb_uac_if_assoc },

// TODO: { .generic = (struct usb_desc_generic *) &usb_uac_if_assoc },
// Marco for adding descriptors to usb_configuration_c
#define UAC_DESCRIPTORS_LIST \
{ .interface = &usb_uac_std_ac_interface }, \
{ .generic = (struct usb_desc_generic *) &usb_uac_ac_header }, \
{ .generic = (struct usb_desc_generic *) &usb_uac_input_terminal }, \


This comment was generated by todo based on a TODO comment in 4e54a46 in #51. cc @antmicro.

@todo
Copy link

todo bot commented Jan 8, 2020

{ .generic = (struct usb_desc_generic *) &usb_uac_if_assoc },

// TODO: { .generic = (struct usb_desc_generic *) &usb_uac_if_assoc },
// Marco for adding descriptors to usb_configuration_c
#define UAC_DESCRIPTORS_LIST \
{ .interface = &usb_uac_std_ac_interface }, \
{ .generic = (struct usb_desc_generic *) &usb_uac_ac_header }, \
{ .generic = (struct usb_desc_generic *) &usb_uac_input_terminal }, \


This comment was generated by todo based on a TODO comment in 35d56d8 in #51. cc @antmicro.

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.

1 participant