/Linux-v5.15/Documentation/userspace-api/media/v4l/ |
D | vidioc-g-edid.rst | 13 VIDIOC_G_EDID - VIDIOC_S_EDID - VIDIOC_SUBDEV_G_EDID - VIDIOC_SUBDEV_S_EDID - Get or set the EDID o… 46 These ioctls can be used to get or set an EDID associated with an input 56 pad of the subdevice. If there is no EDID support for the given ``pad`` 59 To get the EDID data the application has to fill in the ``pad``, 60 ``start_block``, ``blocks`` and ``edid`` fields, zero the ``reserved`` 61 array and call :ref:`VIDIOC_G_EDID <VIDIOC_G_EDID>`. The current EDID from block 63 ``edid`` points to. The ``edid`` pointer must point to memory at least 67 ``blocks`` to the actual number of blocks. If there are no EDID blocks 75 total number of available EDID blocks and it will return 0 without 76 copying any data. This is an easy way to discover how many EDID blocks [all …]
|
/Linux-v5.15/drivers/media/i2c/adv748x/ |
D | adv748x-hdmi.c | 463 static int adv748x_hdmi_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv748x_hdmi_get_edid() argument 467 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv748x_hdmi_get_edid() 469 if (!hdmi->edid.present) in adv748x_hdmi_get_edid() 472 if (edid->start_block == 0 && edid->blocks == 0) { in adv748x_hdmi_get_edid() 473 edid->blocks = hdmi->edid.blocks; in adv748x_hdmi_get_edid() 477 if (edid->start_block >= hdmi->edid.blocks) in adv748x_hdmi_get_edid() 480 if (edid->start_block + edid->blocks > hdmi->edid.blocks) in adv748x_hdmi_get_edid() 481 edid->blocks = hdmi->edid.blocks - edid->start_block; in adv748x_hdmi_get_edid() 483 memcpy(edid->edid, hdmi->edid.edid + edid->start_block * 128, in adv748x_hdmi_get_edid() 484 edid->blocks * 128); in adv748x_hdmi_get_edid() [all …]
|
/Linux-v5.15/drivers/gpu/drm/ |
D | drm_edid.c | 48 #define version_greater(edid, maj, min) \ argument 49 (((edid)->version > (maj)) || \ 50 ((edid)->version == (maj) && (edid)->revision > (min))) 57 * EDID blocks out in the wild have a variety of bugs, try to collect 92 struct edid *edid; member 169 /* Rotel RSX-1058 forwards sink's EDID but only does HDMI 1.1*/ 584 * modes are old-school Mac modes. The EDID spec says the 1152x864@75 mode 1564 * drm_edid_header_is_valid - sanity check the header of the base EDID block 1565 * @raw_edid: pointer to raw base EDID block 1567 * Sanity check the header of the base EDID block. [all …]
|
D | drm_edid_load.c | 3 drm_edid_load.c: use a built-in EDID data set or load it via the firmware 22 MODULE_PARM_DESC(edid_firmware, "Do not probe monitor, use specified EDID blob " 43 "edid/800x600.bin", 44 "edid/1024x768.bin", 45 "edid/1280x1024.bin", 46 "edid/1600x1200.bin", 47 "edid/1680x1050.bin", 48 "edid/1920x1080.bin", 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() [all …]
|
D | drm_displayid.c | 36 static const u8 *drm_find_displayid_extension(const struct edid *edid, in drm_find_displayid_extension() argument 40 const u8 *displayid = drm_find_edid_extension(edid, DISPLAYID_EXT, ext_index); in drm_find_displayid_extension() 47 /* EDID extensions block checksum isn't for us */ in drm_find_displayid_extension() 61 void displayid_iter_edid_begin(const struct edid *edid, in displayid_iter_edid_begin() argument 66 iter->edid = edid; in displayid_iter_edid_begin() 91 if (!iter->edid) in __displayid_iter_next() 99 iter->edid = NULL; in __displayid_iter_next() 112 iter->section = drm_find_displayid_extension(iter->edid, in __displayid_iter_next() 117 iter->edid = NULL; in __displayid_iter_next()
|
/Linux-v5.15/Documentation/admin-guide/ |
D | edid.rst | 4 EDID chapter 16 - The graphics board is unable to detect any EDID data. 17 - The graphics board incorrectly forwards EDID data to the driver. 18 - The monitor sends no or bogus EDID data. 19 - A KVM sends its own EDID data instead of querying the connected monitor. 26 individually prepared or corrected EDID data set in the /lib/firmware 32 of the built-in binary EDID blobs and to facilitate the creation of 36 To create binary EDID and C source code files from the existing data 37 material, simply type "make" in tools/edid/. 39 If you want to create your own EDID file, copy the file 1024x768.S, [all …]
|
/Linux-v5.15/drivers/gpu/drm/bridge/ |
D | nxp-ptn3460.c | 94 /* Load the selected edid into SRAM (accessed at PTN3460_EDID_ADDR) */ in ptn3460_select_edid() 98 DRM_ERROR("Failed to transfer EDID to sram, ret=%d\n", ret); in ptn3460_select_edid() 102 /* Enable EDID emulation and select the desired EDID */ in ptn3460_select_edid() 108 DRM_ERROR("Failed to write EDID value, ret=%d\n", ret); in ptn3460_select_edid() 138 DRM_ERROR("Select EDID failed ret=%d\n", ret); in ptn3460_pre_enable() 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() 170 DRM_ERROR("Failed to allocate EDID\n"); in ptn3460_get_edid() [all …]
|
/Linux-v5.15/drivers/gpu/drm/msm/dp/ |
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() 140 DRM_ERROR("failed to update edid property %d\n", rc); in dp_panel_update_modes() 143 rc = drm_add_edid_modes(connector, edid); in dp_panel_update_modes() 149 DRM_ERROR("failed to update edid property %d\n", rc); in dp_panel_update_modes() 197 kfree(dp_panel->edid); in dp_panel_read_sink_caps() 198 dp_panel->edid = NULL; in dp_panel_read_sink_caps() 200 dp_panel->edid = drm_get_edid(connector, in dp_panel_read_sink_caps() 202 if (!dp_panel->edid) { in dp_panel_read_sink_caps() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/media/i2c/ |
D | adv7604.yaml | 35 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 36 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 37 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 38 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 39 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 40 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 41 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 42 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 43 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] 44 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ] [all …]
|
/Linux-v5.15/drivers/gpu/drm/udl/ |
D | udl_connector.c | 35 DRM_ERROR("Read EDID byte %d failed err %x\n", i, ret); in udl_get_edid_block() 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() 81 /* cleanup previous edid */ in udl_detect() 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() [all …]
|
/Linux-v5.15/include/media/ |
D | cec.h | 177 * read the EDID and is not dependent on an external HDMI driver. 287 struct edid; 302 const struct edid *edid); 378 * @edid: pointer to the EDID data 379 * @size: size in bytes of the EDID data 381 * bytes in the EDID will be returned here. This is set to 0 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 456 * @edid: the EDID [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/display/ |
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() 178 * intel_connector_update_modes - update connector from edid 180 * @edid: previously read EDID information 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() 198 * Fetch the EDID information from @connector using the DDC bus. 203 struct edid *edid; in intel_ddc_get_modes() local 206 edid = drm_get_edid(connector, adapter); in intel_ddc_get_modes() [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/gvt/ |
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() 55 gvt_vgpu_err("Driver tries to read EDID without proper sequence!\n"); in edid_get_byte() 58 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte() 59 gvt_vgpu_err("edid_get_byte() exceeds the size of EDID!\n"); in edid_get_byte() 63 if (!edid->edid_available) { in edid_get_byte() 64 gvt_vgpu_err("Reading EDID but EDID is not available!\n"); 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() [all …]
|
/Linux-v5.15/drivers/gpu/drm/gma500/ |
D | psb_intel_modes.c | 48 * Fetch the EDID information from @connector using the DDC bus. 53 struct edid *edid; in psb_intel_ddc_get_modes() local 56 edid = drm_get_edid(connector, adapter); in psb_intel_ddc_get_modes() 57 if (edid) { in psb_intel_ddc_get_modes() 58 drm_connector_update_edid_property(connector, edid); in psb_intel_ddc_get_modes() 59 ret = drm_add_edid_modes(connector, edid); in psb_intel_ddc_get_modes() 60 kfree(edid); in psb_intel_ddc_get_modes()
|
D | cdv_intel_hdmi.c | 130 struct edid *edid = NULL; in cdv_hdmi_detect() local 133 edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter); in cdv_hdmi_detect() 137 if (edid) { in cdv_hdmi_detect() 138 if (edid->input & DRM_EDID_INPUT_DIGITAL) { in cdv_hdmi_detect() 141 drm_detect_hdmi_monitor(edid); in cdv_hdmi_detect() 143 drm_detect_monitor_audio(edid); in cdv_hdmi_detect() 145 kfree(edid); in cdv_hdmi_detect() 212 struct edid *edid = NULL; in cdv_hdmi_get_modes() local 215 edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter); in cdv_hdmi_get_modes() 216 if (edid) { in cdv_hdmi_get_modes() [all …]
|
/Linux-v5.15/drivers/media/i2c/ |
D | ad9389b.c | 63 /* Number of EDID read retries left */ 86 struct ad9389b_state_edid edid; member 343 struct ad9389b_state_edid *edid = &state->edid; in ad9389b_log_status() local 347 "reading EDID", in ad9389b_log_status() 371 v4l2_info(sd, "%s hotplug, %s Rx Sense, %s EDID (%d block(s))\n", in ad9389b_log_status() 376 edid->segments ? "found" : "no", edid->blocks); in ad9389b_log_status() 491 /* Set number of attempts to read the EDID */ in ad9389b_s_power() 503 /* The datasheet says that the EDID ready interrupt should be in ad9389b_set_isr() 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() [all …]
|
D | adv7511-v4l2.c | 77 /* Number of EDID read retries left */ 120 struct adv7511_state_edid edid; member 571 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local 576 "reading EDID", in adv7511_log_status() 597 v4l2_info(sd, "%s hotplug, %s Rx Sense, %s EDID (%d block(s))\n", in adv7511_log_status() 600 edid->segments ? "found" : "no", in adv7511_log_status() 601 edid->blocks); in adv7511_log_status() 641 v4l2_info(sd, "i2c edid addr: 0x%x\n", state->i2c_edid_addr); in adv7511_log_status() 711 /* Set number of attempts to read the EDID */ in adv7511_s_power() 907 /* The datasheet says that the EDID ready interrupt should be in adv7511_set_isr() [all …]
|
/Linux-v5.15/include/drm/ |
D | drm_edid.h | 320 struct edid { struct 328 /* EDID version */ 375 int drm_edid_to_sad(struct edid *edid, struct cea_sad **sads); argument 376 int drm_edid_to_speaker_allocation(struct edid *edid, u8 **sadb); 381 struct edid *drm_load_edid_firmware(struct drm_connector *connector); 385 static inline struct edid * 392 bool drm_edid_are_equal(const struct edid *edid1, const struct edid *edid2); 512 struct edid *drm_do_get_edid(struct drm_connector *connector, 516 struct edid *drm_get_edid(struct drm_connector *connector, 518 struct edid *drm_get_edid_switcheroo(struct drm_connector *connector, [all …]
|
/Linux-v5.15/drivers/video/fbdev/core/ |
D | fbmon.c | 8 * The EDID Parser is a conglomeration from the following sources: 33 #include <video/edid.h> 36 #include "../edid.h" 39 * EDID parser 42 #undef DEBUG /* define this for verbose EDID parsing output */ 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() [all …]
|
D | fb_ddc.c | 2 * drivers/video/fb_ddc.c - DDC/EDID read support. 18 #include "../edid.h" 41 dev_warn(&adapter->dev, "unable to allocate memory for EDID " in fb_do_probe_ddc_edid() 49 dev_warn(&adapter->dev, "unable to read EDID block.\n"); in fb_do_probe_ddc_edid() 57 unsigned char *edid = NULL; in fb_ddc_read() local 90 edid = fb_do_probe_ddc_edid(adapter); in fb_ddc_read() 110 if (edid) in fb_ddc_read() 120 return edid; in fb_ddc_read() 126 MODULE_DESCRIPTION("DDC/EDID reading support");
|
/Linux-v5.15/drivers/gpu/drm/tegra/ |
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()
|
/Linux-v5.15/drivers/video/fbdev/via/ |
D | via_aux_edid.c | 6 * generic EDID driver 12 #include "../edid.h" 15 static const char *name = "EDID"; 21 unsigned char edid[EDID_LENGTH]; in query_edid() local 33 if (via_aux_read(drv, 0x00, edid, EDID_LENGTH)) { in query_edid() 34 fb_edid_to_monspecs(edid, spec); in query_edid() 42 printk(KERN_DEBUG "EDID: %s %s\n", spec->manufacturer, spec->monitor); in query_edid() 83 /* as EDID devices can be connected/disconnected just add the driver */ in via_aux_edid_probe()
|
/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_helpers.c | 45 * Parse edid caps 47 * @edid: [in] pointer to edid 48 * edid_caps: [in] pointer to edid caps 54 const struct dc_edid *edid, in dm_helpers_parse_edid_caps() argument 57 struct edid *edid_buf = (struct edid *) edid->raw_edid; in dm_helpers_parse_edid_caps() 67 if (!edid_caps || !edid) in dm_helpers_parse_edid_caps() 97 (struct edid *) edid->raw_edid); in dm_helpers_parse_edid_caps() 99 sad_count = drm_edid_to_sad((struct edid *) edid->raw_edid, &sads); in dm_helpers_parse_edid_caps() 113 sadb_count = drm_edid_to_speaker_allocation((struct edid *) edid->raw_edid, &sadb); in dm_helpers_parse_edid_caps() 581 struct edid *edid; in dm_helpers_read_local_edid() local [all …]
|
/Linux-v5.15/drivers/gpu/drm/nouveau/ |
D | nouveau_connector.c | 140 /* We allow 'None' for EDID modes, even on a fixed in nouveau_conn_atomic_set_property() 145 * Non-EDID modes will force the use of GPU scaling in nouveau_conn_atomic_set_property() 400 kfree(nv_connector->edid); in nouveau_connector_destroy() 474 const void *edid = of_get_property(cn, "EDID", NULL); in nouveau_connector_of_detect() local 477 if (nv_encoder->dcb->i2c_index == idx && edid) { in nouveau_connector_of_detect() 478 nv_connector->edid = in nouveau_connector_of_detect() 479 kmemdup(edid, EDID_LENGTH, GFP_KERNEL); in nouveau_connector_of_detect() 536 struct edid *edid) in nouveau_connector_set_edid() argument 538 if (nv_connector->edid != edid) { in nouveau_connector_set_edid() 539 struct edid *old_edid = nv_connector->edid; in nouveau_connector_set_edid() [all …]
|
/Linux-v5.15/drivers/gpu/drm/exynos/ |
D | exynos_drm_vidi.c | 43 struct edid *raw_edid; 197 /* use fake edid data for test. */ in vidi_store_connection() 199 ctx->raw_edid = (struct edid *)fake_edid_info; in vidi_store_connection() 202 if (ctx->raw_edid != (struct edid *)fake_edid_info) { in vidi_store_connection() 203 DRM_DEV_DEBUG_KMS(dev, "edid data is not fake data.\n"); in vidi_store_connection() 248 struct edid *raw_edid; in vidi_connection_ioctl() 250 raw_edid = (struct edid *)(unsigned long)vidi->edid; in vidi_connection_ioctl() 253 "edid data is invalid.\n"); in vidi_connection_ioctl() 265 * only if raw edid data isn't same as fake data. in vidi_connection_ioctl() 268 (struct edid *)fake_edid_info) { in vidi_connection_ioctl() [all …]
|