return flags;
}
-static u32 intel_infoframe_frequency(struct dip_infoframe *frame)
-{
- u32 flags = 0;
-
- switch (frame->type) {
- case DIP_TYPE_AVI:
- case DIP_TYPE_SPD:
- flags |= VIDEO_DIP_FREQ_VSYNC;
- break;
- default:
- DRM_DEBUG_DRIVER("unknown info frame type %d\n", frame->type);
- break;
- }
-
- return flags;
-}
-
static void i9xx_write_infoframe(struct drm_encoder *encoder,
struct dip_infoframe *frame)
{
val |= intel_infoframe_enable(frame);
val &= ~VIDEO_DIP_FREQ_MASK;
- val |= intel_infoframe_frequency(frame);
+ val |= VIDEO_DIP_FREQ_VSYNC;
I915_WRITE(VIDEO_DIP_CTL, val);
}
val |= intel_infoframe_enable(frame);
val &= ~VIDEO_DIP_FREQ_MASK;
- val |= intel_infoframe_frequency(frame);
+ val |= VIDEO_DIP_FREQ_VSYNC;
I915_WRITE(reg, val);
}
val |= intel_infoframe_enable(frame);
val &= ~VIDEO_DIP_FREQ_MASK;
- val |= intel_infoframe_frequency(frame);
+ val |= VIDEO_DIP_FREQ_VSYNC;
I915_WRITE(reg, val);
}
val |= intel_infoframe_enable(frame);
val &= ~VIDEO_DIP_FREQ_MASK;
- val |= intel_infoframe_frequency(frame);
+ val |= VIDEO_DIP_FREQ_VSYNC;
I915_WRITE(reg, val);
}