* [PATCH v2 01/10] video/hdmi: Add an enum for HDMI packet types [not found] <20190110211445.24177-1-ville.syrjala@linux.intel.com> @ 2019-01-10 21:14 ` Ville Syrjala 0 siblings, 0 replies; 2+ messages in thread From: Ville Syrjala @ 2019-01-10 21:14 UTC (permalink / raw) To: intel-gfx; +Cc: Thierry Reding, Hans Verkuil, linux-media From: Ville Syrjälä <ville.syrjala@linux.intel.com> We'll be wanting to send more than just infoframes over HDMI. So add an enum for other packet types. TODO: Maybe just include the infoframe types in the packet type enum and get rid of the infoframe type enum? v2: s/AUDIO_CP/ACP/ (Shashank) Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Hans Verkuil <hans.verkuil@cisco.com> Cc: linux-media@vger.kernel.org Reviewed-by: Shashank Sharma <shashank.sharma@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> --- include/linux/hdmi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h index d2bacf502429..927ad6451105 100644 --- a/include/linux/hdmi.h +++ b/include/linux/hdmi.h @@ -27,6 +27,21 @@ #include <linux/types.h> #include <linux/device.h> +enum hdmi_packet_type { + HDMI_PACKET_TYPE_NULL = 0x00, + HDMI_PACKET_TYPE_AUDIO_CLOCK_REGEN = 0x01, + HDMI_PACKET_TYPE_AUDIO_SAMPLE = 0x02, + HDMI_PACKET_TYPE_GENERAL_CONTROL = 0x03, + HDMI_PACKET_TYPE_ACP = 0x04, + HDMI_PACKET_TYPE_ISRC1 = 0x05, + HDMI_PACKET_TYPE_ISRC2 = 0x06, + HDMI_PACKET_TYPE_ONE_BIT_AUDIO_SAMPLE = 0x07, + HDMI_PACKET_TYPE_DST_AUDIO = 0x08, + HDMI_PACKET_TYPE_HBR_AUDIO_STREAM = 0x09, + HDMI_PACKET_TYPE_GAMUT_METADATA = 0x0a, + /* + enum hdmi_infoframe_type */ +}; + enum hdmi_infoframe_type { HDMI_INFOFRAME_TYPE_VENDOR = 0x81, HDMI_INFOFRAME_TYPE_AVI = 0x82, -- 2.19.2 ^ permalink raw reply related [flat|nested] 2+ messages in thread
[parent not found: <20181217155458.5503-1-ville.syrjala@linux.intel.com>]
* [PATCH v2 01/10] video/hdmi: Add an enum for HDMI packet types [not found] <20181217155458.5503-1-ville.syrjala@linux.intel.com> @ 2018-12-17 15:54 ` Ville Syrjala 0 siblings, 0 replies; 2+ messages in thread From: Ville Syrjala @ 2018-12-17 15:54 UTC (permalink / raw) To: intel-gfx; +Cc: Hans de Goede, Thierry Reding, Hans Verkuil, linux-media From: Ville Syrjälä <ville.syrjala@linux.intel.com> We'll be wanting to send more than just infoframes over HDMI. So add an enum for other packet types. TODO: Maybe just include the infoframe types in the packet type enum and get rid of the infoframe type enum? Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Hans Verkuil <hans.verkuil@cisco.com> Cc: linux-media@vger.kernel.org Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> --- include/linux/hdmi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h index d2bacf502429..ade19b0cf9d2 100644 --- a/include/linux/hdmi.h +++ b/include/linux/hdmi.h @@ -27,6 +27,21 @@ #include <linux/types.h> #include <linux/device.h> +enum hdmi_packet_type { + HDMI_PACKET_TYPE_NULL = 0x00, + HDMI_PACKET_TYPE_AUDIO_CLOCK_REGEN = 0x01, + HDMI_PACKET_TYPE_AUDIO_SAMPLE = 0x02, + HDMI_PACKET_TYPE_GENERAL_CONTROL = 0x03, + HDMI_PACKET_TYPE_AUDIO_CP = 0x04, + HDMI_PACKET_TYPE_ISRC1 = 0x05, + HDMI_PACKET_TYPE_ISRC2 = 0x06, + HDMI_PACKET_TYPE_ONE_BIT_AUDIO_SAMPLE = 0x07, + HDMI_PACKET_TYPE_DST_AUDIO = 0x08, + HDMI_PACKET_TYPE_HBR_AUDIO_STREAM = 0x09, + HDMI_PACKET_TYPE_GAMUT_METADATA = 0x0a, + /* + enum hdmi_infoframe_type */ +}; + enum hdmi_infoframe_type { HDMI_INFOFRAME_TYPE_VENDOR = 0x81, HDMI_INFOFRAME_TYPE_AVI = 0x82, -- 2.18.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-10 21:14 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20190110211445.24177-1-ville.syrjala@linux.intel.com> 2019-01-10 21:14 ` [PATCH v2 01/10] video/hdmi: Add an enum for HDMI packet types Ville Syrjala [not found] <20181217155458.5503-1-ville.syrjala@linux.intel.com> 2018-12-17 15:54 ` Ville Syrjala
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).