All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+kernel@armlinux.org.uk>
To: dri-devel@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>
Subject: [PATCH 4/5] drm/i2c: tda998x: add vendor specific infoframe support
Date: Fri, 25 Jan 2019 09:43:24 +0000	[thread overview]
Message-ID: <E1gmy1E-0007Fu-S7@rmk-PC.armlinux.org.uk> (raw)
In-Reply-To: <20190125094038.ohrj6fhm7c7bdtee@e5254000004ec.dyn.armlinux.org.uk>

Add support for the vendor specific infoframe.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
 drivers/gpu/drm/i2c/tda998x_drv.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index dad7396ebe2b..b0ed2ef49c62 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -874,6 +874,19 @@ tda998x_write_avi(struct tda998x_priv *priv, const struct drm_display_mode *mode
 	tda998x_write_if(priv, DIP_IF_FLAGS_IF2, REG_IF2_HB0, &frame);
 }
 
+static void tda998x_write_vsi(struct tda998x_priv *priv,
+			      struct drm_display_mode *mode)
+{
+	union hdmi_infoframe frame;
+
+	if (drm_hdmi_vendor_infoframe_from_display_mode(&frame.vendor.hdmi,
+							&priv->connector,
+							mode))
+		reg_clear(priv, REG_DIP_IF_FLAGS, DIP_IF_FLAGS_IF1);
+	else
+		tda998x_write_if(priv, DIP_IF_FLAGS_IF1, REG_IF1_HB0, &frame);
+}
+
 /* Audio support */
 
 static void tda998x_audio_mute(struct tda998x_priv *priv, bool on)
@@ -1572,6 +1585,7 @@ static void tda998x_bridge_mode_set(struct drm_bridge *bridge,
 
 		tda998x_write_avi(priv, adjusted_mode);
 		tda998x_write_spd(priv);
+		tda998x_write_vsi(priv, adjusted_mode);
 
 		if (priv->audio_params.format != AFMT_UNUSED &&
 		    priv->sink_has_audio)
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2019-01-25  9:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-25  9:40 [PATCH 0/5] tda998x updates Russell King - ARM Linux admin
2019-01-25  9:43 ` [PATCH 1/5] drm/i2c: tda998x: add support for pixel repeated modes Russell King
2019-01-25  9:43 ` [PATCH 2/5] drm/i2c: tda998x: add bridge timing information Russell King
2019-01-25  9:43 ` [PATCH 3/5] drm/i2c: tda998x: add support for writing SPD Russell King
2019-01-30 15:41   ` Brian Starkey
2019-01-30 17:23     ` Russell King - ARM Linux admin
2019-01-30 17:52       ` Brian Starkey
2019-01-25  9:43 ` Russell King [this message]
2019-01-30 15:57   ` [PATCH 4/5] drm/i2c: tda998x: add vendor specific infoframe support Brian Starkey
2019-01-25  9:43 ` [PATCH 5/5] drm/i2c: tda998x: improve correctness of quantisation range Russell King
2019-01-30 15:53   ` Brian Starkey
2019-01-30 18:18     ` Russell King - ARM Linux admin
2019-01-31 10:53       ` Brian Starkey
2019-01-25 11:45 ` [PATCH 0/5] tda998x updates Brian Starkey
2019-01-25 11:56   ` Russell King - ARM Linux admin
2019-01-25 12:01     ` Brian Starkey
2019-02-27 10:53 ` Russell King - ARM Linux admin

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=E1gmy1E-0007Fu-S7@rmk-PC.armlinux.org.uk \
    --to=rmk+kernel@armlinux.org.uk \
    --cc=airlied@linux.ie \
    --cc=dri-devel@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.