| /OK3568_Linux_fs/u-boot/common/ |
| H A D | edid.su | |
| H A D | edid.c | 36 #define version_greater(edid, maj, min) \ argument 37 (((edid)->version > (maj)) || \ 38 ((edid)->version == (maj) && (edid)->revision > (min))) 75 struct edid *edid; member 1731 int edid_get_ranges(struct edid1_info *edid, unsigned int *hmin, in edid_get_ranges() argument 1739 if (edid_check_info(edid)) in edid_get_ranges() 1742 for (i = 0; i < ARRAY_SIZE(edid->monitor_details.descriptor); i++) { in edid_get_ranges() 1743 monitor = &edid->monitor_details.descriptor[i]; in edid_get_ranges() 1888 static bool edid_vendor(struct edid *edid, char *vendor) in edid_vendor() argument 1892 edid_vendor[0] = ((edid->mfg_id[0] & 0x7c) >> 2) + '@'; in edid_vendor() [all …]
|
| /OK3568_Linux_fs/buildroot/package/read-edid/ |
| H A D | 0003-fix-build-with-gcc-10.patch | 6 …eabihf/bin/ld: CMakeFiles/get-edid.dir/i2c.c.o:(.bss+0x0): multiple definition of `quiet'; CMakeFi… 14 diff -Nura read-edid-3.0.2.orig/get-edid/classic.c read-edid-3.0.2/get-edid/classic.c 15 --- read-edid-3.0.2.orig/get-edid/classic.c 2020-09-25 23:25:01.928805414 +0200 16 +++ read-edid-3.0.2/get-edid/classic.c 2020-09-25 23:26:37.440807301 +0200 26 diff -Nura read-edid-3.0.2.orig/get-edid/get-edid.c read-edid-3.0.2/get-edid/get-edid.c 27 --- read-edid-3.0.2.orig/get-edid/get-edid.c 2020-09-25 23:25:01.928805414 +0200 28 +++ read-edid-3.0.2/get-edid/get-edid.c 2020-09-25 23:28:20.740809341 +0200 38 diff -Nura read-edid-3.0.2.orig/get-edid/i2c.c read-edid-3.0.2/get-edid/i2c.c 39 --- read-edid-3.0.2.orig/get-edid/i2c.c 2020-09-25 23:25:01.928805414 +0200 40 +++ read-edid-3.0.2/get-edid/i2c.c 2020-09-25 23:28:32.152809567 +0200
|
| H A D | 0002-Fix-compiler-check.patch | 10 diff -uNr read-edid-3.0.2.org/CMakeLists.txt read-edid-3.0.2/CMakeLists.txt 11 --- read-edid-3.0.2.org/CMakeLists.txt 2014-02-05 17:27:26.000000000 +0100 12 +++ read-edid-3.0.2/CMakeLists.txt 2015-12-13 16:08:43.000000000 +0100 15 -project (read-edid) 16 +project (read-edid C) 18 option(I2CBUILD "Build I2C get-edid implementation" ON) 19 option(CLASSICBUILD "Build VBE get-edid implementation" ON)
|
| H A D | Config.in | 2 bool "read-edid" 4 Read-edid is a pair of tools for reading the EDID from a 8 do). Read-edid is a set of two tools - get-edid, which gets 9 the raw edid information from the monitor, and parse-edid, 13 http://polypux.org/projects/read-edid/
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_edid_load.c | 162 static int edid_size(const u8 *edid, int data_size) in edid_size() argument 167 return (edid[0x7e] + 1) * EDID_LENGTH; in edid_size() 175 u8 *edid; in edid_load() local 211 edid = ERR_PTR(-EINVAL); in edid_load() 215 edid = kmemdup(fwdata, fwsize, GFP_KERNEL); in edid_load() 216 if (edid == NULL) { in edid_load() 217 edid = ERR_PTR(-ENOMEM); in edid_load() 221 if (!drm_edid_block_valid(edid, 0, print_bad_edid, in edid_load() 226 kfree(edid); in edid_load() 227 edid = ERR_PTR(-EINVAL); in edid_load() [all …]
|
| H A D | drm_edid.c | 47 #define version_greater(edid, maj, min) \ argument 48 (((edid)->version > (maj)) || \ 49 ((edid)->version == (maj) && (edid)->revision > (min))) 91 struct edid *edid; member 1625 bool drm_edid_are_equal(const struct edid *edid1, const struct edid *edid2) in drm_edid_are_equal() 1665 struct edid *edid = (struct edid *)raw_edid; in drm_edid_block_valid() local 1716 if (edid->version != 1) { in drm_edid_block_valid() 1717 DRM_NOTE("EDID has major version %d, instead of 1\n", edid->version); in drm_edid_block_valid() 1721 if (edid->revision > 4) in drm_edid_block_valid() 1754 bool drm_edid_is_valid(struct edid *edid) in drm_edid_is_valid() argument [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/colord/colord-native/ |
| H A D | 0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch | 16 lib/colord/cd-edid.c | 63 ++++++++++++++++++++++++++++++++++++++++++++ 20 diff --git a/lib/colord/cd-edid.c b/lib/colord/cd-edid.c 22 --- a/lib/colord/cd-edid.c 23 +++ b/lib/colord/cd-edid.c 25 edid = g_object_new (CD_TYPE_EDID, NULL); 26 return CD_EDID (edid); 32 + * @edid: EDID data 42 +cd_icc_create_from_edid_data (CdIcc *icc, CdEdid *edid, GError **error) 58 + cd_edid_get_gamma (edid), 59 + cd_edid_get_red (edid), [all …]
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | drm_edid.h | 322 struct edid { struct 377 int drm_edid_to_sad(struct edid *edid, struct cea_sad **sads); argument 378 int drm_edid_to_speaker_allocation(struct edid *edid, u8 **sadb); 383 struct edid *drm_load_edid_firmware(struct drm_connector *connector); 387 static inline struct edid * 512 struct edid *drm_do_get_edid(struct drm_connector *connector, 516 struct edid *drm_get_edid_switcheroo(struct drm_connector *connector, 519 bool drm_detect_hdmi_monitor(struct edid *edid); 533 struct edid *drm_get_edid(struct drm_connector *connector, 535 struct edid *drm_edid_duplicate(const struct edid *edid); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/adv748x/ |
| H A D | adv748x-hdmi.c | 462 static int adv748x_hdmi_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv748x_hdmi_get_edid() argument 466 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv748x_hdmi_get_edid() 468 if (!hdmi->edid.present) in adv748x_hdmi_get_edid() 471 if (edid->start_block == 0 && edid->blocks == 0) { in adv748x_hdmi_get_edid() 472 edid->blocks = hdmi->edid.blocks; in adv748x_hdmi_get_edid() 476 if (edid->start_block >= hdmi->edid.blocks) in adv748x_hdmi_get_edid() 479 if (edid->start_block + edid->blocks > hdmi->edid.blocks) in adv748x_hdmi_get_edid() 480 edid->blocks = hdmi->edid.blocks - edid->start_block; in adv748x_hdmi_get_edid() 482 memcpy(edid->edid, hdmi->edid.edid + edid->start_block * 128, in adv748x_hdmi_get_edid() 483 edid->blocks * 128); in adv748x_hdmi_get_edid() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/read-edid/read-edid/ |
| H A D | 0001-get-edid-define-quiet-once.patch | 4 Subject: [PATCH] get-edid: define quiet once 12 get-edid/classic.c | 2 +- 13 get-edid/i2c.c | 2 +- 16 diff --git a/get-edid/classic.c b/get-edid/classic.c 18 --- a/get-edid/classic.c 19 +++ b/get-edid/classic.c 29 diff --git a/get-edid/i2c.c b/get-edid/i2c.c 31 --- a/get-edid/i2c.c 32 +++ b/get-edid/i2c.c
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | ad9389b.c | 86 struct ad9389b_state_edid edid; member 343 struct ad9389b_state_edid *edid = &state->edid; in ad9389b_log_status() local 376 edid->segments ? "found" : "no", edid->blocks); in ad9389b_log_status() 664 static int ad9389b_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in ad9389b_get_edid() argument 668 if (edid->pad != 0) in ad9389b_get_edid() 670 if (edid->blocks == 0 || edid->blocks > 256) in ad9389b_get_edid() 672 if (!state->edid.segments) { in ad9389b_get_edid() 676 if (edid->start_block >= state->edid.segments * 2) in ad9389b_get_edid() 678 if (edid->blocks + edid->start_block >= state->edid.segments * 2) in ad9389b_get_edid() 679 edid->blocks = state->edid.segments * 2 - edid->start_block; in ad9389b_get_edid() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/core/ |
| H A D | fbmon.c | 145 static int check_edid(unsigned char *edid) in check_edid() argument 147 unsigned char *block = edid + ID_MANUFACTURER_NAME, manufacturer[4]; in check_edid() 170 if (edid[i] != edid_v1_header[i]) { in check_edid() 177 b = edid + EDID_STRUCT_DISPLAY; in check_edid() 184 b = edid + DETAILED_TIMING_DESCRIPTIONS_START; in check_edid() 207 static void fix_edid(unsigned char *edid, int fix) in fix_edid() argument 215 memcpy(edid, edid_v1_header, 8); in fix_edid() 219 b = edid + EDID_STRUCT_DISPLAY; in fix_edid() 221 edid[127] += 0x80; in fix_edid() 225 b = edid + DETAILED_TIMING_DESCRIPTIONS_START; in fix_edid() [all …]
|
| /OK3568_Linux_fs/kernel/include/media/ |
| H A D | cec.h | 287 struct edid; 302 const struct edid *edid); 386 u16 cec_get_edid_phys_addr(const u8 *edid, unsigned int size, 414 const struct edid *edid) in cec_s_phys_addr_from_edid() argument 418 static inline u16 cec_get_edid_phys_addr(const u8 *edid, unsigned int size, in cec_get_edid_phys_addr() argument 469 static inline unsigned int cec_get_edid_spa_location(const u8 *edid, in cec_get_edid_spa_location() argument 487 if (edid[0x7e] + 1 < blocks) in cec_get_edid_spa_location() 488 blocks = edid[0x7e] + 1; in cec_get_edid_spa_location() 494 if (edid[offset] != 0x02 || edid[offset + 1] != 0x03) in cec_get_edid_spa_location() 498 d = edid[offset + 2] & 0x7f; in cec_get_edid_spa_location() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | dw_hdmi.c | 390 const struct display_timing *edid) in hdmi_av_composer() argument 397 hbl = edid->hback_porch.typ + edid->hfront_porch.typ + in hdmi_av_composer() 398 edid->hsync_len.typ; in hdmi_av_composer() 399 vbl = edid->vback_porch.typ + edid->vfront_porch.typ + in hdmi_av_composer() 400 edid->vsync_len.typ; in hdmi_av_composer() 405 inv_val |= (edid->flags & DISPLAY_FLAGS_HSYNC_HIGH ? in hdmi_av_composer() 409 inv_val |= (edid->flags & DISPLAY_FLAGS_VSYNC_HIGH ? in hdmi_av_composer() 417 inv_val |= (edid->hdmi_monitor ? in hdmi_av_composer() 428 hdmi_write(hdmi, edid->hactive.typ >> 8, HDMI_FC_INHACTV1); in hdmi_av_composer() 429 hdmi_write(hdmi, edid->hactive.typ, HDMI_FC_INHACTV0); in hdmi_av_composer() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_connector.c | 100 if (!IS_ERR_OR_NULL(intel_connector->edid)) in intel_connector_destroy() 101 kfree(intel_connector->edid); in intel_connector_destroy() 183 struct edid *edid) in intel_connector_update_modes() argument 187 drm_connector_update_edid_property(connector, edid); in intel_connector_update_modes() 188 ret = drm_add_edid_modes(connector, edid); in intel_connector_update_modes() 203 struct edid *edid; in intel_ddc_get_modes() local 206 edid = drm_get_edid(connector, adapter); in intel_ddc_get_modes() 207 if (!edid) in intel_ddc_get_modes() 210 ret = intel_connector_update_modes(connector, edid); in intel_ddc_get_modes() 211 kfree(edid); in intel_ddc_get_modes()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/dp/ |
| H A D | dp_panel.c | 133 struct edid *edid) in dp_panel_update_modes() argument 137 if (edid) { in dp_panel_update_modes() 138 rc = drm_connector_update_edid_property(connector, edid); in dp_panel_update_modes() 143 rc = drm_add_edid_modes(connector, edid); in dp_panel_update_modes() 192 kfree(dp_panel->edid); in dp_panel_read_sink_caps() 193 dp_panel->edid = NULL; in dp_panel_read_sink_caps() 195 dp_panel->edid = drm_get_edid(connector, in dp_panel_read_sink_caps() 197 if (!dp_panel->edid) { in dp_panel_read_sink_caps() 259 if (dp_panel->edid) in dp_panel_get_modes() 260 return dp_panel_update_modes(connector, dp_panel->edid); in dp_panel_get_modes() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/ |
| H A D | nxp-ptn3460.c | 157 static struct edid *ptn3460_get_edid(struct drm_bridge *bridge, in ptn3460_get_edid() 162 u8 *edid; in ptn3460_get_edid() local 168 edid = kmalloc(EDID_LENGTH, GFP_KERNEL); in ptn3460_get_edid() 169 if (!edid) { in ptn3460_get_edid() 174 ret = ptn3460_read_bytes(ptn_bridge, PTN3460_EDID_ADDR, edid, in ptn3460_get_edid() 177 kfree(edid); in ptn3460_get_edid() 178 edid = NULL; in ptn3460_get_edid() 186 return (struct edid *)edid; in ptn3460_get_edid() 192 struct edid *edid; in ptn3460_connector_get_modes() local 195 edid = ptn3460_get_edid(&ptn_bridge->bridge, connector); in ptn3460_connector_get_modes() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/tegra/ |
| H A D | output.c | 20 struct edid *edid = NULL; in tegra_output_connector_get_modes() local 33 if (output->edid) in tegra_output_connector_get_modes() 34 edid = kmemdup(output->edid, sizeof(*edid), GFP_KERNEL); in tegra_output_connector_get_modes() 36 edid = drm_get_edid(connector, output->ddc); in tegra_output_connector_get_modes() 38 cec_notifier_set_phys_addr_from_edid(output->cec, edid); in tegra_output_connector_get_modes() 39 drm_connector_update_edid_property(connector, edid); in tegra_output_connector_get_modes() 41 if (edid) { in tegra_output_connector_get_modes() 42 err = drm_add_edid_modes(connector, edid); in tegra_output_connector_get_modes() 43 kfree(edid); in tegra_output_connector_get_modes() 123 output->edid = of_get_property(output->of_node, "nvidia,edid", &size); in tegra_output_probe()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/ |
| H A D | psb_intel_modes.c | 52 struct edid *edid; in psb_intel_ddc_get_modes() local 55 edid = drm_get_edid(connector, adapter); in psb_intel_ddc_get_modes() 56 if (edid) { in psb_intel_ddc_get_modes() 57 drm_connector_update_edid_property(connector, edid); in psb_intel_ddc_get_modes() 58 ret = drm_add_edid_modes(connector, edid); in psb_intel_ddc_get_modes() 59 kfree(edid); in psb_intel_ddc_get_modes()
|
| H A D | cdv_intel_hdmi.c | 134 struct edid *edid = NULL; in cdv_hdmi_detect() local 137 edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter); in cdv_hdmi_detect() 141 if (edid) { in cdv_hdmi_detect() 142 if (edid->input & DRM_EDID_INPUT_DIGITAL) { in cdv_hdmi_detect() 145 drm_detect_hdmi_monitor(edid); in cdv_hdmi_detect() 147 drm_detect_monitor_audio(edid); in cdv_hdmi_detect() 149 kfree(edid); in cdv_hdmi_detect() 216 struct edid *edid = NULL; in cdv_hdmi_get_modes() local 219 edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter); in cdv_hdmi_get_modes() 220 if (edid) { in cdv_hdmi_get_modes() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/rockchip/ |
| H A D | rk_vop.c | 38 const struct display_timing *edid) in rkvop_enable() argument 42 u32 hactive = edid->hactive.typ; in rkvop_enable() 43 u32 vactive = edid->vactive.typ; in rkvop_enable() 48 writel(V_DSP_XST(edid->hsync_len.typ + edid->hback_porch.typ) | in rkvop_enable() 49 V_DSP_YST(edid->vsync_len.typ + edid->vback_porch.typ), in rkvop_enable() 138 const struct display_timing *edid, in rkvop_mode_set() argument 146 u32 hactive = edid->hactive.typ; in rkvop_mode_set() 147 u32 vactive = edid->vactive.typ; in rkvop_mode_set() 148 u32 hsync_len = edid->hsync_len.typ; in rkvop_mode_set() 149 u32 hback_porch = edid->hback_porch.typ; in rkvop_mode_set() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/read-edid/ |
| H A D | read-edid_3.0.2.bb | 2 DESCRIPTION = "read-edid is a set of two tools - get-edid, which gets the raw \ 3 EDID information from the monitor, and parse-edid, which turns \ 7 HOMEPAGE = "http://www.polypux.org/projects/read-edid/" 9 LICENSE = "read-edid" 12 SRC_URI = "http://polypux.org/projects/read-edid/read-edid-${PV}.tar.gz \ 14 file://0001-get-edid-define-quiet-once.patch \
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/udl/ |
| H A D | udl_connector.c | 53 drm_connector_update_edid_property(connector, udl_connector->edid); in udl_get_modes() 54 if (udl_connector->edid) in udl_get_modes() 55 return drm_add_edid_modes(connector, udl_connector->edid); in udl_get_modes() 82 if (udl_connector->edid != NULL) { in udl_detect() 83 kfree(udl_connector->edid); in udl_detect() 84 udl_connector->edid = NULL; in udl_detect() 87 udl_connector->edid = drm_do_get_edid(connector, udl_get_edid_block, udl); in udl_detect() 88 if (!udl_connector->edid) in udl_detect() 102 kfree(udl_connector->edid); in udl_connector_destroy()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gvt/ |
| H A D | edid.c | 51 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in edid_get_byte() local 54 if (edid->state == I2C_NOT_SPECIFIED || !edid->slave_selected) { in edid_get_byte() 58 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte() 63 if (!edid->edid_available) { in edid_get_byte() 68 if (intel_vgpu_has_monitor_on_port(vgpu, edid->port)) { in edid_get_byte() 70 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte() 72 chr = edid_data->edid_block[edid->current_edid_read]; in edid_get_byte() 73 edid->current_edid_read++; in edid_get_byte() 570 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in intel_vgpu_init_i2c_edid() local 572 edid->state = I2C_NOT_SPECIFIED; in intel_vgpu_init_i2c_edid() [all …]
|