* [PATCH 0/1] Enable sound on mx31_3ds
@ 2012-05-15 16:42 ` Philippe Rétornaz
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Rétornaz @ 2012-05-15 16:42 UTC (permalink / raw)
To: linux-arm-kernel
Cc: alsa-devel, torbenh, s.hauer, broonie, philippe.retornaz, festevam
Hi
Here is the sound support for mx31_3ds.
It successfully outputs sound on the loudspeaker.
It needs the patchset: "MC13783 sound support".
Philippe Rétornaz (1):
mx31_3ds: Add sound support
arch/arm/mach-imx/Kconfig | 1 +
arch/arm/mach-imx/mach-mx31_3ds.c | 22 +++++++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/1] Enable sound on mx31_3ds
@ 2012-05-15 16:42 ` Philippe Rétornaz
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Rétornaz @ 2012-05-15 16:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi
Here is the sound support for mx31_3ds.
It successfully outputs sound on the loudspeaker.
It needs the patchset: "MC13783 sound support".
Philippe R?tornaz (1):
mx31_3ds: Add sound support
arch/arm/mach-imx/Kconfig | 1 +
arch/arm/mach-imx/mach-mx31_3ds.c | 22 +++++++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] mx31_3ds: Add sound support
2012-05-15 16:42 ` Philippe Rétornaz
@ 2012-05-15 16:42 ` Philippe Rétornaz
-1 siblings, 0 replies; 6+ messages in thread
From: Philippe Rétornaz @ 2012-05-15 16:42 UTC (permalink / raw)
To: linux-arm-kernel
Cc: alsa-devel, torbenh, s.hauer, broonie, philippe.retornaz, festevam
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
---
arch/arm/mach-imx/Kconfig | 1 +
arch/arm/mach-imx/mach-mx31_3ds.c | 22 +++++++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 0d75480..472d47b 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -151,6 +151,7 @@ config MACH_MX25_3DS
select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMXDI_RTC
select IMX_HAVE_PLATFORM_IMX_I2C
+ select IMX_HAVE_PLATFORM_IMX_SSI
select IMX_HAVE_PLATFORM_IMX_FB
select IMX_HAVE_PLATFORM_IMX_KEYPAD
select IMX_HAVE_PLATFORM_IMX_UART
diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c
index 4d1aab1..4eafdf2 100644
--- a/arch/arm/mach-imx/mach-mx31_3ds.c
+++ b/arch/arm/mach-imx/mach-mx31_3ds.c
@@ -156,6 +156,11 @@ static int mx31_3ds_pins[] = {
MX31_PIN_CSI_VSYNC__CSI_VSYNC,
MX31_PIN_CSI_D5__GPIO3_5, /* CMOS PWDN */
IOMUX_MODE(MX31_PIN_RI_DTE1, IOMUX_CONFIG_GPIO), /* CMOS reset */
+ /* SSI */
+ MX31_PIN_STXD4__STXD4,
+ MX31_PIN_SRXD4__SRXD4,
+ MX31_PIN_SCK4__SCK4,
+ MX31_PIN_SFS4__SFS4,
};
/*
@@ -488,12 +493,23 @@ static struct mc13xxx_regulator_init_data mx31_3ds_regulators[] = {
};
/* MC13783 */
+static struct mc13xxx_codec_platform_data mx31_3ds_codec = {
+ .dac_ssi_port = MC13783_SSI1_PORT,
+ .adc_ssi_port = MC13783_SSI1_PORT,
+};
+
static struct mc13xxx_platform_data mc13783_pdata = {
.regulators = {
.regulators = mx31_3ds_regulators,
.num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
},
- .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC,
+ .codec = &mx31_3ds_codec,
+ .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC | MC13XXX_USE_CODEC,
+
+};
+
+static struct imx_ssi_platform_data mx31_3ds_ssi_pdata = {
+ .flags = IMX_SSI_DMA | IMX_SSI_NET,
};
/* SPI */
@@ -741,6 +757,10 @@ static void __init mx31_3ds_init(void)
}
mx31_3ds_init_camera();
+
+ imx31_add_imx_ssi(0, &mx31_3ds_ssi_pdata);
+
+ imx_add_platform_device("imx_mc13783", 0, NULL, 0, NULL, 0);
}
static void __init mx31_3ds_timer_init(void)
--
1.7.0.4
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 1/1] mx31_3ds: Add sound support
@ 2012-05-15 16:42 ` Philippe Rétornaz
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Rétornaz @ 2012-05-15 16:42 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Philippe R?tornaz <philippe.retornaz@epfl.ch>
---
arch/arm/mach-imx/Kconfig | 1 +
arch/arm/mach-imx/mach-mx31_3ds.c | 22 +++++++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 0d75480..472d47b 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -151,6 +151,7 @@ config MACH_MX25_3DS
select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMXDI_RTC
select IMX_HAVE_PLATFORM_IMX_I2C
+ select IMX_HAVE_PLATFORM_IMX_SSI
select IMX_HAVE_PLATFORM_IMX_FB
select IMX_HAVE_PLATFORM_IMX_KEYPAD
select IMX_HAVE_PLATFORM_IMX_UART
diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c
index 4d1aab1..4eafdf2 100644
--- a/arch/arm/mach-imx/mach-mx31_3ds.c
+++ b/arch/arm/mach-imx/mach-mx31_3ds.c
@@ -156,6 +156,11 @@ static int mx31_3ds_pins[] = {
MX31_PIN_CSI_VSYNC__CSI_VSYNC,
MX31_PIN_CSI_D5__GPIO3_5, /* CMOS PWDN */
IOMUX_MODE(MX31_PIN_RI_DTE1, IOMUX_CONFIG_GPIO), /* CMOS reset */
+ /* SSI */
+ MX31_PIN_STXD4__STXD4,
+ MX31_PIN_SRXD4__SRXD4,
+ MX31_PIN_SCK4__SCK4,
+ MX31_PIN_SFS4__SFS4,
};
/*
@@ -488,12 +493,23 @@ static struct mc13xxx_regulator_init_data mx31_3ds_regulators[] = {
};
/* MC13783 */
+static struct mc13xxx_codec_platform_data mx31_3ds_codec = {
+ .dac_ssi_port = MC13783_SSI1_PORT,
+ .adc_ssi_port = MC13783_SSI1_PORT,
+};
+
static struct mc13xxx_platform_data mc13783_pdata = {
.regulators = {
.regulators = mx31_3ds_regulators,
.num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
},
- .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC,
+ .codec = &mx31_3ds_codec,
+ .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC | MC13XXX_USE_CODEC,
+
+};
+
+static struct imx_ssi_platform_data mx31_3ds_ssi_pdata = {
+ .flags = IMX_SSI_DMA | IMX_SSI_NET,
};
/* SPI */
@@ -741,6 +757,10 @@ static void __init mx31_3ds_init(void)
}
mx31_3ds_init_camera();
+
+ imx31_add_imx_ssi(0, &mx31_3ds_ssi_pdata);
+
+ imx_add_platform_device("imx_mc13783", 0, NULL, 0, NULL, 0);
}
static void __init mx31_3ds_timer_init(void)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] mx31_3ds: Add sound support
2012-05-15 16:42 ` Philippe Rétornaz
@ 2012-05-15 19:34 ` Sascha Hauer
-1 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2012-05-15 19:34 UTC (permalink / raw)
To: Philippe Rétornaz
Cc: torbenh, alsa-devel, broonie, festevam, linux-arm-kernel
On Tue, May 15, 2012 at 06:42:26PM +0200, Philippe Rétornaz wrote:
>
> Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
> ---
> arch/arm/mach-imx/Kconfig | 1 +
> arch/arm/mach-imx/mach-mx31_3ds.c | 22 +++++++++++++++++++++-
> 2 files changed, 22 insertions(+), 1 deletions(-)
>
We have no changes queued so far for this board, so you can safely push
it via the ASoC tree along with the patches adding sound for the mc13783
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 0d75480..472d47b 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -151,6 +151,7 @@ config MACH_MX25_3DS
> select IMX_HAVE_PLATFORM_IMX2_WDT
> select IMX_HAVE_PLATFORM_IMXDI_RTC
> select IMX_HAVE_PLATFORM_IMX_I2C
> + select IMX_HAVE_PLATFORM_IMX_SSI
> select IMX_HAVE_PLATFORM_IMX_FB
> select IMX_HAVE_PLATFORM_IMX_KEYPAD
> select IMX_HAVE_PLATFORM_IMX_UART
> diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c
> index 4d1aab1..4eafdf2 100644
> --- a/arch/arm/mach-imx/mach-mx31_3ds.c
> +++ b/arch/arm/mach-imx/mach-mx31_3ds.c
> @@ -156,6 +156,11 @@ static int mx31_3ds_pins[] = {
> MX31_PIN_CSI_VSYNC__CSI_VSYNC,
> MX31_PIN_CSI_D5__GPIO3_5, /* CMOS PWDN */
> IOMUX_MODE(MX31_PIN_RI_DTE1, IOMUX_CONFIG_GPIO), /* CMOS reset */
> + /* SSI */
> + MX31_PIN_STXD4__STXD4,
> + MX31_PIN_SRXD4__SRXD4,
> + MX31_PIN_SCK4__SCK4,
> + MX31_PIN_SFS4__SFS4,
> };
>
> /*
> @@ -488,12 +493,23 @@ static struct mc13xxx_regulator_init_data mx31_3ds_regulators[] = {
> };
>
> /* MC13783 */
> +static struct mc13xxx_codec_platform_data mx31_3ds_codec = {
> + .dac_ssi_port = MC13783_SSI1_PORT,
> + .adc_ssi_port = MC13783_SSI1_PORT,
> +};
> +
> static struct mc13xxx_platform_data mc13783_pdata = {
> .regulators = {
> .regulators = mx31_3ds_regulators,
> .num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
> },
> - .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC,
> + .codec = &mx31_3ds_codec,
> + .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC | MC13XXX_USE_CODEC,
> +
> +};
> +
> +static struct imx_ssi_platform_data mx31_3ds_ssi_pdata = {
> + .flags = IMX_SSI_DMA | IMX_SSI_NET,
> };
>
> /* SPI */
> @@ -741,6 +757,10 @@ static void __init mx31_3ds_init(void)
> }
>
> mx31_3ds_init_camera();
> +
> + imx31_add_imx_ssi(0, &mx31_3ds_ssi_pdata);
> +
> + imx_add_platform_device("imx_mc13783", 0, NULL, 0, NULL, 0);
> }
>
> static void __init mx31_3ds_timer_init(void)
> --
> 1.7.0.4
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] mx31_3ds: Add sound support
@ 2012-05-15 19:34 ` Sascha Hauer
0 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2012-05-15 19:34 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, May 15, 2012 at 06:42:26PM +0200, Philippe R?tornaz wrote:
>
> Signed-off-by: Philippe R?tornaz <philippe.retornaz@epfl.ch>
> ---
> arch/arm/mach-imx/Kconfig | 1 +
> arch/arm/mach-imx/mach-mx31_3ds.c | 22 +++++++++++++++++++++-
> 2 files changed, 22 insertions(+), 1 deletions(-)
>
We have no changes queued so far for this board, so you can safely push
it via the ASoC tree along with the patches adding sound for the mc13783
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 0d75480..472d47b 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -151,6 +151,7 @@ config MACH_MX25_3DS
> select IMX_HAVE_PLATFORM_IMX2_WDT
> select IMX_HAVE_PLATFORM_IMXDI_RTC
> select IMX_HAVE_PLATFORM_IMX_I2C
> + select IMX_HAVE_PLATFORM_IMX_SSI
> select IMX_HAVE_PLATFORM_IMX_FB
> select IMX_HAVE_PLATFORM_IMX_KEYPAD
> select IMX_HAVE_PLATFORM_IMX_UART
> diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c
> index 4d1aab1..4eafdf2 100644
> --- a/arch/arm/mach-imx/mach-mx31_3ds.c
> +++ b/arch/arm/mach-imx/mach-mx31_3ds.c
> @@ -156,6 +156,11 @@ static int mx31_3ds_pins[] = {
> MX31_PIN_CSI_VSYNC__CSI_VSYNC,
> MX31_PIN_CSI_D5__GPIO3_5, /* CMOS PWDN */
> IOMUX_MODE(MX31_PIN_RI_DTE1, IOMUX_CONFIG_GPIO), /* CMOS reset */
> + /* SSI */
> + MX31_PIN_STXD4__STXD4,
> + MX31_PIN_SRXD4__SRXD4,
> + MX31_PIN_SCK4__SCK4,
> + MX31_PIN_SFS4__SFS4,
> };
>
> /*
> @@ -488,12 +493,23 @@ static struct mc13xxx_regulator_init_data mx31_3ds_regulators[] = {
> };
>
> /* MC13783 */
> +static struct mc13xxx_codec_platform_data mx31_3ds_codec = {
> + .dac_ssi_port = MC13783_SSI1_PORT,
> + .adc_ssi_port = MC13783_SSI1_PORT,
> +};
> +
> static struct mc13xxx_platform_data mc13783_pdata = {
> .regulators = {
> .regulators = mx31_3ds_regulators,
> .num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
> },
> - .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC,
> + .codec = &mx31_3ds_codec,
> + .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC | MC13XXX_USE_CODEC,
> +
> +};
> +
> +static struct imx_ssi_platform_data mx31_3ds_ssi_pdata = {
> + .flags = IMX_SSI_DMA | IMX_SSI_NET,
> };
>
> /* SPI */
> @@ -741,6 +757,10 @@ static void __init mx31_3ds_init(void)
> }
>
> mx31_3ds_init_camera();
> +
> + imx31_add_imx_ssi(0, &mx31_3ds_ssi_pdata);
> +
> + imx_add_platform_device("imx_mc13783", 0, NULL, 0, NULL, 0);
> }
>
> static void __init mx31_3ds_timer_init(void)
> --
> 1.7.0.4
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-05-15 19:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15 16:42 [PATCH 0/1] Enable sound on mx31_3ds Philippe Rétornaz
2012-05-15 16:42 ` Philippe Rétornaz
2012-05-15 16:42 ` [PATCH 1/1] mx31_3ds: Add sound support Philippe Rétornaz
2012-05-15 16:42 ` Philippe Rétornaz
2012-05-15 19:34 ` Sascha Hauer
2012-05-15 19:34 ` Sascha Hauer
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.