File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -868,9 +868,9 @@ namespace librealsense
868
868
// GVD product ID
869
869
const uint8_t GVD_PID_OFFSET = 4 ;
870
870
871
- const uint8_t GVD_PID_D430_GMSL = 0x0F ;
872
- const uint8_t GVD_PID_D415_GMSL = 0x00 ;
873
871
const uint8_t GVD_PID_D457 = 0x12 ;
872
+ const uint8_t GVD_PID_D430_GMSL = 0x0F ;
873
+ const uint8_t GVD_PID_D415_GMSL = 0x06 ;
874
874
875
875
// device PID
876
876
uint16_t device_pid = 0 ;
@@ -915,15 +915,15 @@ namespace librealsense
915
915
switch (product_pid)
916
916
{
917
917
case (GVD_PID_D457):
918
- device_pid = 0xABCD ;
918
+ device_pid = D457_PID ;
919
919
break ;
920
920
921
921
case (GVD_PID_D430_GMSL):
922
- device_pid = 0xABCE ;
922
+ device_pid = D430_GMSL_PID ;
923
923
break ;
924
924
925
925
case (GVD_PID_D415_GMSL):
926
- device_pid = 0xABCF ;
926
+ device_pid = D415_GMSL_PID ;
927
927
break ;
928
928
929
929
default :
@@ -2993,7 +2993,9 @@ namespace librealsense
2993
2993
2994
2994
std::shared_ptr<uvc_device> v4l_backend::create_uvc_device (uvc_device_info info) const
2995
2995
{
2996
- bool mipi_device = (0xABCD == info.pid || 0xABCE == info.pid ); // D457 development. Not for upstream
2996
+ bool mipi_device = (D457_PID == info.pid ||
2997
+ D430_GMSL_PID == info.pid ||
2998
+ D415_GMSL_PID == info.pid );
2997
2999
auto v4l_uvc_dev = mipi_device ? std::make_shared<v4l_mipi_device>(info) :
2998
3000
((!info.has_metadata_node ) ? std::make_shared<v4l_uvc_device>(info) :
2999
3001
std::make_shared<v4l_uvc_meta_device>(info));
Original file line number Diff line number Diff line change @@ -474,6 +474,11 @@ namespace librealsense
474
474
std::vector<std::shared_ptr<buffer>> _md_buffers;
475
475
};
476
476
477
+
478
+ const uint16_t D457_PID = 0xABCD ;
479
+ const uint16_t D430_GMSL_PID = 0xABCE ;
480
+ const uint16_t D415_GMSL_PID = 0xABCF ;
481
+
477
482
// D457 Development. To be merged into underlying class
478
483
class v4l_mipi_device : public v4l_uvc_meta_device
479
484
{
You can’t perform that action at this time.
0 commit comments