All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Damien Lespiau <damien.lespiau@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 8/8] drm/i915: Remove the now obsolete infoframe definitions
Date: Mon, 5 Aug 2013 21:27:35 +0300	[thread overview]
Message-ID: <20130805182735.GC5004@intel.com> (raw)
In-Reply-To: <1375464180-7259-9-git-send-email-damien.lespiau@intel.com>

On Fri, Aug 02, 2013 at 06:23:00PM +0100, Damien Lespiau wrote:
> All the HDMI infoframe code has been ported to use video/hdmi.c, so it's
> time to say bye bye to this code.
> 
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>

I'm no compiler, but fwiw:

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  drivers/gpu/drm/i915/intel_drv.h  | 61 ---------------------------------------
>  drivers/gpu/drm/i915/intel_hdmi.c | 15 ----------
>  2 files changed, 76 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
> index f8c21ac..98ff8b7 100644
> --- a/drivers/gpu/drm/i915/intel_drv.h
> +++ b/drivers/gpu/drm/i915/intel_drv.h
> @@ -394,66 +394,6 @@ struct cxsr_latency {
>  #define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base)
>  #define to_intel_plane(x) container_of(x, struct intel_plane, base)
>  
> -#define DIP_HEADER_SIZE	5
> -
> -#define DIP_TYPE_AVI    0x82
> -#define DIP_VERSION_AVI 0x2
> -#define DIP_LEN_AVI     13
> -#define DIP_AVI_PR_1    0
> -#define DIP_AVI_PR_2    1
> -#define DIP_AVI_RGB_QUANT_RANGE_DEFAULT	(0 << 2)
> -#define DIP_AVI_RGB_QUANT_RANGE_LIMITED	(1 << 2)
> -#define DIP_AVI_RGB_QUANT_RANGE_FULL	(2 << 2)
> -
> -#define DIP_TYPE_SPD	0x83
> -#define DIP_VERSION_SPD	0x1
> -#define DIP_LEN_SPD	25
> -#define DIP_SPD_UNKNOWN	0
> -#define DIP_SPD_DSTB	0x1
> -#define DIP_SPD_DVDP	0x2
> -#define DIP_SPD_DVHS	0x3
> -#define DIP_SPD_HDDVR	0x4
> -#define DIP_SPD_DVC	0x5
> -#define DIP_SPD_DSC	0x6
> -#define DIP_SPD_VCD	0x7
> -#define DIP_SPD_GAME	0x8
> -#define DIP_SPD_PC	0x9
> -#define DIP_SPD_BD	0xa
> -#define DIP_SPD_SCD	0xb
> -
> -struct dip_infoframe {
> -	uint8_t type;		/* HB0 */
> -	uint8_t ver;		/* HB1 */
> -	uint8_t len;		/* HB2 - body len, not including checksum */
> -	uint8_t ecc;		/* Header ECC */
> -	uint8_t checksum;	/* PB0 */
> -	union {
> -		struct {
> -			/* PB1 - Y 6:5, A 4:4, B 3:2, S 1:0 */
> -			uint8_t Y_A_B_S;
> -			/* PB2 - C 7:6, M 5:4, R 3:0 */
> -			uint8_t C_M_R;
> -			/* PB3 - ITC 7:7, EC 6:4, Q 3:2, SC 1:0 */
> -			uint8_t ITC_EC_Q_SC;
> -			/* PB4 - VIC 6:0 */
> -			uint8_t VIC;
> -			/* PB5 - YQ 7:6, CN 5:4, PR 3:0 */
> -			uint8_t YQ_CN_PR;
> -			/* PB6 to PB13 */
> -			uint16_t top_bar_end;
> -			uint16_t bottom_bar_start;
> -			uint16_t left_bar_end;
> -			uint16_t right_bar_start;
> -		} __attribute__ ((packed)) avi;
> -		struct {
> -			uint8_t vn[8];
> -			uint8_t pd[16];
> -			uint8_t sdi;
> -		} __attribute__ ((packed)) spd;
> -		uint8_t payload[27];
> -	} __attribute__ ((packed)) body;
> -} __attribute__((packed));
> -
>  struct intel_hdmi {
>  	u32 hdmi_reg;
>  	int ddc_bus;
> @@ -567,7 +507,6 @@ extern void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port,
>  extern struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder);
>  extern bool intel_hdmi_compute_config(struct intel_encoder *encoder,
>  				      struct intel_crtc_config *pipe_config);
> -extern void intel_dip_infoframe_csum(struct dip_infoframe *avi_if);
>  extern bool intel_sdvo_init(struct drm_device *dev, uint32_t sdvo_reg,
>  			    bool is_sdvob);
>  extern void intel_dvo_init(struct drm_device *dev);
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 8424882..85dff3f 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -67,21 +67,6 @@ static struct intel_hdmi *intel_attached_hdmi(struct drm_connector *connector)
>  	return enc_to_intel_hdmi(&intel_attached_encoder(connector)->base);
>  }
>  
> -void intel_dip_infoframe_csum(struct dip_infoframe *frame)
> -{
> -	uint8_t *data = (uint8_t *)frame;
> -	uint8_t sum = 0;
> -	unsigned i;
> -
> -	frame->checksum = 0;
> -	frame->ecc = 0;
> -
> -	for (i = 0; i < frame->len + DIP_HEADER_SIZE; i++)
> -		sum += data[i];
> -
> -	frame->checksum = 0x100 - sum;
> -}
> -
>  static u32 g4x_infoframe_index(enum hdmi_infoframe_type type)
>  {
>  	switch (type) {
> -- 
> 1.8.3.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel OTC

      reply	other threads:[~2013-08-05 18:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02 17:22 Port the i915 HDMI infoframe code to the common infrastructure Damien Lespiau
2013-08-02 17:22 ` [PATCH 1/8] video/hdmi: Replace the payload length by their defines Damien Lespiau
2013-08-05 17:11   ` Ville Syrjälä
2013-08-02 17:22 ` [PATCH 2/8] video/hdmi: Introduce a generic hdmi_infoframe union Damien Lespiau
2013-08-05 17:30   ` Ville Syrjälä
2013-08-02 17:22 ` [PATCH 3/8] video/hdmi: Add a macro to return the size of a full infoframe Damien Lespiau
2013-08-05 17:31   ` Ville Syrjälä
2013-08-02 17:22 ` [PATCH 4/8] drm/i915/hdmi: Change the write_infoframe vfunc to take a buffer and a type Damien Lespiau
2013-08-05 17:40   ` Ville Syrjälä
2013-08-02 17:22 ` [PATCH 5/8] drm/i915/hdmi: Port the infoframe code to the common hdmi helpers Damien Lespiau
2013-08-05 13:12   ` Ville Syrjälä
2013-08-06 19:17     ` Damien Lespiau
2013-08-02 17:22 ` [PATCH 6/8] drm/i915/hmdi: Rename set_infoframe() to write_infoframe() Damien Lespiau
2013-08-05 17:50   ` Ville Syrjälä
2013-08-06 17:49     ` Damien Lespiau
2013-08-06 18:01       ` Daniel Vetter
2013-08-06 18:18         ` Damien Lespiau
2013-08-02 17:22 ` [PATCH 7/8] drm/i915/sdvo: Port the infoframe code to the shared infrastructure Damien Lespiau
2013-08-05 18:08   ` Ville Syrjälä
2013-08-02 17:23 ` [PATCH 8/8] drm/i915: Remove the now obsolete infoframe definitions Damien Lespiau
2013-08-05 18:27   ` Ville Syrjälä [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130805182735.GC5004@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=damien.lespiau@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.