Commit Graph

  • fa2285f27f Updated usb buffer includes Ross Owen 2014-03-06 10:35:03 +00:00
  • 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 Ross Owen 2014-03-06 10:34:41 +00:00
  • 31034e10ce Removed checking of USB Bus-speed on every decouple interrupt handler. SlotSize and maxPacketSize now setup on SET_STREAM_FORMAT event Ross Owen 2014-03-06 10:32:00 +00:00
  • c914a7d9c6 Added global format change vars for stream change communications from usb_buffer(). Ross Owen 2014-03-06 10:31:13 +00:00
  • 3ea529014a Updates to decouple packet size related defines. Ross Owen 2014-03-06 10:30:25 +00:00
  • 55c68f3c31 Updates to decouple includes Ross Owen 2014-03-06 10:29:40 +00:00
  • ea5d579631 Added macros for 16bit memory load/store to xc_ptr.h Ross Owen 2014-03-06 10:29:02 +00:00
  • 2ea052b5d5 main.xc no longer includes old usb.h header Ross Owen 2014-03-06 10:28:22 +00:00
  • f39785d9d8 VendorAudioRequests() header change such that can be called from C Ross Owen 2014-03-06 10:27:44 +00:00
  • 01da998328 Various updates to descriptors to use new defines/headers/structs Ross Owen 2014-03-06 10:26:37 +00:00
  • 15614ceafc descriptors now includes updated module_usb_shared headers. Ross Owen 2014-03-06 10:23:04 +00:00
  • 16dd905149 Audio requests now includes usb_std_requests.h (was using usb.h) Ross Owen 2014-03-06 10:22:17 +00:00
  • 046d218eba Removed SAMPLE_BIT_RESOLUTION and SAMPLE_SUBSLOT_SIZE defines. STREAM_FORMAT defines now used. Ross Owen 2014-03-06 10:21:48 +00:00
  • 8a6f4236d5 DFU enabled by default in devicedefines.h Ross Owen 2014-03-06 10:20:57 +00:00
  • f759f05368 Removed unused commands. Ross Owen 2014-03-06 10:20:26 +00:00
  • a10c2e00ec Removed IO_EXPANSION from devicedefines.h No longer user. Ross Owen 2014-03-06 10:19:55 +00:00
  • 7c3b8b2dd7 Added SET_STREAM_FORMAT_ commands to commands. Ross Owen 2014-03-06 10:19:09 +00:00
  • 5d2ae2740f Updated DFU api such that can be called from C. Also used new enums in DFU desc. Ross Owen 2014-03-06 10:18:54 +00:00
  • 5009e74a1e Added DFUDelay helper fund (endpoint 0 now in c so no timers... ) Ross Owen 2014-03-06 10:18:20 +00:00
  • 67604bdb15 gitignore update only. Ross Owen 2014-03-06 10:17:51 +00:00
  • 77e7073470 Endpoint 0 now in C (rather than XC). Allows better use of structures for descriptors. Also added changes for FS desc munging using structs and alt SET_STREAM_FORMAT commands. Ross Owen 2014-03-06 10:17:37 +00:00
  • c696fc608b Consolidated MAX_IAP_PACKET_SIZE and IAP_USB_BUFFER_TO_HOST_SIZE into a single define: IAP_MAX_PACKET_SIZE Sam Chesney 2014-02-24 16:59:21 +00:00
  • e75e5b131f iAP tx buffer no longer one word longer than max packet size, as length is no longer added to the buffer Sam Chesney 2014-02-24 16:47:05 +00:00
  • ca69c2cc38 iap_handle_poll_dev_det() now takes incoming and outgoing buffers as parameters, no longer takes timer parameter Sam Chesney 2014-02-21 14:55:24 +00:00
  • 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. Ross Owen 2014-02-20 18:22:46 +00:00
  • 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! Ross Owen 2014-02-20 14:05:11 +00:00
  • 2800df22eb Comment only. Ross Owen 2014-02-20 14:03:24 +00:00
  • 41b1bdd815 Removed unused vars from decouple Ross Owen 2014-02-20 14:00:22 +00:00
  • c82e8c5a90 GetADCCounts now uses XUD_BusSpeed_t Ross Owen 2014-02-20 13:34:13 +00:00
  • b9a8b1b4bf XUD_BusSpeed_t now used for global bus-speed var (previously was unsigned) Ross Owen 2014-02-20 13:33:51 +00:00
  • 4ed3fbfab6 Removed explicit wait loop for aud_ctl_chan global. Now relies on setup of aud_to/from_host flag globals. Ross Owen 2014-02-20 13:32:35 +00:00
  • fbdfdff31c Added use of GET_SHARED_GLOBAL macro rather than direct inline ASM when getting bus-speed in interrupt handler. Ross Owen 2014-02-20 13:31:28 +00:00
  • bab06c66ea Global vars for EP's in decouple now XUD_ep (were int) Ross Owen 2014-02-20 13:30:34 +00:00
  • 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()) Ross Owen 2014-02-19 17:50:22 +00:00
  • 3e5ac4ffdd Added SetupZerosSendBuffer func since code duplicated. This function is now also called on SET_CHANNEL_COUNT_IN Ross Owen 2014-02-19 17:48:53 +00:00
  • bfe829f227 Comment only. Ross Owen 2014-02-19 17:47:13 +00:00
  • 52483207ad Removed resize of zero-sample IN buffer from usb_buffer. This effort is duplicated in decouple. Ross Owen 2014-02-19 17:10:28 +00:00
  • f37a196627 Removed g_iap_reset declaration from usb_buffer. Ross Owen 2014-02-19 17:06:47 +00:00
  • a97666892a Removed setting of g_iap_reset. Previously was used to signal decouple to reset iAP on a SetConfig event. No longer used Ross Owen 2014-02-19 17:06:16 +00:00
  • 859e264fb6 Removed guard that was used when re-calling SetReady_In on sample rate change. New (non-channel-based XUD API means this can be called multiple times without locking) Ross Owen 2014-02-19 15:23:44 +00:00
  • 77cb50170e Removed initial wait for USB speed from decouple before g_numUsbChanXX is set. This would break mixer on initial startup if USB not connected. This should be okay since g_numUsbChan is set on SET_CHANNEL_COUNT Ross Owen 2014-02-19 14:58:06 +00:00
  • 9cc53f1736 Resolving conficted merge Ross Owen 2014-02-19 12:29:42 +00:00
  • 3fbb537d31 Merge Ross Owen 2014-02-19 12:28:54 +00:00
  • 9150813b3e Removed initial iAP resets Sam Chesney 2014-02-18 18:38:51 +00:00
  • d6809a4082 Added call to XUD_ResetEndpoint to cause buffer to fall through into while(1) loop... Sam Chesney 2014-02-18 18:00:54 +00:00
  • d98736a18d Resolve excess elements in array initializer warning when iAP interrupt EP is disabled Sam Chesney 2014-02-18 17:59:04 +00:00
  • e126ba349b Removed debug prints. Ross Owen 2014-02-18 17:50:55 +00:00
  • 1338adf031 Merge branch 'master' of git://git/apps/sc_usb_audio Ross Owen 2014-02-18 16:51:45 +00:00
  • 6afd42be8e XUD_Result_t usage in audiorequests (fixing audio class 1.0 build issues) Ross Owen 2014-02-18 16:51:37 +00:00
  • 593ccd7172 Changed reset result type (int -> XUD_Result_t) Sam Chesney 2014-02-18 15:08:08 +00:00
  • 927de7bbca Removed debug print Sam Chesney 2014-02-18 15:07:21 +00:00
  • 51bfdc113a Merge branch 'IAP2_DEV' Sam Chesney 2014-02-18 13:17:54 +00:00
  • fbbe6d50a1 Merge branch 'XUD_RESET_EP' of git://git/apps/sc_usb_audio into XUD_RESET_EP Ross Owen 2014-02-18 11:59:43 +00:00
  • b9b9ee5e36 retVal -> result and XUD_Result_t enum properly used. Ross Owen 2014-02-18 11:59:36 +00:00
  • f43470f20b Explicitly select the PC connector to begin with (as connections to the USB B cannot actively be detected) for designs where the USB B is selected by driving the switch high (#13887) Sam Chesney 2014-02-17 19:46:54 +00:00
  • 80920296d7 Call to GetSetupPacker now uses XUD_Result_t Ross Owen 2014-02-14 16:21:06 +00:00
  • 7c83dcb0cd Removed #error Ross Owen 2014-02-14 16:20:37 +00:00
  • 7ef494f651 Call to GetBuffer now passed length param. Ross Owen 2014-02-14 16:20:26 +00:00
  • b138b46496 buffer() tidy after reset work. Ross Owen 2014-02-14 16:20:12 +00:00
  • a7d88ae583 Started adding length params and checking for XUD_Result_t Ross Owen 2014-02-14 16:19:41 +00:00
  • 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. Sam Chesney 2014-02-14 14:18:37 +00:00
  • f2366e0f34 Merge branch 'IAP2_DEV' into XUD_RESET_EP Sam Chesney 2014-02-14 11:39:29 +00:00
  • e21a42c26d Added the required +1 for IAP_INTERFACE_STRING_INDEX in string index enum. Ross Owen 2014-02-13 18:36:13 +00:00
  • 255c336f97 Fixed up IAP_INTERFACE_STRING_INDEX when MIXER not enabled but MAX_MIX_COUNT !=0 Ross Owen 2014-02-13 18:26:35 +00:00
  • 2894eaf106 buffer() checks new return from SetReady_functions to check for reset. Ross Owen 2014-02-13 14:14:34 +00:00
  • b820d321ba XUD_STATUS_ENABLE enabled on IAP in EP's (and disabled on IAP out EP) Ross Owen 2014-02-13 14:13:29 +00:00
  • 8e60cfc77f GetADC counts used instead of inline code. Ross Owen 2014-02-12 14:52:51 +00:00
  • 11f341ccf6 Call to check_iAP_timeout() added to iAPTimer case in usb_midi.xc, as is done in iap.xc. This should ensure that that iAP2 timeouts happen correctly in iAP + MIDI builds. Sam Chesney 2014-02-11 17:40:19 +00:00
  • cc0ddbf026 Merge remote-tracking branch 'origin/IAP2_DEV' Ross Owen 2014-02-10 14:43:23 +00:00
  • bf1a7373d1 Comment only. Ross Owen 2014-02-10 13:20:04 +00:00
  • 34640a49d4 DEBUG: print length of iAP data following XUD_SetReady_In() Sam Chesney 2014-02-10 11:25:14 +00:00
  • f625904415 Fix for bug 15218 - iAP detect sequence can fail after rapid reconnection attempts. On reset drain the c_iap channel of old data until the iAP core returns a reset token. Sam Chesney 2014-02-06 11:48:59 +00:00
  • f7047cafb9 Added clkblk defines to main Ross Owen 2014-02-05 18:12:56 +00:00
  • d5a0ec743d Added clkblk defines to main.xc Ross Owen 2014-02-05 18:12:37 +00:00
  • e632eb3e02 Tidied up XUD_SERIES_SUPPORT checking. Ross Owen 2014-02-05 18:12:09 +00:00
  • 977e25e573 TILE defines removed (now in device defines) Ross Owen 2014-02-05 18:11:06 +00:00
  • c35411424e FULL_SPEED_AUDIO_2 only defined by default if AUDIO_CLASS_FALLBACK not enabled (#15272) Ross Owen 2014-02-05 18:10:45 +00:00
  • 893463e560 Added IAP_TILE and MIDI_TILE defines. Ross Owen 2014-02-05 18:09:56 +00:00
  • 3f11f56de7 Removed remaining use of ARCH_ defines (XUD_SERIES_SUPPORT now used) Ross Owen 2014-02-05 16:44:25 +00:00
  • 9f5f8080a1 Merge remote-tracking branch 'origin/6.4_MAINTENANCE' Ross Owen 2014-02-05 15:14:45 +00:00
  • bbaa2bfb16 i2c ports struct renamed. Ross Owen 2014-02-05 15:14:41 +00:00
  • d78c3b8345 L-series clock block for MIDI doesn't use XS1_CLKBCLK_REF when MIDI on XUD tile (#15267) Ross Owen 2014-02-05 15:00:03 +00:00
  • 9422376a5a IAP_TILE defined. IAP_TILE can now != AUDIO_IO_TILE. Ross Owen 2014-02-04 15:18:41 +00:00
  • 4d61917717 i2c ports not declared in structure (as per module_i2c_simple) Ross Owen 2014-02-04 15:18:04 +00:00
  • 2dbbd305da Fixed iAP interface string index in descriptors when MIXER enabled. Ross Owen 2014-02-04 15:13:50 +00:00
  • 6e3dfa127a Default FULL_SPEED_AUDIO_2 set high Ross Owen 2014-02-04 15:08:45 +00:00
  • eeb2ffcedd Merge branch 'master' of git://git/apps/sc_usb_audio Ross Owen 2014-01-31 11:20:52 +00:00
  • 656e32091a TEST_MODE_SUPPORT enabled by default Ross Owen 2014-01-31 11:20:45 +00:00
  • ef52f39b7f Removed unguarded print Sam Chesney 2014-01-30 17:04:17 +00:00
  • 80817b73cc 'Release: 6.4.0beta4' Ross Owen 2014-01-28 16:30:06 +00:00
  • 486a19f549 comment typo only Ross Owen 2014-01-28 16:28:23 +00:00
  • c6ed243a82 'Release: 6.4.0beta3' Ross Owen 2014-01-27 16:29:21 +00:00
  • bbd02f157f Fixed SPDIF build issue Ross Owen 2014-01-27 16:28:43 +00:00
  • 432d39434a 'Release: 6.4.0beta2' Ross Owen 2014-01-27 16:26:32 +00:00
  • fe3b0251da Merge branch 'master' of git://git/apps/sc_usb_audio Ross Owen 2014-01-27 16:24:01 +00:00
  • f495005396 Removed unused var and func warnings. Ross Owen 2014-01-27 16:23:54 +00:00
  • 598477b3f3 Merge branch 'master' of git://git/apps/sc_usb_audio Sam Chesney 2014-01-27 16:04:15 +00:00
  • b65048f20e Reset local iAP state when host resets device Sam Chesney 2014-01-27 16:04:08 +00:00
  • bc8b311be0 Warning removal (unused funcs) Ross Owen 2014-01-27 14:36:27 +00:00
  • b178eec970 Fixed unused var warning relating to chanend c_mix_out Ross Owen 2014-01-27 14:27:52 +00:00