timvideos / HDMI2USB-fx2-firmware

HDMI2USB firmware for the Cypress FX2 found on the Digilent Atlys and Numato Opsis boards.
24 stars 11 forks source link

libfx2-migration: audio example #51

Open jedrzejboczar opened 4 years ago

jedrzejboczar commented 4 years ago

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[bot] commented 4 years ago

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

https://github.com/timvideos/HDMI2USB-fx2-firmware/blob/0a4652855d897498c72f308098e00fb468cca066/common/uac.h#L22-L27


This comment was generated by todo based on a TODO comment in 0a4652855d897498c72f308098e00fb468cca066 in #51. cc @antmicro.
todo[bot] commented 4 years ago

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

https://github.com/timvideos/HDMI2USB-fx2-firmware/blob/0a4652855d897498c72f308098e00fb468cca066/common/uac_defs.h#L8-L13


This comment was generated by todo based on a TODO comment in 0a4652855d897498c72f308098e00fb468cca066 in #51. cc @antmicro.
todo[bot] commented 4 years ago

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

https://github.com/timvideos/HDMI2USB-fx2-firmware/blob/4e54a46f87fdcadbb5fa4bcb13938e7ff7e71759/common/uac.h#L22-L27


This comment was generated by todo based on a TODO comment in 4e54a46f87fdcadbb5fa4bcb13938e7ff7e71759 in #51. cc @antmicro.
todo[bot] commented 4 years ago

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

https://github.com/timvideos/HDMI2USB-fx2-firmware/blob/35d56d8db26cb3c1258eb5b0e1a38520a10931b9/common/uac.h#L22-L27


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