mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-13 17:20:09 +00:00
d/vive: Prepare for lighthouse builder
This commit is contained in:
parent
766f1b94e9
commit
29cd525a3b
src/xrt/drivers/vive
|
@ -220,6 +220,7 @@ init_valve_index(struct xrt_prober *xp,
|
|||
struct xrt_prober_device **devices,
|
||||
size_t device_count,
|
||||
enum u_logging_level log_level,
|
||||
struct vive_config **out_vive_config,
|
||||
struct xrt_device **out_xdevs)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
|
@ -276,6 +277,7 @@ vive_found(struct xrt_prober *xp,
|
|||
size_t device_count,
|
||||
size_t index,
|
||||
cJSON *attached_data,
|
||||
struct vive_config **out_vive_config,
|
||||
struct xrt_device **out_xdev)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
|
@ -294,7 +296,8 @@ vive_found(struct xrt_prober *xp,
|
|||
switch (dev->product_id) {
|
||||
case VIVE_PID: return init_vive1(xp, dev, devices, device_count, log_level, out_xdev);
|
||||
case VIVE_PRO_MAINBOARD_PID: return init_vive_pro(xp, dev, devices, device_count, log_level, out_xdev);
|
||||
case VIVE_PRO_LHR_PID: return init_valve_index(xp, dev, devices, device_count, log_level, out_xdev);
|
||||
case VIVE_PRO_LHR_PID:
|
||||
return init_valve_index(xp, dev, devices, device_count, log_level, out_vive_config, out_xdev);
|
||||
default: U_LOG_E("No product ids matched %.4x", dev->product_id); return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ vive_found(struct xrt_prober *xp,
|
|||
size_t device_count,
|
||||
size_t index,
|
||||
cJSON *attached_data,
|
||||
struct vive_config **out_vive_config,
|
||||
struct xrt_device **out_xdev);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue