Lines Matching refs:edid

273 		u8 edid[256];  member
276 } edid; member
572 state->edid.present = 1; in tda1997x_delayed_work_enable_hpd()
1841 static int tda1997x_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in tda1997x_get_edid() argument
1845 v4l_dbg(1, debug, state->client, "%s pad=%d\n", __func__, edid->pad); in tda1997x_get_edid()
1846 memset(edid->reserved, 0, sizeof(edid->reserved)); in tda1997x_get_edid()
1848 if (edid->start_block == 0 && edid->blocks == 0) { in tda1997x_get_edid()
1849 edid->blocks = state->edid.blocks; in tda1997x_get_edid()
1853 if (!state->edid.present) in tda1997x_get_edid()
1856 if (edid->start_block >= state->edid.blocks) in tda1997x_get_edid()
1859 if (edid->start_block + edid->blocks > state->edid.blocks) in tda1997x_get_edid()
1860 edid->blocks = state->edid.blocks - edid->start_block; in tda1997x_get_edid()
1862 memcpy(edid->edid, state->edid.edid + edid->start_block * 128, in tda1997x_get_edid()
1863 edid->blocks * 128); in tda1997x_get_edid()
1868 static int tda1997x_set_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in tda1997x_set_edid() argument
1873 v4l_dbg(1, debug, state->client, "%s pad=%d\n", __func__, edid->pad); in tda1997x_set_edid()
1874 memset(edid->reserved, 0, sizeof(edid->reserved)); in tda1997x_set_edid()
1876 if (edid->start_block != 0) in tda1997x_set_edid()
1879 if (edid->blocks == 0) { in tda1997x_set_edid()
1880 state->edid.blocks = 0; in tda1997x_set_edid()
1881 state->edid.present = 0; in tda1997x_set_edid()
1886 if (edid->blocks > 2) { in tda1997x_set_edid()
1887 edid->blocks = 2; in tda1997x_set_edid()
1895 io_write(sd, REG_EDID_IN_BYTE0 + i, edid->edid[i]); in tda1997x_set_edid()
1899 io_write(sd, REG_EDID_IN_BYTE128 + i, edid->edid[i+128]); in tda1997x_set_edid()
1902 memcpy(state->edid.edid, edid->edid, 256); in tda1997x_set_edid()
1903 state->edid.blocks = edid->blocks; in tda1997x_set_edid()
1972 v4l2_info(sd, "EDID Enabled: %s\n", state->edid.present ? "yes" : "no"); in tda1997x_log_status()