Lines Matching full:tv
30 * Integrated TV-out support for the 915GM and 945GM.
383 * Register programming values for TV modes.
953 int format = conn_state->tv.legacy_mode;
974 /* Ensure TV refresh is close to desired refresh */
1046 /* TV has it's own notion of sync and other mode flags, so clear them. */
1155 drm_dbg_kms(display->drm, "TV mode: " DRM_MODE_FMT "\n",
1167 /* pixel counter doesn't work on i965gm TV output */
1184 conn_state->tv.margins.top -
1185 conn_state->tv.margins.bottom !=
1216 drm_dbg_kms(display->drm, "forcing bpc to 8 for TV\n");
1245 top = conn_state->tv.margins.top;
1246 bottom = conn_state->tv.margins.bottom;
1265 tv_conn_state->margins.top = conn_state->tv.margins.top;
1266 tv_conn_state->margins.bottom = conn_state->tv.margins.bottom;
1271 drm_dbg_kms(display->drm, "TV mode: " DRM_MODE_FMT "\n",
1276 * using the TV encoder:
1288 * | | | | pipe vblank/first part of tv vblank
1292 * remainder of tv vblank
1294 * When the TV encoder is used the pipe wants to run faster
1295 * than expected rate. During the active portion the TV
1297 * check. When the TV encoder reaches the bottom margin the
1298 * pipe simply stops. Once we reach the TV vblank the pipe is
1302 * of the TV vblank/top margin. The pipe starts up again when
1303 * the TV encoder exits the top margin.
1311 * TV vblank/margins. But since vtotal was selected such that
1340 conn_state->tv.margins.left,
1341 conn_state->tv.margins.right);
1348 /* pixel counter doesn't work on i965gm TV output */
1555 xpos = conn_state->tv.margins.left;
1557 xsize -= (conn_state->tv.margins.left +
1558 conn_state->tv.margins.right);
1592 /* Disable TV interrupts around load detect or we'll recurse */
1604 /* Poll for TV detection */
1621 * The TV sense state should be cleared to zero on cantiga platform. Otherwise
1622 * the TV is misdetected. This is hardware requirement.
1636 drm_dbg_kms(display->drm, "TV detected: %x, %x\n", tv_ctl, tv_dac);
1645 "Detected Composite TV connection\n");
1649 "Detected S-Video TV connection\n");
1653 "Detected Component TV connection\n");
1656 drm_dbg_kms(display->drm, "Unrecognised TV connection\n");
1680 * Here we set accurate tv format according to connector type
1681 * i.e Component TV should not be assigned by NTSC or PAL
1704 connector->state->tv.legacy_mode = i;
1765 /* Choose preferred mode according to line number of TV format */
1772 /* prefer 480 line modes for all SD TV modes */
1815 * We take the TV mode and scale it to look
1824 "TV mode: " DRM_MODE_FMT "\n",
1863 if (old_state->tv.legacy_mode != new_state->tv.legacy_mode ||
1864 old_state->tv.margins.left != new_state->tv.margins.left ||
1865 old_state->tv.margins.right != new_state->tv.margins.right ||
1866 old_state->tv.margins.top != new_state->tv.margins.top ||
1867 old_state->tv.margins.bottom != new_state->tv.margins.bottom) {
1895 conn_state->tv.margins.left = 54;
1896 conn_state->tv.margins.top = 36;
1897 conn_state->tv.margins.right = 46;
1898 conn_state->tv.margins.bottom = 37;
1900 conn_state->tv.legacy_mode = 0;
1902 /* Create TV properties then attach current values */
1914 conn_state->tv.legacy_mode);
1917 conn_state->tv.margins.left);
1920 conn_state->tv.margins.top);
1923 conn_state->tv.margins.right);
1926 conn_state->tv.margins.bottom);
1942 drm_dbg_kms(display->drm, "Integrated TV is not present.\n");
1947 * Sanity check the TV output by checking to see if the
1987 * for the TV must be kept alive increasing power drain and starving
2001 DRM_MODE_ENCODER_TVDAC, "TV");