video_levels
const struct video_levels *video_levels;
video_levels = tv_mode->composite_levels;
video_levels = &component_levels;
video_levels = tv_mode->svideo_levels;
if (video_levels)
scctl1 |= video_levels->burst << TV_BURST_LEVEL_SHIFT;
if (video_levels)
((video_levels->black << TV_BLACK_LEVEL_SHIFT) | (video_levels->blank << TV_BLANK_LEVEL_SHIFT)));
static const struct video_levels ntsc_m_levels_composite = {
static const struct video_levels ntsc_m_levels_svideo = {
static const struct video_levels ntsc_j_levels_composite = {
static const struct video_levels ntsc_j_levels_svideo = {
static const struct video_levels pal_levels_composite = {
static const struct video_levels pal_levels_svideo = {
static const struct video_levels pal_m_levels_composite = {
static const struct video_levels pal_m_levels_svideo = {
static const struct video_levels pal_n_levels_composite = {
static const struct video_levels pal_n_levels_svideo = {
static const struct video_levels component_levels = {
const struct video_levels *composite_levels, *svideo_levels;
const struct video_levels *video_levels;
static const struct video_levels ntsc_video_levels = {
static const struct video_levels pal_video_levels = {
.video_levels = &ntsc_video_levels,
.video_levels = &pal_video_levels,
SUN4I_TVE_LEVEL_BLANK(tv_mode->video_levels->blank) |
SUN4I_TVE_LEVEL_BLACK(tv_mode->video_levels->black));