diff options
author | Simon Ser <simon.ser@intel.com> | 2019-09-11 15:57:55 +0300 |
---|---|---|
committer | Simon Ser <simon.ser@intel.com> | 2019-09-12 15:38:38 +0300 |
commit | 3374cd0b048f9c277b2815bf80502f9f89680176 (patch) | |
tree | a511f8b5fbc8d70b2ec72f99df4ecb9a7e5739f5 /tests/kms_chamelium.c | |
parent | efb4539494d94f03374874d3b61bd04ef3802aaa (diff) |
lib/igt_eld: introduce eld_is_supported
We've seen cases in which /proc/asound doesn't exist (e.g. with the new SOF
framework). We've also seen cases in which no soundcard is exposed by ALSA (see
bugzilla link). Last, some audio drivers din't support ELDs (non-Intel
drivers). In all of these cases, skipping the tests depending on ELD support
makes more sense and makes it clearer what happens.
v2: also check that the driver supports ELDs entries in procfs
Signed-off-by: Simon Ser <simon.ser@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102370
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_chamelium.c')
-rw-r--r-- | tests/kms_chamelium.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index b122722a..52330098 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -1968,6 +1968,8 @@ test_display_audio_edid(data_t *data, struct chamelium_port *port, struct eld_entry eld; struct eld_sad *sad; + igt_require(eld_is_supported()); + reset_state(data, port); output = prepare_output(data, port, edid); |