Commit Graph

97 Commits

Author SHA1 Message Date
Ross Owen
176cbeae28 xpd: Cleaned up whitespace 2015-12-02 22:30:43 +00:00
Ross Owen
c2c5d4f24e sofCount reset to 1 on sample rate change (was 0). Caused first feedback value to be incorrect. This was a particular issue for FS operation where updates happen more slowly. 2015-11-21 00:09:44 +00:00
Ross Owen
bf1a19a7be mod_from_last_time reset on SF change. 2015-11-20 17:27:44 +00:00
Ross Owen
a2010a05c0 Fixed FS feedback and input packet sizing 2015-11-20 16:19:49 +00:00
Ross Owen
68faab7ed2 Attempt to fix up FS mode for new feedback system - still not operational. 2015-11-20 13:46:33 +00:00
Ross Owen
9efde26514 Async feedback system re-implemented to allow for MasterClock/SampleRate ration not being a power of 2 e.g. 32000Hz from 24.576MHz MClk. 2015-11-20 12:59:57 +00:00
Ross Owen
2130da665e Fix to feedback factor range fix 2015-11-17 15:22:33 +00:00
Ross Owen
3da6a51d5f Feedback calc allows a couple of extra bits for the multiplication to allow for a better range of mclk/samplerate combos 2015-11-11 14:16:03 +00:00
Ross Owen
9344178fcc xpd: Cleaned up whitespace 2015-10-12 14:19:50 +01:00
Ross Owen
b30292d014 Comment. 2015-09-04 11:36:30 +01:00
Ross Owen
cbf3ff7973 Merge branch 'master' into DEV_IMP_FB 2015-08-25 11:32:25 +01:00
Ross Owen
59a79c1d2e g_speed now re-set to expected packet-size 2015-08-21 12:13:17 +01:00
Ross Owen
b1e69b0590 Various changes to get SPDIF working on x200 board config 2015-03-17 11:52:45 +00:00
Ross Owen
cfca7b347e Fixed build issue due to bad define name (EP vs ENDPOINT) 2015-01-12 18:14:07 +00:00
Ross Owen
8d2b65127e First attempt at complete removal of feedback EP code when not required. 2014-12-08 18:19:56 +00:00
Sam Chesney
2b2b1634a5 Added comment for app note include use 2014-09-22 18:36:12 +01:00
Sam Chesney
e7492156c0 Added comment for app note include use 2014-09-22 17:49:30 +01:00
Sam Chesney
01d08993cb EA Native Transport manager EPs now handled in usb_buffer.xc 2014-09-22 15:52:45 +01:00
Ross Owen
1677eb49b0 xpd: Cleaned up whitespace 2014-07-29 14:55:17 +01:00
Ross Owen
5cb62d8460 comment only 2014-07-29 14:53:47 +01:00
Ross Owen
de0a7e3d6e usb_buffer now takes channel param for interrupt EP. Added required functionality. 2014-07-29 14:33:47 +01:00
Ross Owen
9ce1e407ba Removed use of old INPUT and OUTPUT defines (NUM_USB_CHAN_ used instead) 2014-04-29 18:03:59 +01:00
Ross Owen
2acebdc3a4 Buffer now passes though sample resolution on SET_STREAM_FORMAT_IN/OUT 2014-04-10 11:58:27 +01:00
Ross Owen
4c7771adfa First pass at adding back int endpoint to usb_buffer 2014-03-28 12:22:41 +00:00
Ross Owen
821f527467 Removed un-used tmp var 2014-03-21 17:33:04 +00:00
Ross Owen
9c5e0a1dd8 'Release: 6.5.0beta0' 2014-03-06 17:50:18 +00:00
Ross Owen
ab2bb89db8 Removed inline asm comments in usb buffer select 2014-03-06 13:31:28 +00:00
Ross Owen
f32acbd55d Reordering some declarations for build on 12 tools 2014-03-06 12:14:26 +00:00
Ross Owen
f154c734cd Merge branch 'ANDROID' 2014-03-06 10:36:29 +00:00
Ross Owen
cd8fa036e2 Added support from SET_STREAM_FORMAT_x commands from Ep0 2014-03-06 10:35:48 +00:00
Ross Owen
fa2285f27f Updated usb buffer includes 2014-03-06 10:35:03 +00:00
Sam Chesney
c696fc608b Consolidated MAX_IAP_PACKET_SIZE and IAP_USB_BUFFER_TO_HOST_SIZE into a single define: IAP_MAX_PACKET_SIZE 2014-02-24 16:59:21 +00:00
Sam Chesney
e75e5b131f iAP tx buffer no longer one word longer than max packet size, as length is no longer added to the buffer 2014-02-24 16:47:05 +00:00
Ross Owen
22758cc81c Added some defences against a 0 length packet being received from the host and breaking the MIDI/IAP FIFOs. Also added further use of XUD_Result_t in select functions. 2014-02-20 18:22:46 +00:00
Ross Owen
6d838ece93 Usb-buffer no longer sets up the FB packet on startup. Instead it sets it up on stream start (SET_CHAN_COUNT_OUT cmd). This means that the packet size after bus-speed change is correct! 2014-02-20 14:05:11 +00:00
Ross Owen
f5f4a753ae usb_buffer no longer references inZero buff. Buffer() no longer waits on g_usb_speed to setup initial IN buffer length. This is now done when usb_buffer receives a SET_CHANNEL_COUNT in command (from endpoint0 core due to SetInterface()) 2014-02-19 17:50:22 +00:00
Ross Owen
52483207ad Removed resize of zero-sample IN buffer from usb_buffer. This effort is duplicated in decouple. 2014-02-19 17:10:28 +00:00
Ross Owen
f37a196627 Removed g_iap_reset declaration from usb_buffer. 2014-02-19 17:06:47 +00:00
Ross Owen
9cc53f1736 Resolving conficted merge 2014-02-19 12:29:42 +00:00
Ross Owen
3fbb537d31 Merge 2014-02-19 12:28:54 +00:00
Sam Chesney
9150813b3e Removed initial iAP resets 2014-02-18 18:38:51 +00:00
Sam Chesney
d6809a4082 Added call to XUD_ResetEndpoint to cause buffer to fall through into while(1) loop... 2014-02-18 18:00:54 +00:00
Ross Owen
e126ba349b Removed debug prints. 2014-02-18 17:50:55 +00:00
Sam Chesney
593ccd7172 Changed reset result type (int -> XUD_Result_t) 2014-02-18 15:08:08 +00:00
Sam Chesney
927de7bbca Removed debug print 2014-02-18 15:07:21 +00:00
Sam Chesney
51bfdc113a Merge branch 'IAP2_DEV'
Conflicts:
	module_usb_audio/usb_buffer/usb_buffer.xc
2014-02-18 13:17:54 +00:00
Ross Owen
b138b46496 buffer() tidy after reset work. 2014-02-14 16:20:12 +00:00
Sam Chesney
e3905ae3a4 Fix for bug 15181 - the iAP interrupt In EP can now be disabled, as its use is now reported as deprecated by the ATS system. Disabled by default. 2014-02-14 14:25:42 +00:00
Ross Owen
2894eaf106 buffer() checks new return from SetReady_functions to check for reset. 2014-02-13 14:14:34 +00:00
Ross Owen
8e60cfc77f GetADC counts used instead of inline code. 2014-02-12 14:52:51 +00:00