USB disconnect and reconnect causes TU_ASSERT(packet_sz_tx_max <= audio->ep_in_sz); #2921
Closed
rhysmorgan134
started this conversation in
General
Replies: 1 comment
-
Nevermind I missed this one #2724 as I mainly checked the issues! Time to bite the bullet and do an update! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, thanks as always for the immense work you guys have all done. I've been using the Feedback UAC implementation for a while now and it is generally working great. The only issue I have is that if I disconnect the usb to the board (which is powered seperately) and then reconnect, it always comes up with the same error inside
audiod_calc_tx_packet_sz
it fails on the assert forTU_ASSERT(packet_sz_tx_max <= audio->ep_in_sz);
my audio->ep_in_sz will be showing 0 and the packet max is 196, pretty much the entire of the audio struct is 0 so I am guessing I am calling tud_task out of sync and perhaps not handling the original disconnect correct. Does anyone have any pointers of what should be done on a disconnect and reconnect?Thanks a bunch in advance
Beta Was this translation helpful? Give feedback.
All reactions