mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
video/hdmi: Derive the bar data valid bit from the bar data fields
Just like: Author: Damien Lespiau <[email protected]> Date: Mon Aug 12 11:53:24 2013 +0100 video/hdmi: Don't let the user of this API create invalid infoframes But this time for the horizontal/vertical bar data present bits. Signed-off-by: Damien Lespiau <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
a5ad3dcf35
commit
974e0701c5
2 changed files with 3 additions and 4 deletions
|
|
@ -103,10 +103,11 @@ ssize_t hdmi_avi_infoframe_pack(struct hdmi_avi_infoframe *frame, void *buffer,
|
|||
if (frame->active_aspect & 0xf)
|
||||
ptr[0] |= BIT(4);
|
||||
|
||||
if (frame->horizontal_bar_valid)
|
||||
/* Bit 3 and 2 indicate if we transmit horizontal/vertical bar data */
|
||||
if (frame->top_bar || frame->bottom_bar)
|
||||
ptr[0] |= BIT(3);
|
||||
|
||||
if (frame->vertical_bar_valid)
|
||||
if (frame->left_bar || frame->right_bar)
|
||||
ptr[0] |= BIT(2);
|
||||
|
||||
ptr[1] = ((frame->colorimetry & 0x3) << 6) |
|
||||
|
|
|
|||
Loading…
Reference in a new issue