mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
Added a delay quirk to allow the Oculus Rift CV1 to initialize properly.
This commit is contained in:
parent
d30cd0b639
commit
6664588eba
|
@ -213,6 +213,7 @@ struct device_info
|
||||||
bool video_distortion_vive;
|
bool video_distortion_vive;
|
||||||
bool left_center_pano_scale;
|
bool left_center_pano_scale;
|
||||||
bool rotate_screen_right_after;
|
bool rotate_screen_right_after;
|
||||||
|
bool delay_after_initialization;
|
||||||
} quirks;
|
} quirks;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -265,6 +266,10 @@ get_info(struct oh_device *ohd, const char *prod)
|
||||||
info.quirks.video_distortion_none = true;
|
info.quirks.video_distortion_none = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strcmp(prod, "Rift (CV1)") == 0) {
|
||||||
|
info.quirks.delay_after_initialization = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Assumptions made here:
|
* Assumptions made here:
|
||||||
|
@ -526,6 +531,13 @@ oh_device_create(ohmd_context *ctx,
|
||||||
ohd->base.hmd->views[1].rot = u_device_rotation_left;
|
ohd->base.hmd->views[1].rot = u_device_rotation_left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (info.quirks.delay_after_initialization) {
|
||||||
|
unsigned int time_to_sleep = 1;
|
||||||
|
do {
|
||||||
|
time_to_sleep = sleep(time_to_sleep);
|
||||||
|
} while (time_to_sleep);
|
||||||
|
}
|
||||||
|
|
||||||
if (ohd->print_debug) {
|
if (ohd->print_debug) {
|
||||||
u_device_dump_config(&ohd->base, __func__, prod);
|
u_device_dump_config(&ohd->base, __func__, prod);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue