forked from Minki/linux
drm/vc4: Use drm_hdmi_avi_infoframe_bars()
Use the new drm_hdmi_avi_infoframe_bars() helper instead of hand rolling it. Cc: Eric Anholt <eric@anholt.net> Cc: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191008164814.5894-2-ville.syrjala@linux.intel.com Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
This commit is contained in:
parent
076d9a5d67
commit
cb87637249
@ -398,10 +398,7 @@ static void vc4_hdmi_set_avi_infoframe(struct drm_encoder *encoder)
|
||||
HDMI_QUANTIZATION_RANGE_LIMITED :
|
||||
HDMI_QUANTIZATION_RANGE_FULL);
|
||||
|
||||
frame.avi.right_bar = cstate->tv.margins.right;
|
||||
frame.avi.left_bar = cstate->tv.margins.left;
|
||||
frame.avi.top_bar = cstate->tv.margins.top;
|
||||
frame.avi.bottom_bar = cstate->tv.margins.bottom;
|
||||
drm_hdmi_avi_infoframe_bars(&frame.avi, cstate);
|
||||
|
||||
vc4_hdmi_write_infoframe(encoder, &frame);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user