-
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
Workaround to support FLASH WRITE for MIPI camera D457 #13642
base: development
Are you sure you want to change the base?
Workaround to support FLASH WRITE for MIPI camera D457 #13642
Conversation
src/ds/ds-device-common.cpp
Outdated
// This is a WORKAROUND to support MIPI camera D457. | ||
// If the packet size is more than 128 bytes, FLASH_WRITE is not working as expected. | ||
// Revert this line after fixing the issue. | ||
packet_size = std::min(packet_size, 128); |
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 is for all D400 devices? not MIPI only?
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.
Right now it is for all. Maybe for D500 devices as well.
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.
Updated it to only apply this workaround for D457.
50574fc
to
73674cc
Compare
@@ -569,7 +569,7 @@ namespace librealsense | |||
} | |||
set_hw_monitor_for_auto_calib(_hw_monitor); | |||
|
|||
_ds_device_common = std::make_shared<ds_device_common>(this, _hw_monitor); | |||
_ds_device_common = std::make_shared<ds_device_common>(this, _hw_monitor, (_pid == ds::RS457_PID)? true : false); |
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 see on this common class we have another place where we distinguish between D400 and d500
if( auto dev = dynamic_cast< d400_device * >( _owner ) ) return dev->get_raw_depth_sensor();
So we can see if it's D457 by reading the camera name instead of passing this bool.
What do you think? which way is nicer?
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.
will check it.
@Arun-Prasad-V is this ready for review? |
yes. |
[Tracked on LRS-472]