Commit Graph

87 Commits

Author SHA1 Message Date
Sam Chesney
13f5bb313d xpd: Cleaned up whitespace 2017-08-03 15:50:15 +01:00
Ed Clarke
721ee98ea4 Initial changes to remove xud dependancies when compiling with NO_USB=1 2017-06-29 09:48:59 +01:00
Ross Owen
8815f8ce6c Partially undid removal of SR change code when MIN_FREQ=MAX_FREQ. DFU currently uses the SR change code to operate. 2017-03-14 17:17:59 +00:00
Ross Owen
1b0282fa9c Merge smart_mic_plus -> master 2016-12-13 12:38:55 +00:00
Ross Owen
409b4c668a Fixed USB Audio buffer size (word/byte) 2016-12-09 15:03:17 +00:00
Ross Owen
a699c51075 Tidy up MIN/MAX freq checks 2016-12-08 11:51:11 +00:00
Ross Owen
4132c6989a Resolved build issue with UAC1 builds when MAX_FREQ != MIN_FREQ 2016-12-07 15:19:01 +00:00
Ross Owen
a454308ac1 Fixed build issue (missing var) 2016-12-06 16:17:41 +00:00
Ross Owen
ca1925db7a Opts for fitting beclear 2016-12-05 19:26:14 +00:00
Ross Owen
6a8e4ce35a Fixed up IN_BUFFER_PREFILL increase for regression testing. 2016-03-20 18:36:04 +00:00
Ross Owen
544d4bb185 IN_PREFILL increased (quick change in order to check how change affects regression) 2016-03-17 19:21:13 +00:00
Ross Owen
9344178fcc xpd: Cleaned up whitespace 2015-10-12 14:19:50 +01:00
Ross Owen
08c55f9a7d Fixed trap when no mclk applied by customer (device now sends 0-length packets in this case) 2015-09-21 16:02:25 +01:00
Ross Owen
6cc3ea7549 Merge 2015-09-17 17:27:37 +01:00
Ross Owen
2cda8bb1ac Merge 2015-09-17 17:11:07 +01:00
Ross Owen
f5da75fa46 Mixer and non-mixer chan comms (decouple->audio path) now the same scheme. 2015-09-07 16:09:13 +01:00
Ross Owen
59baec261f Fixed up initial values for totalSampsToWrite/sampsToWrite 2015-09-04 11:33:41 +01:00
Ross Owen
9210b11823 More tidy. Multiple IN packets now ditched on over flow (gets buffer to nice pre-fill level). inOverflow flag removed completely. 2015-09-02 15:59:37 +01:00
Ross Owen
facfcd82ec Removed pktcount debug. 2015-09-02 12:37:33 +01:00
Ross Owen
e5cbfe147c Started removing debug code. 2015-09-02 12:31:26 +01:00
Ross Owen
9171df460f Innitial removal of inOverflow state and deletion of oldest packet from buffer. Includes lots of debug. 2015-09-02 12:20:39 +01:00
Ross Owen
da5f0701a7 Comment & whitespace only. 2015-08-21 12:11:02 +01:00
Ross Owen
37e73cde48 Fixes to decouple interrupt for dual-issue compatibility purposes. 2015-04-09 14:55:39 +01:00
Ross Owen
575ee95714 xpd: Cleaned up whitespace 2015-03-30 12:24:03 +01:00
Ross Owen
7cd5631e4b The audio i/o core now uses "underflow" sample as it's request word (i.e. different for PCM/DSD). This gets passed all the way through mixer and on to decouple such that it can be used in the underflow state. This allows the removal of the communication of the underflow state to the audio i/o core from decouple and thus "stand-alone" mixer now works again. 2015-03-20 17:23:24 +00:00
Ross Owen
2de25aa4b5 All inline asm in decouple now marked volatile 2015-03-18 12:20:24 +00:00
Ross Owen
a4b753557c SetupZeroSendBuffer() now does calculations based on global g_numUsbChan_In (rather than checking bus speed and using NUM_USB_CHAN_ defines) 2014-09-19 11:59:07 +01:00
Ross Owen
878b92ac26 Removed dead interrupt EP code from decouple 2014-07-29 14:53:37 +01:00
Ross Owen
5e0e063c10 c_clk_int param (and associated functionality) removed from decouple 2014-07-29 12:50:33 +01:00
Ross Owen
80dff15100 Fixed bad usage of NUM_USB_CHAN_OUT when _IN should have been used. Caused output only build to wait for buffer setup to happened forever.. 2014-04-30 21:02:43 +01:00
Ross Owen
b93fe11839 Removed use of old INPUT and OUTPUT defines (NUM_USB_CHAN_ used instead) 2014-04-29 18:03:34 +01:00
Ross Owen
61339f6650 Fixed passing on SET_STREAM_FORMAT_ commands from decouple - was incorrectly guarded by DSD define. 2014-04-17 16:07:14 +01:00
Ross Owen
9caa429a20 INPUT_VOLUME_CONTROL now affects descriptors and processing in decouple() 2014-04-17 14:48:32 +01:00
Ross Owen
641fbdfca6 Added define OUTPUT_VOLUME_CONTROL which disables output volume control - both in the descriptors and processing. NOTE: Still could be extended to disable volume in MIXER 2014-04-17 14:14:05 +01:00
Ross Owen
90b17ed8ab Decouple now sents out sample res to audio core. SET_DSD_MODE removed and replaced with SET_STREAM_FORMAT_OUT 2014-04-10 12:00:33 +01:00
Ross Owen
28d11704a8 Some Var name tidy ups to keep naming a bit more consistent 2014-04-10 11:59:33 +01:00
Ross Owen
f0341dcd8b Decouple no longer remembers dsdMode. It always sends through changes. EP should only send though changes as required. 2014-04-08 15:45:37 +01:00
Ross Owen
78215ee827 Removed unused usb_speed var 2014-03-21 17:32:52 +00:00
Ross Owen
0e120103c1 unreachable logic the wrong way around in input switch statement. Used cases removed, unused kept. 2014-03-06 21:17:07 +00:00
Ross Owen
71c876f356 Decouple only tells audio to change to/from DSD/PCM mode if there is an actual change to be made 2014-03-06 21:16:17 +00:00
Ross Owen
9c5e0a1dd8 'Release: 6.5.0beta0' 2014-03-06 17:50:18 +00:00
Ross Owen
87194a878e Re-added builtin_unreachable() using SUBSLOT_X_USED defines. 32 bit volume processing guarded by OUTPUT_RESOLUTION_32BIT_USED 2014-03-06 16:16:30 +00:00
Ross Owen
c1a175ae8b - Optimised 16bit pack/unpack.
- Added use of separate subSlot_in & subSlot_out vars
- Zero buffer now setup using curSubSlot_in
- Added dealing with SET_STREAM_FORMAT commands from usb buffer
2014-03-06 10:34:41 +00:00
Ross Owen
31034e10ce Removed checking of USB Bus-speed on every decouple interrupt handler. SlotSize and maxPacketSize now setup on SET_STREAM_FORMAT event 2014-03-06 10:32:00 +00:00
Ross Owen
c914a7d9c6 Added global format change vars for stream change communications from usb_buffer(). 2014-03-06 10:31:13 +00:00
Ross Owen
3ea529014a Updates to decouple packet size related defines. 2014-03-06 10:30:25 +00:00
Ross Owen
55c68f3c31 Updates to decouple includes 2014-03-06 10:29:40 +00:00
Ross Owen
2800df22eb Comment only. 2014-02-20 14:03:24 +00:00
Ross Owen
41b1bdd815 Removed unused vars from decouple 2014-02-20 14:00:22 +00:00
Ross Owen
4ed3fbfab6 Removed explicit wait loop for aud_ctl_chan global. Now relies on setup of aud_to/from_host flag globals. 2014-02-20 13:32:35 +00:00