[igt-dev] [PATCH i-g-t v3 4/9] lib/igt_chamelium: add CHAMELIUM_DEFAULT_EDID

Simon Ser
2019-05-14T12:07:03Z

This ID can be provided to chamelium_port_set_edid to use the default EDID for
the port.

Signed-off-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
lib/igt_chamelium.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h
index ba44a44d6d8f..c6fb7b9d4737 100644
--- a/lib/igt_chamelium.h
+++ b/lib/igt_chamelium.h
@@ -59,6 +59,12 @@ struct chamelium_audio_file {
int channels;
};

+/**
+ * CHAMELIUM_DEFAULT_EDID: provide this ID to #chamelium_port_set_edid to use
+ * the default EDID.
+ */
+#define CHAMELIUM_DEFAULT_EDID 0
+
struct chamelium *chamelium_init(int drm_fd);
void chamelium_deinit(struct chamelium *chamelium);
void chamelium_reset(struct chamelium *chamelium);