-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Win7 backend enhancements #4248
Conversation
src/win7/win7-uvc.cpp
Outdated
@@ -370,6 +370,8 @@ namespace librealsense | |||
{ | |||
while (_keep_pulling_interrupts) | |||
{ | |||
if (_device->deviceData.ctrl_if.bEndpointAddress < 0x80) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to not run poll_interrupts in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored and check it in init phase
@@ -288,7 +294,6 @@ namespace librealsense | |||
DEVICE_NOTIFY_WINDOW_HANDLE); | |||
if (data->hdevnotifyUVC == nullptr) | |||
{ | |||
UnregisterDeviceNotification(data->hdevnotifyHW); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an invalid call as it tried to do UnregisterDeviceNotification(**nullptr**);
which produces nothing.
Removing this call rectifies the flow
fe7ecfb
to
c582535
Compare
Static analizer fixes Deadlock reproduction with Log message Stall detection and wor-around add verbose log for winusb backend
Report partial frames Drop unnecessary logs. Fix format issues. Redirect all pritf calls to log Add pipe flush before start streaming to recover/reset previous state
Add missing include for VS2015 build Profile extrinsic graph performance: - add auxillary functionality - remove unused extrernal_extrinsic
c582535
to
8122298
Compare
Remove unused variables Fix missing source reference Delete profiling and testing code Fix EOL/Tab inconsistencies Remove commented-out lines Replace writes to console Interrupt EP thread shall be opened for Upstream end-points only Change-Id: Ib9d6ea6e37d6d1525e6d96968e1e1087d8508651
8122298
to
4569849
Compare
Set explicit timeout policy for bulk and interrupt endpoints
Fix dead-lock in bulk streaming end point.
Prevent polling of Host-originated EP.
Remove unused extrinsic member
Add handling for WinUSB_Open failure
Adding report for partial frames
Add EP flush on start/stop streaming to recover/reset previous state.
Fix memory and resource leak due to improper user callback management
Fix warnings identified with static profiler
Fix inconsistent EOL/ Tabs/ Trailing white spaces
Tests: