Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1408 Enhance USB Transfer Buffer Error Handling in USB Tuners #1409

Merged
merged 1 commit into from Jan 15, 2023

Conversation

DSheirer
Copy link
Owner

Closes #1408

Updates USB tuners to enhance transfer buffer error handling and logging. When an error occurs while (re)submitting a transfer buffer to LibUsb to fill with sample data, the buffer is temporarily placed in an error queue. Upon successfully submitting the next transfer buffer, we attempt to resubmit a buffer from the error queue, so that we wait until the device can accept buffers before trying to resubmit. If all transfer buffers are exhausted because they are in the error queue, then the tuner gets shutdown with an error state ... there's really no way to recover at this point.

…d logging. When an error occurs while (re)submitting a transfer buffer to LibUsb to fill with sample data, the buffer is temporarily placed in an error queue. Upon successfully submitting the next transfer buffer, we attempt to resubmit a buffer from the error queue, so that we wait until the device can accept buffers before trying to resubmit. If all transfer buffers are exhausted because they are in the error queue, then the tuner gets shutdown with an error state ... there's really no way to recover at this point.
@DSheirer DSheirer added this to the Build 0.5.1 milestone Jan 15, 2023
@DSheirer DSheirer self-assigned this Jan 15, 2023
@DSheirer DSheirer merged commit ec162ff into master Jan 15, 2023
@DSheirer DSheirer deleted the 1408-usb-transfer-error-handling-enhancements branch January 15, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USB Tuner Controller - Enhance Transfer Error Handling
1 participant