Commit 0be6d4a6 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Lyude Paul

tests/audio: Add suspend and hibernate tests for HDMI signal integrity

This introduces tests for HDMI signal integrity after suspend and
hibernate. They simply test that signal integrity is ensured before
and after suspend or hibernate.
Signed-off-by: 's avatarPaul Kocialkowski <paul.kocialkowski@linux.intel.com>
Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
parent 2af28e0d
......@@ -167,8 +167,27 @@ static void test_integrity(const char *device_name)
free(data.alsa);
}
static void test_suspend_resume_integrity(const char *device_name,
enum igt_suspend_state state,
enum igt_suspend_test test)
{
test_integrity(device_name);
igt_system_suspend_autoresume(state, test);
test_integrity(device_name);
}
igt_main
{
igt_subtest("hdmi-integrity")
test_integrity("HDMI");
igt_subtest("hdmi-integrity-after-suspend")
test_suspend_resume_integrity("HDMI", SUSPEND_STATE_MEM,
SUSPEND_TEST_NONE);
igt_subtest("hdmi-integrity-after-hibernate")
test_suspend_resume_integrity("HDMI", SUSPEND_STATE_DISK,
SUSPEND_TEST_DEVICES);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment