tests/kms_hdmi_inject: Retry ELD check to avoid transient audio races
PATCH 1/1 tests/kms_hdmi_inject: Retry ELD check to avoid transient audio races
ELD population can lag HDMI audio enable on some platforms. Retry once to avoid spurious test failures.
Signed-off-by Jeevan B <[email protected]>
--- tests/kms_hdmi_inject.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
tests/kms_hdmi_inject.c +7 -1
@@ -200,7 +200,13 @@ hdmi_inject_audio(int drm_fd, drmModeConnector *connector)* Test if we have /proc/asound/HDMI/eld#0.0 and is its contents are * valid. */ -igt_assert (eld_has_igt ()); +if (!eld_has_igt ()) { +igt_info ("HDMI audio enabled but ELD not visible yet; retrying\n" ); +usleep (200 *1000 ); + +igt_assert_f (eld_has_igt (), +"HDMI ELD missing after retry\n" ); + }igt_remove_fb (drm_fd, &fb);
Signature · 1 line
2.43.0