OSDN Git Service

video/hdmi: Allow "empty" HDMI infoframes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Nov 2017 17:04:18 +0000 (19:04 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Nov 2017 14:55:35 +0000 (16:55 +0200)
commit593f4b19a094c4426bd1e1e3cbab87a48bd13c71
tree5c4fa000fd96dc52b4890fecb817be7191a2ad38
parent03e4e0a9e02cf703da331ff6cfd57d0be9bf5692
video/hdmi: Allow "empty" HDMI infoframes

HDMI 2.0 Appendix F suggest that we should keep sending the infoframe
when switching from 3D to 2D mode, even if the infoframe isn't strictly
necessary (ie. not needed to transmit the VIC or stereo information).
This is a workaround against some sinks that fail to realize that they
should switch from 3D to 2D mode when the source stop transmitting
the infoframe.

v2: Handle unpack() as well
    Pull the length calculation into a helper

Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: linux-media@vger.kernel.org
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com> #v1
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171113170427.4150-2-ville.syrjala@linux.intel.com
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
drivers/video/hdmi.c