Lines Matching full:edid

76 	/* Number of EDID read retries left */
119 struct adv7511_state_edid edid; member
548 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local
553 "reading EDID", in adv7511_log_status()
574 v4l2_info(sd, "%s hotplug, %s Rx Sense, %s EDID (%d block(s))\n", in adv7511_log_status()
577 edid->segments ? "found" : "no", in adv7511_log_status()
578 edid->blocks); in adv7511_log_status()
618 v4l2_info(sd, "i2c edid addr: 0x%x\n", state->i2c_edid_addr); in adv7511_log_status()
688 /* Set number of attempts to read the EDID */ in adv7511_s_power()
884 /* The datasheet says that the EDID ready interrupt should be in adv7511_set_isr()
1166 static int adv7511_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv7511_get_edid() argument
1170 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv7511_get_edid()
1172 if (edid->pad != 0) in adv7511_get_edid()
1175 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
1176 edid->blocks = state->edid.blocks; in adv7511_get_edid()
1180 if (state->edid.blocks == 0) in adv7511_get_edid()
1183 if (edid->start_block >= state->edid.blocks) in adv7511_get_edid()
1186 if (edid->start_block + edid->blocks > state->edid.blocks) in adv7511_get_edid()
1187 edid->blocks = state->edid.blocks - edid->start_block; in adv7511_get_edid()
1189 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in adv7511_get_edid()
1190 128 * edid->blocks); in adv7511_get_edid()
1368 * The RGB quantization range shouldn't be non-zero if the EDID doesn't in adv7511_set_fmt()
1371 * knows the EDID and can detect this. in adv7511_set_fmt()
1374 * quantization ranges should only be sent if the EDID has the YQ bit in adv7511_set_fmt()
1424 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment); in adv7511_dbg_dump_edid()
1445 /* We failed to read the EDID, so send an event for this. */ in adv7511_notify_no_edid()
1463 /* Return if we received the EDID. */ in adv7511_edid_handler()
1468 /* We must retry reading the EDID several times, it is possible in adv7511_edid_handler()
1469 * that initially the EDID couldn't be read due to i2c errors in adv7511_edid_handler()
1471 if (state->edid.read_retries) { in adv7511_edid_handler()
1472 state->edid.read_retries--; in adv7511_edid_handler()
1473 v4l2_dbg(1, debug, sd, "%s: edid read failed\n", __func__); in adv7511_edid_handler()
1482 /* We failed to read the EDID, so send an event for this. */ in adv7511_edid_handler()
1484 v4l2_dbg(1, debug, sd, "%s: no edid found\n", __func__); in adv7511_edid_handler()
1555 …if ((status & MASK_ADV7511_HPD_DETECT) && ((status & MASK_ADV7511_MSEN_DETECT) || state->edid.segm… in adv7511_check_monitor_present_status()
1556 v4l2_dbg(1, debug, sd, "%s: hotplug and (rx-sense or edid)\n", __func__); in adv7511_check_monitor_present_status()
1567 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1572 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1582 memset(&state->edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_check_monitor_present_status()
1600 u32 blocks = state->edid.blocks; in edid_verify_crc()
1601 u8 *data = state->edid.data; in edid_verify_crc()
1616 u8 *data = state->edid.data; in edid_verify_header()
1628 v4l2_dbg(1, debug, sd, "%s: edid ready (retries: %d)\n", in adv7511_check_edid_status()
1629 __func__, EDID_MAX_RETRIES - state->edid.read_retries); in adv7511_check_edid_status()
1631 if (state->edid.complete) in adv7511_check_edid_status()
1640 v4l2_err(sd, "edid segment number too big\n"); in adv7511_check_edid_status()
1644 err = adv7511_edid_rd(sd, 256, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1646 adv7511_dbg_dump_edid(2, debug, sd, segment, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1648 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
1650 __func__, state->edid.blocks); in adv7511_check_edid_status()
1655 /* Couldn't read EDID or EDID is invalid. Force retry! */ in adv7511_check_edid_status()
1657 v4l2_err(sd, "%s: edid crc or header error\n", __func__); in adv7511_check_edid_status()
1664 state->edid.segments = segment + 1; in adv7511_check_edid_status()
1666 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) { in adv7511_check_edid_status()
1667 /* Request next EDID segment */ in adv7511_check_edid_status()
1668 v4l2_dbg(1, debug, sd, "%s: request segment %d\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1670 adv7511_wr(sd, 0xc4, state->edid.segments); in adv7511_check_edid_status()
1671 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_edid_status()
1676 v4l2_dbg(1, debug, sd, "%s: edid complete with %d segment(s)\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1677 state->edid.complete = true; in adv7511_check_edid_status()
1678 ed.phys_addr = cec_get_edid_phys_addr(state->edid.data, in adv7511_check_edid_status()
1679 state->edid.segments * 256, in adv7511_check_edid_status()
1724 struct adv7511_state_edid *edid = &state->edid; in adv7511_init_setup() local
1739 memset(edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_init_setup()
1831 /* EDID and CEC i2c addr */ in adv7511_probe()
1849 v4l2_err(sd, "failed to register edid i2c client\n"); in adv7511_probe()