Skip to content

Commit 90cbfe5

Browse files
committed
PR #189 from dmipx: d4xx: hwmc return success on ioctl
(cherry picked from commit cf7fe64)
1 parent cbe167d commit 90cbfe5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

kernel/realsense/d4xx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,8 +2534,10 @@ static int ds5_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
25342534
u16 dataLen = 0;
25352535
u16 bufLen = ctrl->dims[0];
25362536
ret = ds5_get_hwmc(state, data, bufLen, &dataLen);
2537-
if (ret)
2537+
if (ret) {
2538+
ret = 0; // LRS doesn't expect to get errors with HWMC
25382539
break;
2540+
}
25392541
/* This is needed for librealsense, to align there code with UVC,
25402542
* last word is length - 4 bytes header length */
25412543
dataLen -= 4;

0 commit comments

Comments
 (0)