[go: nahoru, domu]

Lines Matching refs:edid

98 	struct ad9389b_state_edid edid;
356 struct ad9389b_state_edid *edid = &state->edid;
389 edid->segments ? "found" : "no", edid->blocks);
677 static int ad9389b_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid)
681 if (edid->pad != 0)
683 if (edid->blocks == 0 || edid->blocks > 256)
685 if (!state->edid.segments) {
689 if (edid->start_block >= state->edid.segments * 2)
691 if (edid->blocks + edid->start_block >= state->edid.segments * 2)
692 edid->blocks = state->edid.segments * 2 - edid->start_block;
693 memcpy(edid->edid, &state->edid.data[edid->start_block * 128],
694 128 * edid->blocks);
806 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment);
841 if (state->edid.read_retries) {
842 state->edid.read_retries--;
843 v4l2_dbg(1, debug, sd, "%s: edid read failed\n", __func__);
856 v4l2_dbg(1, debug, sd, "%s: no edid found\n", __func__);
935 state->edid.read_retries = EDID_MAX_RETRIES;
943 memset(&state->edid, 0, sizeof(struct ad9389b_state_edid));
949 v4l2_ctrl_s_ctrl(state->have_edid0_ctrl, state->edid.segments ? 0x1 : 0x0);
975 memset(&state->edid, 0, sizeof(struct ad9389b_state_edid));
994 u32 blocks = state->edid.blocks;
995 u8 *data = state->edid.data;
1011 u8 *data = state->edid.data;
1031 v4l2_dbg(1, debug, sd, "%s: edid ready (retries: %d)\n",
1032 __func__, EDID_MAX_RETRIES - state->edid.read_retries);
1039 v4l2_err(sd, "edid segment number too big\n");
1043 ad9389b_edid_rd(sd, 256, &state->edid.data[segment * 256]);
1045 &state->edid.data[segment * 256]);
1047 state->edid.blocks = state->edid.data[0x7e] + 1;
1049 __func__, state->edid.blocks);
1053 /* edid crc error, force reread of edid segment */
1054 v4l2_err(sd, "%s: edid crc or header error\n", __func__);
1060 state->edid.segments = segment + 1;
1061 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) {
1064 __func__, state->edid.segments);
1066 ad9389b_wr(sd, 0xc4, state->edid.segments);
1067 state->edid.read_retries = EDID_MAX_RETRIES;
1078 v4l2_ctrl_s_ctrl(state->have_edid0_ctrl, state->edid.segments ? 0x1 : 0x0);
1087 struct ad9389b_state_edid *edid = &state->edid;
1094 memset(edid, 0, sizeof(struct ad9389b_state_edid));
1176 v4l2_err(sd, "failed to register edid i2c client\n");