Skip to content

Commit

Permalink
Remove node id. Use bus_info for D457 unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuys authored Nov 4, 2022
1 parent 086ab62 commit 1a1492c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,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;
ind = (ind - first_video_index) % 6; // yhsu - offset from first mipi video node and assume 6 nodes per mipi camera
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;
else if (ind == 1 | ind == 3)
Expand All @@ -785,8 +785,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 = busnum + "-" + devpath + "-" + devnum;
info.unique_id = bus_info + "-" + std::to_string(ind/6); // yhsu - use bus info and first video node of each mipi camera
info.unique_id = bus_info; // 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 1a1492c

Please sign in to comment.