29bcc83d0f
Remove unnecessary volatile and short audio function index to func_id
2021-04-21 17:01:38 +02:00
705753f448
Merge remote-tracking branch 'upstream/master' into uac2_fix_cs_as_int_alt_set_0
2021-04-20 20:15:54 +02:00
c7c11b181c
Clean up old depracted and misleading variable names
2021-04-20 20:15:02 +02:00
fef0d54559
Refactor static function for better performance
2021-04-20 19:56:40 +02:00
4408ffce88
Fix pointer alt_setting to be cleared when driver gets initialized
2021-04-20 18:44:56 +02:00
2f0cb8b5f1
tinyusb: add support of esp32s3 target
...
add support of new esp32s3 target and the board
update the roles.mk wrapper to allow dfu flashing of espressif chip
update examples to allow compilation for esp32s3_addax_1 board
once the code is tested the PR to original tinyusb repo will be submitted
2021-04-16 13:38:00 +02:00
9ecb91e1bd
fix build with LOG=2
2021-04-15 23:47:28 +07:00
b687a4fc20
Merge branch 'master' into edpt_ISO_xfer
2021-04-15 12:12:52 +07:00
3c84776e0a
minor clean up
2021-04-15 12:09:12 +07:00
8d9f60ca5e
Improve user feedback in case of wrong configuration of audio driver
2021-04-14 21:52:54 +02:00
7c8b4991f1
Add support for SAM L22 family
2021-04-09 17:33:14 -04:00
2134c1a875
Fix defines in audio_device.c
2021-04-08 21:48:36 +02:00
4bebb9ca49
Remove depracted defines in audio_device.c
2021-04-08 20:11:51 +02:00
8eacdffebd
Optimize encode/decode - refactor unnecessary repetitive division
2021-04-07 20:07:28 +02:00
d9a0cc9e9f
more cleanup
2021-04-07 16:50:45 +07:00
893919a848
remove tu_fifo_backward_write/read_pointer API
...
since it is illegal from fifo perspective
2021-04-07 13:27:28 +07:00
2468f9e26d
more _ff_pull/push clean up
2021-04-07 13:15:25 +07:00
9042e973d3
clean up _ff_push_n
2021-04-07 12:52:57 +07:00
d6737fb5fe
use tu_unaligned_write32() for _ff_push_const_addr
2021-04-07 12:34:00 +07:00
d0fa4d5189
rename
2021-04-07 12:24:24 +07:00
8ac156622d
fix cast-align warning
2021-04-07 00:38:12 +07:00
a3c06aa7bc
more clean up for _ff_pull_const_addr_in_full_words()
2021-04-06 23:39:39 +07:00
d82ee2f8c0
refactor _ff_pull_n() with const addr
2021-04-06 23:12:04 +07:00
58bab86d79
minor clean up
2021-04-06 21:09:23 +07:00
c5db2282ad
Merge branch 'master' of github.com:hathach/tinyusb into edpt_ISO_xfer
2021-04-06 19:35:01 +07:00
1d20c84798
add tu_unaligned_read32/write32 ( #772 )
...
* add tu_unaligned_read32/write32
* added tu_unaligned_read16/write16
* add TU_ATTR_ALWAYS_INLINE, add to most of simple inline function
2021-04-06 19:32:01 +07:00
8b79040c38
code format
2021-04-06 15:34:50 +07:00
68687ed0f4
fix build
2021-04-06 01:16:51 +07:00
7ab8da949e
audio driver only use USE_LINEAR_BUFFER = 0 for stm32 synopsys driver
2021-04-06 01:07:32 +07:00
3acf0c2d73
revert dcd_edpt_xfer_fifo() implementation for esp32s2
2021-04-06 01:00:00 +07:00
69ad092fce
revert dcd_edpt_xfer_fifo() implementation for nuc120 121
2021-04-06 00:13:12 +07:00
49b2d8f26c
revert dcd_edpt_xfer_fifo() implementation for msp430
2021-04-06 00:07:17 +07:00
8d2dfe872c
revert dcd_edpt_xfer_fifo() implementation for stm32_fsdev
2021-04-05 19:19:49 +07:00
bebe2f0bbf
revert dcd_edpt_xfer_fifo() implementation for nuc505
2021-04-04 22:50:26 +07:00
586a46c7d3
revert dcd_edpt_xfer_fifo() implementation for samg
...
samg fifo is accessed byte by byte (although the register is 32 bit).
2021-04-04 21:33:19 +07:00
1ac9e7e3a7
Fix wrong read mutexes in audio_device.c
2021-04-03 18:22:19 +02:00
f6ba58e370
Fix wrong pointer type in audio_device.c
2021-04-03 17:50:30 +02:00
4af5189492
Fix potential bug in support FIFO sizes
2021-04-03 16:53:29 +02:00
475badd087
Add missing #defines in uac2_headset example
2021-04-03 16:10:46 +02:00
fc65f39ff2
Fix error in #defines in uac2_headset
2021-04-03 15:58:41 +02:00
ec6b240de2
Fix #define error in audio_device.h
2021-04-03 15:44:44 +02:00
6236effb14
Fix #define error in audio_device.h
2021-04-03 15:29:39 +02:00
8b90c08b35
Fix #define errors in audio_device.h
2021-04-03 15:24:38 +02:00
a1efd41649
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-04-03 09:50:08 +02:00
9b2ddd9cc6
Generalize audio driver for 3 audio functions plus a lot more.
...
- Audio format and parameters are parsed from descriptors thus user no
longer needs to give them explicitely
- Tested for 4 channel software type I PCM encoding with 16 bit with 1
channel per FIFO and 2 channels per FIFO (this is I2S specific)
2021-04-03 09:49:27 +02:00
eb92986b88
Merge pull request #766 from hathach/enhance-midi
...
Enhance midi
2021-04-02 15:47:40 +07:00
48bb96f507
correct midi stream read behavior to read until user buffer is full or no more data from usb fifo
2021-04-02 15:08:36 +07:00
350eb11277
refactor midi read buffer to stream
2021-04-02 14:52:44 +07:00
da59c4ad44
rename midi write()/read() to stream_write() stream_read()
...
also add deprecated for warning and rename hint
2021-04-02 14:43:38 +07:00
99b78e62f2
removed tud_midi_write24()
2021-04-02 14:34:13 +07:00