summaryrefslogtreecommitdiff
path: root/tests/kms_hdmi_inject.c
diff options
context:
space:
mode:
authorSimon Ser <simon.ser@intel.com>2019-06-03 11:23:13 +0300
committerSimon Ser <simon.ser@intel.com>2019-06-10 10:44:51 +0300
commitdb51cbba5a8f4856d6f56a61aa51fda6e239fa44 (patch)
tree6f319bbec8904a1897dc31a9263ed55c06bc1619 /tests/kms_hdmi_inject.c
parent1a34b94f1ce07ac5978fe7893a17e8732d467868 (diff)
lib/igt_kms: generate an EDID suitable for DP audio
Prior to this commit, we were using the Chamelium's default EDID for DP audio. This relies on the fact that this EDID supports audio and has correct audio paremeters for our testing. Generating our own EDID is less error-prone and will allow us to test different audio parameters. v2: - Replace {HDMI,DP}_AUDIO_EDID_LENGTH with AUDIO_EDID_LENGTH (Arek) - Don't hardcode EDIDs array length (Arek) Signed-off-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/kms_hdmi_inject.c')
-rw-r--r--tests/kms_hdmi_inject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index 754a7407..8c0d1333 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -149,7 +149,7 @@ hdmi_inject_audio(int drm_fd, drmModeConnector *connector)
struct kmstest_connector_config config;
edid = igt_kms_get_hdmi_audio_edid();
- length = HDMI_AUDIO_EDID_LENGTH;
+ length = AUDIO_EDID_LENGTH;
kmstest_force_edid(drm_fd, connector, edid, length);