aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Device/Audio.c
AgeCommit message (Collapse)Author
2011-11-18Added Class, ClassDevice, ClassHost and ClassCommon to the internal class ↵Dean
driver source filenames to prevent ambiguities. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1978 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-19Removed the ENDPOINT_DESCRIPTOR_DIR_* macros in favour of the shorter ↵Dean
ENDPOINT_DIR_* macros, which can now be used with both Endpoint_ConfigureEndpoint() and in the device descriptors. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1895 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-19Code style fixes for the Device mode USB Audio Class driver to make it more ↵Dean
in line with the style of the other library Device Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1811 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-16Rename new Audio class driver functions, callbacks and events to ensure that ↵Dean
they contain the USB mode (Device or Host) in the function names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1803 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-08Added new Host mode Audio Class driver.Dean
Added new EVENT_Audio_StreamStartStopChange() event to the Audio Device Class driver to detect stream start/stop events. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1791 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-07Fix errors in the Audio device demos and class driver regarding multiple ↵Dean
sample frequency support. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1787 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-03Added new callback to the Audio Class driver to allow for endpoint control ↵Dean
manipulations such as data sample rates. Modified the Class Driver AudioInput and AudioOutput demos to support multiple sample rates. Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed. Fix broken LowLevel audio demo descriptors. Minor documentation fixes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1779 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-29Added new incomplete AudioInputHost Host LowLevel demo.Dean
Added missing Audio class control request definitions. Added support for the Audio class GET STATUS request so that it is correctly ACKed when sent by the host. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1771 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-12Add missing function attributes to the pipe/endpoint functions for all ↵Dean
architectures. Perform endianness correction in the HID report parser for big-endian platforms. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1734 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-19Initial restructuring of the core USB driver module to support multiple ↵Dean
architectures in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1672 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-24All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean
is included, and no longer need to be seperately included. All LowLevel demos changed to use the constants and types defined in the USB class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1537 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-30Reverted Endpoint/Pipe non-sequential configuration hack, placed restriction ↵Dean
on the configuration order instead to ensure maximum reliability. Altered all low level device and host mode demos to ensure that endpoints and pipes are configured in ascending order properly. Rewrote all low level host mode demos' configuration descriptor parser code to ensure that pipes are enumerated in ascending order, and to ensure maximum compatibility with devices. Incremented all device mode demo's device descriptor revision numbers to ensure that any descriptor changes are re-fetched on machines which have enumerated previous versions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1502 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-22Changed all Device mode LowLevel demos and Device Class drivers so that the ↵Dean
control request is acknowledged and any data transferred as quickly as possible without any processing inbetween sections, so that long callbacks or event handlers will not break communications with the host by exceeding the maximum control request stage timeout period. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1448 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Add missing const qualifiers to class drivers.Dean
Indent core library function parameters so that there is only one parameter per line, to increase readability. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1398 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-29The Audio_Device_IsSampleReceived() and Audio_Device_IsReadyForNextSample() ↵Dean
functions are now inline, to reduce overhead. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1224 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-11Add more include protection macros to give the user warnings when they try ↵Dean
to manually include private driver header files, instead of the public driver headers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1123 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Inline USB management functions in the Class drivers which are standardized ↵Dean
but currently unused, to prevent them from using up unneccesary cycles and flash in the user application. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1037 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-13Test with -Wextra, fix library warnings due to unused function parameters.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@969 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-07Add optional pipe double banking support to the Host mode Class drivers.Dean
Descriptor processing routines now pass around void pointers rather than uint8_t pointers, as their destination datatype is know well known -- they are just streams of bytes until they are cast to the correct destination type by DESCRIPTOR_CAST. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@884 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-03Changed Audio Class driver sample read/write functions to be inline, to ↵Dean
reduce the number of cycles needed to transfer samples to and from the device (allowing more time for processing and output). Fixed ClassDriver AudioOutput demo not selecting an audio output mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@857 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-30Fix incorrect configuration in the ClassDriver AudioOutput demo.Dean
Make all audio device Class Driver functions require a reference to the Audio class instance, so that the endpoint size can be checked (and to standardize the APIs). Make LEDs more responsive in the AudioOutput device demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@702 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27State information for class drivers is now zeroed out during enumeration ↵Dean
(both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@689 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-21Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean
USB state. Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@676 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-28Added const modifiers to device mode class drivers.Dean
Added parameter directions to function parameter documentation. Added new experimental FAST_STREAM_FUNCTIONS compile time option to speed up stream transfers at the expense of a higher FLASH consumption (needs testing to verify improved throughput). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@636 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-18Break device mode class driver interfaces into seperate config and state ↵Dean
structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@609 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-14Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean
Split out common defines/types from class drivers into a seperate common class driver directory. Make central USB Class driver dispatch headers, used for both device and host modes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@594 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-11Changed to new device mode Class Driver function name prefixes to make way ↵Dean
for similar host mode Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@591 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-04Ensure all USB device class drivers have the same three main functions as ↵Dean
their interface for consistency. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@566 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-04Minor documentation page updates.Dean
Redocumented all device demos, now that they have changed over to the new USB class drivers. Added C linkage to class drivers for C++ support. Added prefixes to most of the class driver constants to prevent name clashes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@565 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-01Add MIDI class driver, update MIDI device demo to use the new USB class ↵Dean
driver. All device demos/projects have now been converted to the new library class drivers, although documentation is yet to be completed. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@563 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-01Commit of new class abstraction APIs for all device demos other than the ↵Dean
MIDI demo - not documented yet. Removed scheduler and memory allocation libraries. Added new EVENT_USB_StartOfFrame event in the library to indicate the start of each USB frame (when generated). Removed Tx interrupt from the USBtoSerial demo; now sends characters via polling to ensure more time for the Rx interrupt. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@562 d5102386-fcda-11dd-9fdb-3debd5008f28