Lines Matching full:edid

71 	/* Number of EDID read retries left */
114 struct adv7511_state_edid edid; member
561 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local
566 "reading EDID", in adv7511_log_status()
587 v4l2_info(sd, "%s hotplug, %s Rx Sense, %s EDID (%d block(s))\n", in adv7511_log_status()
590 edid->segments ? "found" : "no", in adv7511_log_status()
591 edid->blocks); in adv7511_log_status()
631 v4l2_info(sd, "i2c edid addr: 0x%x\n", state->i2c_edid_addr); in adv7511_log_status()
701 /* Set number of attempts to read the EDID */ in adv7511_s_power()
897 /* The datasheet says that the EDID ready interrupt should be in adv7511_set_isr()
1183 static int adv7511_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv7511_get_edid() argument
1187 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv7511_get_edid()
1189 if (edid->pad != 0) in adv7511_get_edid()
1192 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
1193 edid->blocks = state->edid.blocks; in adv7511_get_edid()
1197 if (state->edid.blocks == 0) in adv7511_get_edid()
1200 if (edid->start_block >= state->edid.blocks) in adv7511_get_edid()
1203 if (edid->start_block + edid->blocks > state->edid.blocks) in adv7511_get_edid()
1204 edid->blocks = state->edid.blocks - edid->start_block; in adv7511_get_edid()
1206 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in adv7511_get_edid()
1207 128 * edid->blocks); in adv7511_get_edid()
1385 * The RGB quantization range shouldn't be non-zero if the EDID doesn't in adv7511_set_fmt()
1388 * knows the EDID and can detect this. in adv7511_set_fmt()
1391 * quantization ranges should only be sent if the EDID has the YQ bit in adv7511_set_fmt()
1443 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment); in adv7511_dbg_dump_edid()
1464 /* We failed to read the EDID, so send an event for this. */ in adv7511_notify_no_edid()
1482 /* Return if we received the EDID. */ in adv7511_edid_handler()
1487 /* We must retry reading the EDID several times, it is possible in adv7511_edid_handler()
1488 * that initially the EDID couldn't be read due to i2c errors in adv7511_edid_handler()
1490 if (state->edid.read_retries) { in adv7511_edid_handler()
1491 state->edid.read_retries--; in adv7511_edid_handler()
1492 v4l2_dbg(1, debug, sd, "%s: edid read failed\n", __func__); in adv7511_edid_handler()
1501 /* We failed to read the EDID, so send an event for this. */ in adv7511_edid_handler()
1503 v4l2_dbg(1, debug, sd, "%s: no edid found\n", __func__); in adv7511_edid_handler()
1574 …if ((status & MASK_ADV7511_HPD_DETECT) && ((status & MASK_ADV7511_MSEN_DETECT) || state->edid.segm… in adv7511_check_monitor_present_status()
1575 v4l2_dbg(1, debug, sd, "%s: hotplug and (rx-sense or edid)\n", __func__); in adv7511_check_monitor_present_status()
1586 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1591 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1601 memset(&state->edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_check_monitor_present_status()
1619 u32 blocks = state->edid.blocks; in edid_verify_crc()
1620 u8 *data = state->edid.data; in edid_verify_crc()
1635 u8 *data = state->edid.data; in edid_verify_header()
1647 v4l2_dbg(1, debug, sd, "%s: edid ready (retries: %d)\n", in adv7511_check_edid_status()
1648 __func__, EDID_MAX_RETRIES - state->edid.read_retries); in adv7511_check_edid_status()
1650 if (state->edid.complete) in adv7511_check_edid_status()
1659 v4l2_err(sd, "edid segment number too big\n"); in adv7511_check_edid_status()
1663 err = adv7511_edid_rd(sd, 256, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1665 adv7511_dbg_dump_edid(2, debug, sd, segment, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1667 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
1669 __func__, state->edid.blocks); in adv7511_check_edid_status()
1674 /* Couldn't read EDID or EDID is invalid. Force retry! */ in adv7511_check_edid_status()
1676 v4l2_err(sd, "%s: edid crc or header error\n", __func__); in adv7511_check_edid_status()
1683 state->edid.segments = segment + 1; in adv7511_check_edid_status()
1685 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) { in adv7511_check_edid_status()
1686 /* Request next EDID segment */ in adv7511_check_edid_status()
1687 v4l2_dbg(1, debug, sd, "%s: request segment %d\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1689 adv7511_wr(sd, 0xc4, state->edid.segments); in adv7511_check_edid_status()
1690 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_edid_status()
1695 v4l2_dbg(1, debug, sd, "%s: edid complete with %d segment(s)\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1696 state->edid.complete = true; in adv7511_check_edid_status()
1697 ed.phys_addr = cec_get_edid_phys_addr(state->edid.data, in adv7511_check_edid_status()
1698 state->edid.segments * 256, in adv7511_check_edid_status()
1782 struct adv7511_state_edid *edid = &state->edid; in adv7511_init_setup() local
1797 memset(edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_init_setup()
1889 /* EDID and CEC i2c addr */ in adv7511_probe()
1907 v4l2_err(sd, "failed to register edid i2c client\n"); in adv7511_probe()