milek7
2843eb4052
audio_device: Fix data IN endpoints with implicit feedback
2025-06-26 22:38:43 +02:00
HiFiPhile
dc0038f614
uac2: remove support fifo
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-05-29 13:56:46 +02:00
HiFiPhile
de45e4b01a
Add ctrl buffer alignment.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-03-15 23:49:11 +01:00
hathach
71e046d9ff
add tuh_midi_descriptor_cb()
2025-02-24 10:55:03 +07:00
HiFiPhile
df91c12ab2
Reformat audio class.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-30 23:31:28 +01:00
HiFiPhile
0bca377d52
Fix typo.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-30 21:57:47 +01:00
HiFiPhile
f2ed60e9fc
Update audio class with dcache support.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-30 21:49:33 +01:00
Ha Thach
dbc2c8d972
Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order ( #2889 )
...
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings for cmake (skip make)
2024-11-27 18:28:12 +07:00
Ha Thach
fee5ee6f0a
Merge pull request #2866 from HiFiPhile/uac_fix
...
Fix 2 UAC issue
2024-11-18 13:02:23 +07:00
HiFiPhile
cdc98e12c1
Improve EP IN flow control.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-02 17:09:51 +01:00
HiFiPhile
ed8d2c9594
Fix align issue of _audiod_fct.alt_setting.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-02 17:07:44 +01:00
pschatzmann
87a35c5734
RP2040 Compile Errors
2024-10-15 23:38:16 +02:00
HiFiPhile
4a48544aeb
audiod_function_t clean up.
2024-07-28 12:04:25 +02:00
HiFiPhile
f48a4567a6
Merge branch 'master' of https://github.com/hathach/tinyusb into rx_fb
2024-07-28 11:59:52 +02:00
HiFiPhile
ffe1d0664b
UAC2: Fix memclr on driver reset.
2024-07-18 20:02:57 +02:00
hathach
ca12a57902
add u for unsigned
2024-07-05 15:19:16 +07:00
Ha Thach
bd562e4180
Revert "audio.h: fix error ISO C restricts enumerator values to range of 'int'"
2024-07-05 15:15:00 +07:00
Davide Gerhard
8f9a57636c
audio.h: fix error ISO C restricts enumerator values to range of 'int'
...
fix error
~/dsp/libs/tinyusb/src/class/audio/audio.h:643:53: error: ISO C restricts enumerator values to range of 'int' before C23 [-Werror=pedantic]
643 | AUDIO_CHANNEL_CONFIG_RAW_DATA = 0x80000000, // TODO
| ^~~~~~~~~~
compilation terminated due to -Wfatal-errors.
Closes: https://github.com/hathach/tinyusb/issues/2690
2024-06-28 19:57:59 +02:00
Davide Gerhard
8f699023f3
audio_device.c: fix strict-overflow warning with gcc >= 12
...
Fix the following error
~/libs/tinyusb/src/class/audio/audio_device.c:1493:23: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
1493 | while (p_desc < p_desc_end)
| ~~~~~~~^~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
2024-06-28 10:55:43 +02:00
HiFiPhile
67456357c5
Fix HS playback on OSX.
2024-05-12 19:00:02 +02:00
HiFiPhile
32d0baaaf8
Tested 3 bytes feedback work on OSX.
2024-05-12 14:03:29 +02:00
HiFiPhile
256ccc4757
Fix CI.
2024-05-11 12:57:38 +02:00
HiFiPhile
ad85c37c03
Optimize SOF.
2024-05-11 12:51:18 +02:00
HiFiPhile
33882b3e89
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
2024-05-11 12:44:16 +02:00
HiFiPhile
9ce44db56f
Always send 4 bytes feedback despite 10.14 format (Apple wtf ?!)
2024-05-11 12:33:51 +02:00
HiFiPhile
376b43906a
Convert to bit-field since it's more reliable.
2024-05-09 21:55:28 +02:00
HiFiPhile
0e907b49c9
Add callback to to set feedback format correction at runtime.
2024-05-08 23:17:56 +02:00
HiFiPhile
ab539895a5
Reorganize feedback documentation.
2024-05-08 23:08:47 +02:00
HiFiPhile
8dc767fa1d
Fix cycle based feedback calculation.
2024-05-08 22:31:30 +02:00
HiFiPhile
73d61fa2b8
Migrate to weak default implementation.
2024-05-08 21:03:49 +02:00
HiFiPhile
02e129a38e
Guard ep_fb with usbd_edpt_claim().
2024-04-26 20:06:20 +02:00
HiFiPhile
187c379331
Add tu_static to global variables.
2024-04-26 20:06:19 +02:00
HiFiPhile
1b66c148cc
UAC2: Implement feedback by fifo counting.
2024-04-26 20:06:19 +02:00
HiFiPhile
13bde7af40
uac2: return on clear_feature.
2024-04-25 11:51:05 +07:00
Ha Thach
42decf28f1
Merge pull request #1835 from MasterQ32/otg_bringup
...
Implements deinit functions for host/device mode switch
2024-04-08 23:48:52 +07:00
hathach
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
HiFiPhile
db28437218
Move endpoint alloc define to tusb_mcu.h
2024-04-02 20:54:33 +02:00
HiFiPhile
7ca988018e
UAC2: fix mounted condition.
2024-04-01 20:02:45 +02:00
HiFiPhile
05f9cab191
UAC2: refactor interrupt endpoint support.
2024-04-01 20:02:35 +02:00
HiFiPhile
a1f01fcbe0
Merge remote-tracking branch 'upstream/master' into pr/1702
2024-04-01 12:35:57 +02:00
HiFiPhile
cab1106416
dwc2: add endpoint allocation support.
2024-03-30 10:36:27 +07:00
Jerzy Kasenberg
1c9a839401
audio_device: Fix unused variable warning
...
In some configurations local variable p_desc_parse_for_params
is declared and never used resulting in warning that can
be escalated to build error (for mynewt)
Now variable is surrounded with same preprocessor condition
as function that uses it audiod_parse_for_AS_params()
2024-01-23 13:51:10 +01:00
Ángel Molina Núñez
506617d4b3
Add comment to explain why the condition changes
2023-12-10 17:04:46 +01:00
Angel Molina
ac418f4d25
Fix strict-overflow warning when compiling with gcc >= 12
2023-12-09 23:13:53 +01:00
Mengsk
d3fa3cdf48
Adjsut blackout time.
2023-10-18 17:05:35 +02:00
HiFiPhile
ade8a19aef
Put sw_buf in USB section only if necessary.
2023-10-17 21:21:52 +02:00
HiFiPhile
e9d894fe66
Fix compile.
2023-10-17 21:03:29 +02:00
HiFiPhile
d83a210788
Add blackout time.
2023-10-17 15:18:05 +02:00
HiFiPhile
0a1d6cf4d0
Read sample rate directly from control transfer to eliminate callback.
2023-10-17 13:06:55 +02:00
HiFiPhile
656e1e416a
Add flow control for IN transfer.
2023-10-17 09:46:01 +02:00