Commit Graph

64 Commits

Author SHA1 Message Date
Ross Owen
48d73c429a Fixed native DSD (lower word of MACC ignored if sample depth <= 24 bits). Native DSD needs 32 bits. 2014-01-18 23:41:22 +00:00
Ross Owen
7fe8f1bbce Added use of SAMPLE_SUBSLOT_SIZE_ defines and general use of global slotSizevar. Added unpack/pack of 2 byte slot size. Added unreachable builtins to slotsize switch and default case. 2013-12-19 11:54:23 +00:00
Ross Owen
37dc369c69 Merge commit 'b2816ac3aa4163a8b91c6079a89c9a5418292602' into 6V3_DEV 2013-12-12 12:12:03 +00:00
Ross Owen
1fefff6e7c Merge commit '662ac7df58af07f3dc1a34a04933b903e5ab5fdd' into 6V3_DEV 2013-12-12 12:11:14 +00:00
Ross Owen
1131d22e4f Merge 2013-12-12 12:10:00 +00:00
Ross Owen
cea9522fb5 Merge commit '82e07458911e4115981508e0538f682c146544ca' into 6V3_DEV 2013-12-12 12:07:57 +00:00
Ross Owen
2cbba4be9e Revert "Reduce the amount of output buffering." Not safe if channel count
differs between input and output

This reverts commit a2a151b510.
2013-12-12 12:03:42 +00:00
Richard Osborne
662ac7df58 Don't store length of the buffer in the buffer itself.
This is pointless as nothing ever reads it.
2013-12-09 18:09:19 +00:00
Richard Osborne
e56b271e0c Make MIDI buffer globals static. 2013-12-09 18:09:19 +00:00
Richard Osborne
82e0745891 Remove local buffer pointers which are set but never used. 2013-12-09 18:09:19 +00:00
Richard Osborne
a2a151b510 Reduce the amount of output buffering.
It looks their was a typo here - the code calculates the maximum audio
packet size and uses it for the input buffer but not the output buffer.
Now the amount of input buffering matches the amount of output buffering.
2013-12-09 18:09:19 +00:00
Richard Osborne
09bafcfb3a Base the buffer size on the MIDI_USB_BUFFER_TO_HOST_SIZE.
The buffer task never writes more than this amount of data to the buffer
so there is no point in a bigger buffer.
2013-12-09 18:09:19 +00:00
Richard Osborne
577b5f500d Make functions static where possible, no intended functionality change.
This saves 208 bytes.
2013-12-09 18:09:18 +00:00
Richard Osborne
4b22faaf69 Remove checked in file generated from a merge conflict. 2013-12-09 18:09:18 +00:00
Sam Chesney
a90878a94b Removed uppercase letters from file names from module_iap 2013-12-05 11:16:20 +00:00
Ross Owen
dcdc1ba2b8 Comment and #if 1 tidy only 2013-11-14 15:45:11 +00:00
Ross Owen
3232c05caa midi.h include guarded by MIDI define 2013-10-28 12:30:59 +00:00
Ross Owen
f0f9c1ecdb Tidy up clockcmds header 2013-10-23 17:20:16 +01:00
Ross Owen
8316b87c9f Decouple now reports out underflow to deliver and doesnt send mute samples itself 2013-09-18 15:02:27 +01:00
Ross Owen
8e91f2749f Comment only 2013-09-16 22:51:31 +01:00
Ross Owen
068675b126 Initial speed based slotsize setting now also guarded by FULL_SPEED_AUDIO2 2013-09-13 23:37:58 +01:00
Ross Owen
3d8193af40 SHARED_GLOBAL now marked volatile and has memory clobber for safety 2013-09-11 12:05:25 +01:00
Ross Owen
c17db023ce Slight tweak to DoP idle word 2013-09-09 23:42:04 +01:00
Ross Owen
71797cc608 Fixed up debug FB tolerance test build 2013-09-09 23:38:22 +01:00
Ross Owen
d0479dd92a Slight hack for Sony DoP mode - uses global dsdMode to output DoP idle on undeflow. NOT FOR GENERAL RELEASE 2013-09-05 23:22:00 +01:00
Ross Owen
56e92355a3 Underflow case now uses shared mute sample (for DSD use) 2013-08-29 19:27:21 +01:00
Ross Owen
1e33bf819d Changes to support DSD Native mode 2013-08-23 14:23:37 +01:00
Ross Owen
b514f474e4 naming change to macro only 2013-07-16 17:14:28 +01:00
Ross Owen
f52aaeba8e Fixed issued with outover flow when CHAN_BUFF_CTRL enabled 2013-07-16 17:12:41 +01:00
Ross Owen
1bd8744dc2 Added control channel for buffering for lower-power, non-memory polling buffering 2013-07-09 15:48:26 +01:00
Ross Owen
b2491e95c9 Added robustness to bad length Audio 1.0 packets (bug #11032) 2013-06-10 15:47:49 +01:00
Ross Owen
9d324bf3d0 Vendor_ReadHID-> UserReadHID inline with other function naming 2013-05-15 12:46:56 +01:00
Ross Owen
ce9a112def g_hidData[] reset before calling ReadHIDButtons() 2013-05-10 16:19:43 +01:00
Ross Owen
e7d23603a4 Tidy 2013-05-08 14:24:34 +01:00
Ross Owen
5cf3d6c45a Tidied up iAP reset 2013-03-08 14:56:29 +00:00
Ross Owen
5199f00733 Removed unused vars 2013-03-08 10:41:47 +00:00
Ross Owen
dcd5477491 Simplication of iAP IN path. Single buffer now used. Removed ptrs etc 2013-03-07 18:59:39 +00:00
Ross Owen
9189e90f6c Further tidy up 2013-03-07 17:57:39 +00:00
Ross Owen
cf14ee398c Again further simplication of IAP receive data case - no longer uses ptr 2013-03-07 17:16:51 +00:00
Ross Owen
ab98969650 Further simplification of IAP receive data case - no longer stick length in buffer[0]. Its pointless 2013-03-07 16:56:57 +00:00
Ross Owen
609d210efd Simplification of IAP receive data case 2013-03-07 16:53:51 +00:00
Ross Owen
99fec446e6 More removal of now un-used buffer logic 2013-03-07 16:46:56 +00:00
Ross Owen
27b05df90d Removing some un-used buffer logic 2013-03-07 16:44:53 +00:00
Ross Owen
f6d95a5b60 IAP removed from decouple 2013-03-07 16:37:09 +00:00
Ross Owen
bf58de3006 Started to move iOS/iAP code from decouple to usb_buffer 2013-03-07 16:05:45 +00:00
Ross Owen
ec026e36db Just tidy up 2013-03-07 11:52:28 +00:00
Ross Owen
2fb4d427ed Added check for bad PID etc in IAP out data 2013-02-18 12:20:00 +00:00
Ross Owen
e81174301f Removed some commented out code 2013-02-18 12:18:22 +00:00
Ross Owen
2765fc58af Fixed issue with initial MIDI message and first audio IN packet now used UAC1 chan count define 2013-02-07 17:19:56 +00:00
Ross Owen
420bbe8120 Decouple can now handle different channel counts for UAC1/UAC2 2013-02-07 17:18:17 +00:00