* [PATCH] drm/amd/display: start using linux hdmi header
@ 2017-01-09 23:33 Dave Airlie
[not found] ` <20170109233332.9102-1-airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Dave Airlie @ 2017-01-09 23:33 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
From: Dave Airlie <airlied@redhat.com>
DAL has defines for things, and it doesn't even use them itself.
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 18 ++++++++----------
.../gpu/drm/amd/display/include/set_mode_types.h | 22 +---------------------
2 files changed, 9 insertions(+), 31 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 2b08f5a..0f8bb6e 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1333,13 +1333,12 @@ static void set_avi_info_frame(
/* Initialize header */
info_frame.avi_info_packet.info_packet_hdmi.bits.header.
- info_frame_type = INFO_FRAME_AVI;
+ info_frame_type = HDMI_INFOFRAME_TYPE_AVI;
/* InfoFrameVersion_3 is defined by CEA861F (Section 6.4), but shall
* not be used in HDMI 2.0 (Section 10.1) */
- info_frame.avi_info_packet.info_packet_hdmi.bits.header.version =
- INFO_FRAME_VERSION_2;
+ info_frame.avi_info_packet.info_packet_hdmi.bits.header.version = 2;
info_frame.avi_info_packet.info_packet_hdmi.bits.header.length =
- INFO_FRAME_SIZE_AVI;
+ HDMI_AVI_INFOFRAME_SIZE;
/*
* IDO-defined (Y2,Y1,Y0 = 1,1,1) shall not be used by devices built
@@ -1472,10 +1471,9 @@ static void set_avi_info_frame(
check_sum =
&info_frame.
avi_info_packet.info_packet_hdmi.packet_raw_data.sb[0];
- *check_sum = INFO_FRAME_AVI + INFO_FRAME_SIZE_AVI
- + INFO_FRAME_VERSION_2;
+ *check_sum = HDMI_INFOFRAME_TYPE_AVI + HDMI_AVI_INFOFRAME_SIZE + 2;
- for (byte_index = 1; byte_index <= INFO_FRAME_SIZE_AVI; byte_index++)
+ for (byte_index = 1; byte_index <= HDMI_AVI_INFOFRAME_SIZE; byte_index++)
*check_sum += info_frame.avi_info_packet.info_packet_hdmi.
packet_raw_data.sb[byte_index];
@@ -1586,7 +1584,7 @@ static void set_vendor_info_packet(struct core_stream *stream,
info_packet->sb[5] = stream->public.timing.hdmi_vic;
/* Header */
- info_packet->hb0 = 0x81; /* VSIF packet type. */
+ info_packet->hb0 = HDMI_INFOFRAME_TYPE_VENDOR; /* VSIF packet type. */
info_packet->hb1 = 0x01; /* Version */
/* 4 lower bits = Length, 4 higher bits = 0 (reserved) */
@@ -1627,7 +1625,7 @@ static void set_spd_info_packet(struct core_stream *stream,
/* HB0 = Packet Type = 0x83 (Source Product
* Descriptor InfoFrame)
*/
- info_packet->hb0 = 0x83;
+ info_packet->hb0 = HDMI_INFOFRAME_TYPE_SPD;
/* HB1 = Version = 0x01 */
info_packet->hb1 = 0x01;
@@ -1649,7 +1647,7 @@ static void set_spd_info_packet(struct core_stream *stream,
/* HB1 = Packet Type = 0x83 (Source Product
* Descriptor InfoFrame)
*/
- info_packet->hb1 = 0x83;
+ info_packet->hb1 = HDMI_INFOFRAME_TYPE_SPD;
/* HB2 = [Bits 7:0 = Least significant eight bits -
* For INFOFRAME, the value must be 1Bh]
diff --git a/drivers/gpu/drm/amd/display/include/set_mode_types.h b/drivers/gpu/drm/amd/display/include/set_mode_types.h
index d18210f..fee2b6f 100644
--- a/drivers/gpu/drm/amd/display/include/set_mode_types.h
+++ b/drivers/gpu/drm/amd/display/include/set_mode_types.h
@@ -27,6 +27,7 @@
#define __DAL_SET_MODE_TYPES_H__
#include "dc_types.h"
+#include <linux/hdmi.h>
/* Info frame packet status */
enum info_frame_flag {
@@ -36,27 +37,6 @@ enum info_frame_flag {
INFO_PACKET_PACKET_UPDATE_SCAN_TYPE = 8
};
-/* Info frame types */
-enum info_frame_type {
- INFO_FRAME_GAMUT = 0x0A,
- INFO_FRAME_VENDOR_INFO = 0x81,
- INFO_FRAME_AVI = 0x82
-};
-
-/* Info frame versions */
-enum info_frame_version {
- INFO_FRAME_VERSION_1 = 1,
- INFO_FRAME_VERSION_2 = 2,
- INFO_FRAME_VERSION_3 = 3
-};
-
-/* Info frame size */
-enum info_frame_size {
- INFO_FRAME_SIZE_AVI = 13,
- INFO_FRAME_SIZE_VENDOR = 25,
- INFO_FRAME_SIZE_AUDIO = 10
-};
-
struct hdmi_info_frame_header {
uint8_t info_frame_type;
uint8_t version;
--
2.9.3
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amd/display: start using linux hdmi header
[not found] ` <20170109233332.9102-1-airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-01-10 1:35 ` Edward O'Callaghan
2017-01-10 15:20 ` Cheng, Tony
1 sibling, 0 replies; 4+ messages in thread
From: Edward O'Callaghan @ 2017-01-10 1:35 UTC (permalink / raw)
To: Dave Airlie, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1.1: Type: text/plain, Size: 4460 bytes --]
Reviewed-by: Edward O'Callaghan <funfunctor-dczkZgxz+BNUPWh3PAxdjQ@public.gmane.org>
On 01/10/2017 10:33 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>
> DAL has defines for things, and it doesn't even use them itself.
>
> Signed-off-by: Dave Airlie <airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 18 ++++++++----------
> .../gpu/drm/amd/display/include/set_mode_types.h | 22 +---------------------
> 2 files changed, 9 insertions(+), 31 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> index 2b08f5a..0f8bb6e 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> @@ -1333,13 +1333,12 @@ static void set_avi_info_frame(
>
> /* Initialize header */
> info_frame.avi_info_packet.info_packet_hdmi.bits.header.
> - info_frame_type = INFO_FRAME_AVI;
> + info_frame_type = HDMI_INFOFRAME_TYPE_AVI;
> /* InfoFrameVersion_3 is defined by CEA861F (Section 6.4), but shall
> * not be used in HDMI 2.0 (Section 10.1) */
> - info_frame.avi_info_packet.info_packet_hdmi.bits.header.version =
> - INFO_FRAME_VERSION_2;
> + info_frame.avi_info_packet.info_packet_hdmi.bits.header.version = 2;
> info_frame.avi_info_packet.info_packet_hdmi.bits.header.length =
> - INFO_FRAME_SIZE_AVI;
> + HDMI_AVI_INFOFRAME_SIZE;
>
> /*
> * IDO-defined (Y2,Y1,Y0 = 1,1,1) shall not be used by devices built
> @@ -1472,10 +1471,9 @@ static void set_avi_info_frame(
> check_sum =
> &info_frame.
> avi_info_packet.info_packet_hdmi.packet_raw_data.sb[0];
> - *check_sum = INFO_FRAME_AVI + INFO_FRAME_SIZE_AVI
> - + INFO_FRAME_VERSION_2;
> + *check_sum = HDMI_INFOFRAME_TYPE_AVI + HDMI_AVI_INFOFRAME_SIZE + 2;
>
> - for (byte_index = 1; byte_index <= INFO_FRAME_SIZE_AVI; byte_index++)
> + for (byte_index = 1; byte_index <= HDMI_AVI_INFOFRAME_SIZE; byte_index++)
> *check_sum += info_frame.avi_info_packet.info_packet_hdmi.
> packet_raw_data.sb[byte_index];
>
> @@ -1586,7 +1584,7 @@ static void set_vendor_info_packet(struct core_stream *stream,
> info_packet->sb[5] = stream->public.timing.hdmi_vic;
>
> /* Header */
> - info_packet->hb0 = 0x81; /* VSIF packet type. */
> + info_packet->hb0 = HDMI_INFOFRAME_TYPE_VENDOR; /* VSIF packet type. */
> info_packet->hb1 = 0x01; /* Version */
>
> /* 4 lower bits = Length, 4 higher bits = 0 (reserved) */
> @@ -1627,7 +1625,7 @@ static void set_spd_info_packet(struct core_stream *stream,
> /* HB0 = Packet Type = 0x83 (Source Product
> * Descriptor InfoFrame)
> */
> - info_packet->hb0 = 0x83;
> + info_packet->hb0 = HDMI_INFOFRAME_TYPE_SPD;
>
> /* HB1 = Version = 0x01 */
> info_packet->hb1 = 0x01;
> @@ -1649,7 +1647,7 @@ static void set_spd_info_packet(struct core_stream *stream,
> /* HB1 = Packet Type = 0x83 (Source Product
> * Descriptor InfoFrame)
> */
> - info_packet->hb1 = 0x83;
> + info_packet->hb1 = HDMI_INFOFRAME_TYPE_SPD;
>
> /* HB2 = [Bits 7:0 = Least significant eight bits -
> * For INFOFRAME, the value must be 1Bh]
> diff --git a/drivers/gpu/drm/amd/display/include/set_mode_types.h b/drivers/gpu/drm/amd/display/include/set_mode_types.h
> index d18210f..fee2b6f 100644
> --- a/drivers/gpu/drm/amd/display/include/set_mode_types.h
> +++ b/drivers/gpu/drm/amd/display/include/set_mode_types.h
> @@ -27,6 +27,7 @@
> #define __DAL_SET_MODE_TYPES_H__
>
> #include "dc_types.h"
> +#include <linux/hdmi.h>
>
> /* Info frame packet status */
> enum info_frame_flag {
> @@ -36,27 +37,6 @@ enum info_frame_flag {
> INFO_PACKET_PACKET_UPDATE_SCAN_TYPE = 8
> };
>
> -/* Info frame types */
> -enum info_frame_type {
> - INFO_FRAME_GAMUT = 0x0A,
> - INFO_FRAME_VENDOR_INFO = 0x81,
> - INFO_FRAME_AVI = 0x82
> -};
> -
> -/* Info frame versions */
> -enum info_frame_version {
> - INFO_FRAME_VERSION_1 = 1,
> - INFO_FRAME_VERSION_2 = 2,
> - INFO_FRAME_VERSION_3 = 3
> -};
> -
> -/* Info frame size */
> -enum info_frame_size {
> - INFO_FRAME_SIZE_AVI = 13,
> - INFO_FRAME_SIZE_VENDOR = 25,
> - INFO_FRAME_SIZE_AUDIO = 10
> -};
> -
> struct hdmi_info_frame_header {
> uint8_t info_frame_type;
> uint8_t version;
>
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] drm/amd/display: start using linux hdmi header
[not found] ` <20170109233332.9102-1-airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-10 1:35 ` Edward O'Callaghan
@ 2017-01-10 15:20 ` Cheng, Tony
[not found] ` <MWHPR12MB14060D985C3E414BE2E6358E98670-Gy0DoCVfaSXS1+HfpYZxvgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
1 sibling, 1 reply; 4+ messages in thread
From: Cheng, Tony @ 2017-01-10 15:20 UTC (permalink / raw)
To: Dave Airlie, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Wentland, Harry
Ack. Just give Harry a few days to do the require work to make sure everything still work with our other OS / environments.
-----Original Message-----
From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf Of Dave Airlie
Sent: Monday, January 9, 2017 6:34 PM
To: amd-gfx@lists.freedesktop.org
Subject: [PATCH] drm/amd/display: start using linux hdmi header
From: Dave Airlie <airlied@redhat.com>
DAL has defines for things, and it doesn't even use them itself.
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 18 ++++++++----------
.../gpu/drm/amd/display/include/set_mode_types.h | 22 +---------------------
2 files changed, 9 insertions(+), 31 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 2b08f5a..0f8bb6e 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1333,13 +1333,12 @@ static void set_avi_info_frame(
/* Initialize header */
info_frame.avi_info_packet.info_packet_hdmi.bits.header.
- info_frame_type = INFO_FRAME_AVI;
+ info_frame_type = HDMI_INFOFRAME_TYPE_AVI;
/* InfoFrameVersion_3 is defined by CEA861F (Section 6.4), but shall
* not be used in HDMI 2.0 (Section 10.1) */
- info_frame.avi_info_packet.info_packet_hdmi.bits.header.version =
- INFO_FRAME_VERSION_2;
+ info_frame.avi_info_packet.info_packet_hdmi.bits.header.version = 2;
info_frame.avi_info_packet.info_packet_hdmi.bits.header.length =
- INFO_FRAME_SIZE_AVI;
+ HDMI_AVI_INFOFRAME_SIZE;
/*
* IDO-defined (Y2,Y1,Y0 = 1,1,1) shall not be used by devices built @@ -1472,10 +1471,9 @@ static void set_avi_info_frame(
check_sum =
&info_frame.
avi_info_packet.info_packet_hdmi.packet_raw_data.sb[0];
- *check_sum = INFO_FRAME_AVI + INFO_FRAME_SIZE_AVI
- + INFO_FRAME_VERSION_2;
+ *check_sum = HDMI_INFOFRAME_TYPE_AVI + HDMI_AVI_INFOFRAME_SIZE + 2;
- for (byte_index = 1; byte_index <= INFO_FRAME_SIZE_AVI; byte_index++)
+ for (byte_index = 1; byte_index <= HDMI_AVI_INFOFRAME_SIZE;
+byte_index++)
*check_sum += info_frame.avi_info_packet.info_packet_hdmi.
packet_raw_data.sb[byte_index];
@@ -1586,7 +1584,7 @@ static void set_vendor_info_packet(struct core_stream *stream,
info_packet->sb[5] = stream->public.timing.hdmi_vic;
/* Header */
- info_packet->hb0 = 0x81; /* VSIF packet type. */
+ info_packet->hb0 = HDMI_INFOFRAME_TYPE_VENDOR; /* VSIF packet type. */
info_packet->hb1 = 0x01; /* Version */
/* 4 lower bits = Length, 4 higher bits = 0 (reserved) */ @@ -1627,7 +1625,7 @@ static void set_spd_info_packet(struct core_stream *stream,
/* HB0 = Packet Type = 0x83 (Source Product
* Descriptor InfoFrame)
*/
- info_packet->hb0 = 0x83;
+ info_packet->hb0 = HDMI_INFOFRAME_TYPE_SPD;
/* HB1 = Version = 0x01 */
info_packet->hb1 = 0x01;
@@ -1649,7 +1647,7 @@ static void set_spd_info_packet(struct core_stream *stream,
/* HB1 = Packet Type = 0x83 (Source Product
* Descriptor InfoFrame)
*/
- info_packet->hb1 = 0x83;
+ info_packet->hb1 = HDMI_INFOFRAME_TYPE_SPD;
/* HB2 = [Bits 7:0 = Least significant eight bits -
* For INFOFRAME, the value must be 1Bh]
diff --git a/drivers/gpu/drm/amd/display/include/set_mode_types.h b/drivers/gpu/drm/amd/display/include/set_mode_types.h
index d18210f..fee2b6f 100644
--- a/drivers/gpu/drm/amd/display/include/set_mode_types.h
+++ b/drivers/gpu/drm/amd/display/include/set_mode_types.h
@@ -27,6 +27,7 @@
#define __DAL_SET_MODE_TYPES_H__
#include "dc_types.h"
+#include <linux/hdmi.h>
/* Info frame packet status */
enum info_frame_flag {
@@ -36,27 +37,6 @@ enum info_frame_flag {
INFO_PACKET_PACKET_UPDATE_SCAN_TYPE = 8 };
-/* Info frame types */
-enum info_frame_type {
- INFO_FRAME_GAMUT = 0x0A,
- INFO_FRAME_VENDOR_INFO = 0x81,
- INFO_FRAME_AVI = 0x82
-};
-
-/* Info frame versions */
-enum info_frame_version {
- INFO_FRAME_VERSION_1 = 1,
- INFO_FRAME_VERSION_2 = 2,
- INFO_FRAME_VERSION_3 = 3
-};
-
-/* Info frame size */
-enum info_frame_size {
- INFO_FRAME_SIZE_AVI = 13,
- INFO_FRAME_SIZE_VENDOR = 25,
- INFO_FRAME_SIZE_AUDIO = 10
-};
-
struct hdmi_info_frame_header {
uint8_t info_frame_type;
uint8_t version;
--
2.9.3
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amd/display: start using linux hdmi header
[not found] ` <MWHPR12MB14060D985C3E414BE2E6358E98670-Gy0DoCVfaSXS1+HfpYZxvgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2017-01-10 18:41 ` Harry Wentland
0 siblings, 0 replies; 4+ messages in thread
From: Harry Wentland @ 2017-01-10 18:41 UTC (permalink / raw)
To: Cheng, Tony, Dave Airlie, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
On 2017-01-10 10:20 AM, Cheng, Tony wrote:
> Ack. Just give Harry a few days to do the require work to make sure everything still work with our other OS / environments.
>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
You should see this land in Alex's public tree in a few days.
Harry
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf Of Dave Airlie
> Sent: Monday, January 9, 2017 6:34 PM
> To: amd-gfx@lists.freedesktop.org
> Subject: [PATCH] drm/amd/display: start using linux hdmi header
>
> From: Dave Airlie <airlied@redhat.com>
>
> DAL has defines for things, and it doesn't even use them itself.
>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
> drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 18 ++++++++----------
> .../gpu/drm/amd/display/include/set_mode_types.h | 22 +---------------------
> 2 files changed, 9 insertions(+), 31 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> index 2b08f5a..0f8bb6e 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> @@ -1333,13 +1333,12 @@ static void set_avi_info_frame(
>
> /* Initialize header */
> info_frame.avi_info_packet.info_packet_hdmi.bits.header.
> - info_frame_type = INFO_FRAME_AVI;
> + info_frame_type = HDMI_INFOFRAME_TYPE_AVI;
> /* InfoFrameVersion_3 is defined by CEA861F (Section 6.4), but shall
> * not be used in HDMI 2.0 (Section 10.1) */
> - info_frame.avi_info_packet.info_packet_hdmi.bits.header.version =
> - INFO_FRAME_VERSION_2;
> + info_frame.avi_info_packet.info_packet_hdmi.bits.header.version = 2;
> info_frame.avi_info_packet.info_packet_hdmi.bits.header.length =
> - INFO_FRAME_SIZE_AVI;
> + HDMI_AVI_INFOFRAME_SIZE;
>
> /*
> * IDO-defined (Y2,Y1,Y0 = 1,1,1) shall not be used by devices built @@ -1472,10 +1471,9 @@ static void set_avi_info_frame(
> check_sum =
> &info_frame.
> avi_info_packet.info_packet_hdmi.packet_raw_data.sb[0];
> - *check_sum = INFO_FRAME_AVI + INFO_FRAME_SIZE_AVI
> - + INFO_FRAME_VERSION_2;
> + *check_sum = HDMI_INFOFRAME_TYPE_AVI + HDMI_AVI_INFOFRAME_SIZE + 2;
>
> - for (byte_index = 1; byte_index <= INFO_FRAME_SIZE_AVI; byte_index++)
> + for (byte_index = 1; byte_index <= HDMI_AVI_INFOFRAME_SIZE;
> +byte_index++)
> *check_sum += info_frame.avi_info_packet.info_packet_hdmi.
> packet_raw_data.sb[byte_index];
>
> @@ -1586,7 +1584,7 @@ static void set_vendor_info_packet(struct core_stream *stream,
> info_packet->sb[5] = stream->public.timing.hdmi_vic;
>
> /* Header */
> - info_packet->hb0 = 0x81; /* VSIF packet type. */
> + info_packet->hb0 = HDMI_INFOFRAME_TYPE_VENDOR; /* VSIF packet type. */
> info_packet->hb1 = 0x01; /* Version */
>
> /* 4 lower bits = Length, 4 higher bits = 0 (reserved) */ @@ -1627,7 +1625,7 @@ static void set_spd_info_packet(struct core_stream *stream,
> /* HB0 = Packet Type = 0x83 (Source Product
> * Descriptor InfoFrame)
> */
> - info_packet->hb0 = 0x83;
> + info_packet->hb0 = HDMI_INFOFRAME_TYPE_SPD;
>
> /* HB1 = Version = 0x01 */
> info_packet->hb1 = 0x01;
> @@ -1649,7 +1647,7 @@ static void set_spd_info_packet(struct core_stream *stream,
> /* HB1 = Packet Type = 0x83 (Source Product
> * Descriptor InfoFrame)
> */
> - info_packet->hb1 = 0x83;
> + info_packet->hb1 = HDMI_INFOFRAME_TYPE_SPD;
>
> /* HB2 = [Bits 7:0 = Least significant eight bits -
> * For INFOFRAME, the value must be 1Bh]
> diff --git a/drivers/gpu/drm/amd/display/include/set_mode_types.h b/drivers/gpu/drm/amd/display/include/set_mode_types.h
> index d18210f..fee2b6f 100644
> --- a/drivers/gpu/drm/amd/display/include/set_mode_types.h
> +++ b/drivers/gpu/drm/amd/display/include/set_mode_types.h
> @@ -27,6 +27,7 @@
> #define __DAL_SET_MODE_TYPES_H__
>
> #include "dc_types.h"
> +#include <linux/hdmi.h>
>
> /* Info frame packet status */
> enum info_frame_flag {
> @@ -36,27 +37,6 @@ enum info_frame_flag {
> INFO_PACKET_PACKET_UPDATE_SCAN_TYPE = 8 };
>
> -/* Info frame types */
> -enum info_frame_type {
> - INFO_FRAME_GAMUT = 0x0A,
> - INFO_FRAME_VENDOR_INFO = 0x81,
> - INFO_FRAME_AVI = 0x82
> -};
> -
> -/* Info frame versions */
> -enum info_frame_version {
> - INFO_FRAME_VERSION_1 = 1,
> - INFO_FRAME_VERSION_2 = 2,
> - INFO_FRAME_VERSION_3 = 3
> -};
> -
> -/* Info frame size */
> -enum info_frame_size {
> - INFO_FRAME_SIZE_AVI = 13,
> - INFO_FRAME_SIZE_VENDOR = 25,
> - INFO_FRAME_SIZE_AUDIO = 10
> -};
> -
> struct hdmi_info_frame_header {
> uint8_t info_frame_type;
> uint8_t version;
> --
> 2.9.3
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-10 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-09 23:33 [PATCH] drm/amd/display: start using linux hdmi header Dave Airlie
[not found] ` <20170109233332.9102-1-airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-10 1:35 ` Edward O'Callaghan
2017-01-10 15:20 ` Cheng, Tony
[not found] ` <MWHPR12MB14060D985C3E414BE2E6358E98670-Gy0DoCVfaSXS1+HfpYZxvgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-10 18:41 ` Harry Wentland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.