Skip to content

Commit

Permalink
D457 MIPI enable multiple cameras for single DES.
Browse files Browse the repository at this point in the history
Following DSO-18585 PR IntelRealSense#11070
For use with jp5-2d457-1-des

Signed-off-by: Dmitry Perchanov <[email protected]>
  • Loading branch information
dmipx committed Feb 1, 2023
1 parent 4b8f7f6 commit 097cc39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ namespace librealsense
// next several lines permit to use D457 even if a usb device has already "taken" the video0,1,2 (for example)
// further development is needed to permit use of several mipi devices
static int first_video_index = ind;
int cam_id = ind / 6;
ind = (ind - first_video_index) % 6; // offset from first mipi video node and assume 6 nodes per mipi camera
if (ind == 0 || ind == 2 || ind == 4)
mi = 0;
Expand All @@ -786,7 +787,7 @@ namespace librealsense
// are not available via mipi
// TODO - find a way to assign unique id for mipi
// maybe using bus_info and card params (see above in this method)
info.unique_id = bus_info; // use bus_info as per camera unique id for mipi
info.unique_id = bus_info + "-" + std::to_string(cam_id); // use bus_info as per camera unique id for mipi
info.conn_spec = usb_specification;
info.uvc_capabilities = get_dev_capabilities(dev_name);

Expand Down

0 comments on commit 097cc39

Please sign in to comment.