提交 4dc20c0d 编写于 作者: P Paulo Zanoni 提交者: Daniel Vetter

drm/i915: ibx_write_infoframe can disable AVI

IBX does not need the workaround used in cpt_write_infoframe that
requires the AVI frame to be enabled while being updated.
Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 fdf1250a
...@@ -187,13 +187,7 @@ static void ibx_write_infoframe(struct drm_encoder *encoder, ...@@ -187,13 +187,7 @@ static void ibx_write_infoframe(struct drm_encoder *encoder,
val &= ~(VIDEO_DIP_SELECT_MASK | 0xf); /* clear DIP data offset */ val &= ~(VIDEO_DIP_SELECT_MASK | 0xf); /* clear DIP data offset */
val |= intel_infoframe_index(frame); val |= intel_infoframe_index(frame);
/* The DIP control register spec says that we need to update the AVI val &= ~intel_infoframe_enable(frame);
* infoframe without clearing its enable bit */
if (frame->type == DIP_TYPE_AVI)
val |= VIDEO_DIP_ENABLE_AVI;
else
val &= ~intel_infoframe_enable(frame);
val |= VIDEO_DIP_ENABLE; val |= VIDEO_DIP_ENABLE;
I915_WRITE(reg, val); I915_WRITE(reg, val);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册