|
Hi, I have an ESP32-P4 where I have setup 3 audio outputs among 4 inputs using a slightly modified version of TinyUSB, all of these interfaces need to work at the same time. The four inputs are all working flawlessly but if I playback on all three outputs on the same time the last one on which I started playback only periodic clicks comes out of the speaker (about every 32 ms) which I have been unable to resolve. What I have tried:
The FW with the modified version of TinyUSB: MelodyCatcherFW.zip Thanks for any help... |
Replies: 3 comments 5 replies
|
Some additional findings: |
|
UPDATE: Additionally I have tried it on the Raspberry Pi 5 with kernel 6.12.85-0-rpi on PostmarketOS (don't ask why) where all outputs worked except the first activated one after I've activated the last the first (activated) would get dropouts every 1-2 seconds and the TinyUSB data received callback for that output would then be called about 7800 times a second and sometimes also normally (8000 times) |
VM with USB passthrough is known to have issues with ISO transfer, try to find a physical machine. You can use Wireshark to monitor USB traffic to see if the host send data correctly. |
Have you tried enabling DMA
#define CFG_TUD_DWC2_DMA_ENABLE=1?