aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-12-31 15:03:57 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-12-31 15:03:57 +0000
commitb8fd4dd51c3fb1da7c543c44e2ab67f5f0ea20ac (patch)
tree75f8d5607312e5c19f68c74b9707936e1829dfca
parent64fe1cd0b2be01fd7b377736a85c1bd88a5fd429 (diff)
downloadlufa-b8fd4dd51c3fb1da7c543c44e2ab67f5f0ea20ac.tar.gz
lufa-b8fd4dd51c3fb1da7c543c44e2ab67f5f0ea20ac.tar.bz2
lufa-b8fd4dd51c3fb1da7c543c44e2ab67f5f0ea20ac.zip
Fixed incorrect byte ordering in the Audio_Device_WriteSample24 function (thanks to WZab).
-rw-r--r--LUFA/Drivers/USB/Class/Device/Audio.h2
-rw-r--r--LUFA/ManPages/ChangeLog.txt1
2 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/Audio.h b/LUFA/Drivers/USB/Class/Device/Audio.h
index 85e37e1c6..87b91ceb3 100644
--- a/LUFA/Drivers/USB/Class/Device/Audio.h
+++ b/LUFA/Drivers/USB/Class/Device/Audio.h
@@ -318,8 +318,8 @@
static inline void Audio_Device_WriteSample24(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo,
const int32_t Sample)
{
- Endpoint_Write_Byte(Sample >> 16);
Endpoint_Write_Word_LE(Sample);
+ Endpoint_Write_Byte(Sample >> 16);
if (Endpoint_BytesInEndpoint() == AudioInterfaceInfo->Config.DataINEndpointSize)
Endpoint_ClearIN();
diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt
index d3ba81c4c..87aa5eedb 100644
--- a/LUFA/ManPages/ChangeLog.txt
+++ b/LUFA/ManPages/ChangeLog.txt
@@ -39,6 +39,7 @@
* - Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID class driver (thanks to Opendous Inc.)
* - Fixed incorrect endpoint initialisation order in the several device demos (thanks to Rick Drolet)
* - Fixed inverted Minimum board LEDs
+ * - Fixed incorrect byte ordering in the Audio_Device_WriteSample24 function (thanks to WZab)
* - Library Applications:
* - Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy
* - Fixed broken DFU bootloader, added XPLAIN support for bootloader start when XCK jumpered to ground