All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jyri Sarha <jsarha@ti.com>
To: <linux-kernel@vger.kernel.org>, <mturquette@linaro.org>,
	<dri-devel@lists.freedesktop.org>, <airlied@linux.ie>,
	<linux-omap@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<bcousson@baylibre.com>
Cc: <tony@atomide.com>, <broonie@kernel.org>,
	<liam.r.girdwood@linux.intel.com>, <peter.ujfalusi@ti.com>,
	<detheridge@ti.com>, <zonque@gmail.com>, <t-kristo@ti.com>,
	Jyri Sarha <jsarha@ti.com>
Subject: [PATCH 3/9] drm/tilcdc: Add I2S HDMI audio config for tda998x
Date: Wed, 6 Aug 2014 16:47:18 +0300	[thread overview]
Message-ID: <6809e37af0cd57f89e5f9103ae616d51f3b06e12.1407332062.git.jsarha@ti.com> (raw)
In-Reply-To: <cover.1407332062.git.jsarha@ti.com>

The configuration is needed for HDMI audio. The "swap" and "mirr"
parameters have to be correctly set in the configuration in order to
have proper colors in the HDMI picture.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 drivers/gpu/drm/tilcdc/tilcdc_slave.c |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave.c b/drivers/gpu/drm/tilcdc/tilcdc_slave.c
index 595068b..e43240a 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_slave.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_slave.c
@@ -19,6 +19,7 @@
 #include <linux/pinctrl/pinmux.h>
 #include <linux/pinctrl/consumer.h>
 #include <drm/drm_encoder_slave.h>
+#include <drm/i2c/tda998x.h>
 
 #include "tilcdc_drv.h"
 
@@ -111,8 +112,29 @@ static const struct drm_encoder_helper_funcs slave_encoder_helper_funcs = {
 		.restore        = drm_i2c_encoder_restore,
 };
 
+static struct tda998x_encoder_params tda998x_pdata = {
+	.swap_b = 0x3,
+	.mirr_b = 0x0,
+	.swap_a = 0x2,
+	.mirr_a = 0x0,
+	.swap_d = 0x1,
+	.mirr_d = 0x0,
+	.swap_c = 0x0,
+	.mirr_c = 0x0,
+	.swap_f = 0x5,
+	.mirr_f = 0x0,
+	.swap_e = 0x4,
+	.mirr_e = 0x0,
+	.audio_cfg = 0x3,	/* I2S mode */
+	.audio_clk_cfg = 1,	/* select clock pin */
+	.audio_frame[1] = 1,	/* channels - 1 */
+	.audio_format = AFMT_I2S,
+	.audio_sample_rate = 48000,
+};
+
 static const struct i2c_board_info info = {
-		I2C_BOARD_INFO("tda998x", 0x70)
+		I2C_BOARD_INFO("tda998x", 0x70),
+		.platform_data = &tda998x_pdata,
 };
 
 static struct drm_encoder *slave_encoder_create(struct drm_device *dev,
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: Jyri Sarha <jsarha@ti.com>
To: linux-kernel@vger.kernel.org, mturquette@linaro.org,
	dri-devel@lists.freedesktop.org, airlied@linux.ie,
	linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
	bcousson@baylibre.com
Cc: tony@atomide.com, broonie@kernel.org,
	liam.r.girdwood@linux.intel.com, peter.ujfalusi@ti.com,
	detheridge@ti.com, zonque@gmail.com, t-kristo@ti.com,
	Jyri Sarha <jsarha@ti.com>
Subject: [PATCH 3/9] drm/tilcdc: Add I2S HDMI audio config for tda998x
Date: Wed, 6 Aug 2014 16:47:18 +0300	[thread overview]
Message-ID: <6809e37af0cd57f89e5f9103ae616d51f3b06e12.1407332062.git.jsarha@ti.com> (raw)
In-Reply-To: <cover.1407332062.git.jsarha@ti.com>

The configuration is needed for HDMI audio. The "swap" and "mirr"
parameters have to be correctly set in the configuration in order to
have proper colors in the HDMI picture.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 drivers/gpu/drm/tilcdc/tilcdc_slave.c |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave.c b/drivers/gpu/drm/tilcdc/tilcdc_slave.c
index 595068b..e43240a 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_slave.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_slave.c
@@ -19,6 +19,7 @@
 #include <linux/pinctrl/pinmux.h>
 #include <linux/pinctrl/consumer.h>
 #include <drm/drm_encoder_slave.h>
+#include <drm/i2c/tda998x.h>
 
 #include "tilcdc_drv.h"
 
@@ -111,8 +112,29 @@ static const struct drm_encoder_helper_funcs slave_encoder_helper_funcs = {
 		.restore        = drm_i2c_encoder_restore,
 };
 
+static struct tda998x_encoder_params tda998x_pdata = {
+	.swap_b = 0x3,
+	.mirr_b = 0x0,
+	.swap_a = 0x2,
+	.mirr_a = 0x0,
+	.swap_d = 0x1,
+	.mirr_d = 0x0,
+	.swap_c = 0x0,
+	.mirr_c = 0x0,
+	.swap_f = 0x5,
+	.mirr_f = 0x0,
+	.swap_e = 0x4,
+	.mirr_e = 0x0,
+	.audio_cfg = 0x3,	/* I2S mode */
+	.audio_clk_cfg = 1,	/* select clock pin */
+	.audio_frame[1] = 1,	/* channels - 1 */
+	.audio_format = AFMT_I2S,
+	.audio_sample_rate = 48000,
+};
+
 static const struct i2c_board_info info = {
-		I2C_BOARD_INFO("tda998x", 0x70)
+		I2C_BOARD_INFO("tda998x", 0x70),
+		.platform_data = &tda998x_pdata,
 };
 
 static struct drm_encoder *slave_encoder_create(struct drm_device *dev,
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: Jyri Sarha <jsarha@ti.com>
To: alsa-devel@alsa-project.org
Subject: [alsa-devel] [PATCH 3/9] drm/tilcdc: Add I2S HDMI audio config for tda998x
Date: Wed, 6 Aug 2014 16:52:40 +0300	[thread overview]
Message-ID: <6809e37af0cd57f89e5f9103ae616d51f3b06e12.1407332062.git.jsarha@ti.com> (raw)
In-Reply-To: <cover.1407332062.git.jsarha@ti.com>

The configuration is needed for HDMI audio. The "swap" and "mirr"
parameters have to be correctly set in the configuration in order to
have proper colors in the HDMI picture.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 drivers/gpu/drm/tilcdc/tilcdc_slave.c |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave.c b/drivers/gpu/drm/tilcdc/tilcdc_slave.c
index 595068b..e43240a 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_slave.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_slave.c
@@ -19,6 +19,7 @@
 #include <linux/pinctrl/pinmux.h>
 #include <linux/pinctrl/consumer.h>
 #include <drm/drm_encoder_slave.h>
+#include <drm/i2c/tda998x.h>
 
 #include "tilcdc_drv.h"
 
@@ -111,8 +112,29 @@ static const struct drm_encoder_helper_funcs slave_encoder_helper_funcs = {
 		.restore        = drm_i2c_encoder_restore,
 };
 
+static struct tda998x_encoder_params tda998x_pdata = {
+	.swap_b = 0x3,
+	.mirr_b = 0x0,
+	.swap_a = 0x2,
+	.mirr_a = 0x0,
+	.swap_d = 0x1,
+	.mirr_d = 0x0,
+	.swap_c = 0x0,
+	.mirr_c = 0x0,
+	.swap_f = 0x5,
+	.mirr_f = 0x0,
+	.swap_e = 0x4,
+	.mirr_e = 0x0,
+	.audio_cfg = 0x3,	/* I2S mode */
+	.audio_clk_cfg = 1,	/* select clock pin */
+	.audio_frame[1] = 1,	/* channels - 1 */
+	.audio_format = AFMT_I2S,
+	.audio_sample_rate = 48000,
+};
+
 static const struct i2c_board_info info = {
-		I2C_BOARD_INFO("tda998x", 0x70)
+		I2C_BOARD_INFO("tda998x", 0x70),
+		.platform_data = &tda998x_pdata,
 };
 
 static struct drm_encoder *slave_encoder_create(struct drm_device *dev,
-- 
1.7.9.5

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2014-08-06 13:47 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 13:47 [PATCH 0/9] Beaglebone-Black HDMI audio Jyri Sarha
2014-08-06 13:52 ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47 ` Jyri Sarha
2014-08-06 13:47 ` [PATCH 1/9] ASoC: mcasp: Fix implicit BLCK divider setting Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-12 22:04   ` Mark Brown
2014-08-06 13:47 ` [PATCH 2/9] clk: add gpio controlled clock Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-06 13:47 ` Jyri Sarha [this message]
2014-08-06 13:52   ` [alsa-devel] [PATCH 3/9] drm/tilcdc: Add I2S HDMI audio config for tda998x Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-06 13:47 ` [PATCH 4/9] ASoC: davinci-evm: HDMI audio support for TDA998x trough McASP I2S bus Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-06 13:47 ` [PATCH 5/9] ASoC: davinci: HDMI audio build for AM33XX and TDA998x Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-06 13:47 ` [PATCH 6/9] ARM: dts: am33xx: Add external clock provider Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-08 17:26   ` Ezequiel Garcia
2014-08-08 17:26     ` Ezequiel Garcia
2014-08-06 13:47 ` [PATCH 7/9] ARM: dts: am335x-boneblack: Add HDMI audio support Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-06 13:47 ` [PATCH 8/9] ARM: OMAP2+: omap2plus_defconfig: TDA998X HDMI trough tilcdc,slave Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] [PATCH 8/9] ARM: OMAP2+: omap2plus_defconfig: TDA998X HDMI trough tilcdc, slave Jyri Sarha
2014-08-06 13:47   ` [PATCH 8/9] ARM: OMAP2+: omap2plus_defconfig: TDA998X HDMI trough tilcdc,slave Jyri Sarha
2014-08-06 13:47 ` [PATCH 9/9] ARM: OMAP2+: omap2plus_defconfig: Enable BeagleBone Black HDMI audio support Jyri Sarha
2014-08-06 13:52   ` [alsa-devel] " Jyri Sarha
2014-08-06 13:47   ` Jyri Sarha
2014-08-06 13:52 ` [PATCH 1/9] ASoC: mcasp: Fix implicit BLCK divider setting Jyri Sarha
2014-08-06 13:52 ` [PATCH 2/9] clk: add gpio controlled clock Jyri Sarha
2014-08-06 13:52 ` [PATCH 3/9] drm/tilcdc: Add I2S HDMI audio config for tda998x Jyri Sarha
2014-08-06 13:52 ` [PATCH 4/9] ASoC: davinci-evm: HDMI audio support for TDA998x trough McASP I2S bus Jyri Sarha
2014-08-06 13:52 ` [PATCH 5/9] ASoC: davinci: HDMI audio build for AM33XX and TDA998x Jyri Sarha
2014-08-06 13:52 ` [PATCH 6/9] ARM: dts: am33xx: Add external clock provider Jyri Sarha
2014-08-06 13:52 ` [PATCH 7/9] ARM: dts: am335x-boneblack: Add HDMI audio support Jyri Sarha
2014-08-06 13:52 ` [PATCH 8/9] ARM: OMAP2+: omap2plus_defconfig: TDA998X HDMI trough tilcdc, slave Jyri Sarha
2014-08-06 13:52 ` [PATCH 9/9] ARM: OMAP2+: omap2plus_defconfig: Enable BeagleBone Black HDMI audio support Jyri Sarha
2014-08-08 18:16 ` [PATCH 0/9] Beaglebone-Black HDMI audio Ezequiel Garcia
2014-08-08 18:16   ` Ezequiel Garcia

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=6809e37af0cd57f89e5f9103ae616d51f3b06e12.1407332062.git.jsarha@ti.com \
    --to=jsarha@ti.com \
    --cc=airlied@linux.ie \
    --cc=bcousson@baylibre.com \
    --cc=broonie@kernel.org \
    --cc=detheridge@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=peter.ujfalusi@ti.com \
    --cc=t-kristo@ti.com \
    --cc=tony@atomide.com \
    --cc=zonque@gmail.com \
    /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.