public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv3 3/4] Add ASoC support for DevKit8000
@ 2010-02-10 19:23 Thomas Weber
  2010-02-11  9:55 ` Liam Girdwood
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Weber @ 2010-02-10 19:23 UTC (permalink / raw)
  To: alsa-devel
  Cc: linux-omap, Thomas Weber, felipe.balbi, tony, Tomi.Valkeinen,
	jhnikula, weber

This patch expands the omap3beagle sound soc for the
beagle board clone Devkit8000.

Change log
V2
	Expand omap3beagle sound soc for DevKit8000 support.
V3 
	Separate Kconfig for Devkit8000.

Signed-off-by: Thomas Weber <swirl@gmx.li>
---
 sound/soc/omap/Kconfig       |    8 ++++++++
 sound/soc/omap/Makefile      |    1 +
 sound/soc/omap/omap3beagle.c |    6 +++---
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig
index 61952aa..8520b75 100644
--- a/sound/soc/omap/Kconfig
+++ b/sound/soc/omap/Kconfig
@@ -101,6 +101,14 @@ config SND_OMAP_SOC_OMAP3_BEAGLE
 	help
 	  Say Y if you want to add support for SoC audio on the Beagleboard.
 
+config SND_OMAP_SOC_DEVKIT8000
+	tristate "SoC Audio support for DevKit8000"
+	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_DEVKIT8000
+	select SND_OMAP_SOC_MCBSP
+	select SND_SOC_TWL4030
+	help
+	  Say Y if you want to add support for SoC audio on the DevKit8000
+
 config SND_OMAP_SOC_ZOOM2
 	tristate "SoC Audio support for Zoom2"
 	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OMAP_ZOOM2
diff --git a/sound/soc/omap/Makefile b/sound/soc/omap/Makefile
index 19283e5..c8195c9 100644
--- a/sound/soc/omap/Makefile
+++ b/sound/soc/omap/Makefile
@@ -29,5 +29,6 @@ obj-$(CONFIG_SND_OMAP_SOC_AM3517EVM) += snd-soc-am3517evm.o
 obj-$(CONFIG_SND_OMAP_SOC_SDP3430) += snd-soc-sdp3430.o
 obj-$(CONFIG_SND_OMAP_SOC_OMAP3_PANDORA) += snd-soc-omap3pandora.o
 obj-$(CONFIG_SND_OMAP_SOC_OMAP3_BEAGLE) += snd-soc-omap3beagle.o
+obj-$(CONFIG_SND_OMAP_SOC_DEVKIT8000) += snd-soc-omap3beagle.o
 obj-$(CONFIG_SND_OMAP_SOC_ZOOM2) += snd-soc-zoom2.o
 obj-$(CONFIG_SND_OMAP_SOC_IGEP0020) += snd-soc-igep0020.o
diff --git a/sound/soc/omap/omap3beagle.c b/sound/soc/omap/omap3beagle.c
index d88ad5c..240e097 100644
--- a/sound/soc/omap/omap3beagle.c
+++ b/sound/soc/omap/omap3beagle.c
@@ -117,11 +117,11 @@ static int __init omap3beagle_soc_init(void)
 {
 	int ret;
 
-	if (!machine_is_omap3_beagle()) {
-		pr_debug("Not OMAP3 Beagle!\n");
+	if (!(machine_is_omap3_beagle() || machine_is_devkit8000())) {
+		pr_debug("Not OMAP3 Beagle or Devkit8000!\n");
 		return -ENODEV;
 	}
-	pr_info("OMAP3 Beagle SoC init\n");
+	pr_info("OMAP3 Beagle/Devkit8000 SoC init\n");
 
 	omap3beagle_snd_device = platform_device_alloc("soc-audio", -1);
 	if (!omap3beagle_snd_device) {
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-10 19:23 [PATCHv3 3/4] Add ASoC support for DevKit8000 Thomas Weber
@ 2010-02-11  9:55 ` Liam Girdwood
  2010-02-11 10:40   ` Jarkko Nikula
  0 siblings, 1 reply; 8+ messages in thread
From: Liam Girdwood @ 2010-02-11  9:55 UTC (permalink / raw)
  To: Thomas Weber
  Cc: alsa-devel, weber, Tomi.Valkeinen, tony, felipe.balbi, linux-omap

On Wed, 2010-02-10 at 20:23 +0100, Thomas Weber wrote:
> This patch expands the omap3beagle sound soc for the
> beagle board clone Devkit8000.
> 
> Change log
> V2
> 	Expand omap3beagle sound soc for DevKit8000 support.
> V3 
> 	Separate Kconfig for Devkit8000.
> 
> Signed-off-by: Thomas Weber <swirl@gmx.li>
> ---
>  sound/soc/omap/Kconfig       |    8 ++++++++
>  sound/soc/omap/Makefile      |    1 +
>  sound/soc/omap/omap3beagle.c |    6 +++---
>  3 files changed, 12 insertions(+), 3 deletions(-)
> 
> diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig
> index 61952aa..8520b75 100644
> --- a/sound/soc/omap/Kconfig
> +++ b/sound/soc/omap/Kconfig
> @@ -101,6 +101,14 @@ config SND_OMAP_SOC_OMAP3_BEAGLE
>  	help
>  	  Say Y if you want to add support for SoC audio on the Beagleboard.
>  
> +config SND_OMAP_SOC_DEVKIT8000
> +	tristate "SoC Audio support for DevKit8000"
> +	depends on TWL4030_CORE && SND_OMAP_SOC && MACH_DEVKIT8000
> +	select SND_OMAP_SOC_MCBSP
> +	select SND_SOC_TWL4030
> +	help
> +	  Say Y if you want to add support for SoC audio on the DevKit8000
> +

Since this shares the same mach driver as beagle you should share the
Kconfig option too (like the Overo).

Thanks

Liam

-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-11  9:55 ` Liam Girdwood
@ 2010-02-11 10:40   ` Jarkko Nikula
  2010-02-11 10:49     ` Liam Girdwood
  0 siblings, 1 reply; 8+ messages in thread
From: Jarkko Nikula @ 2010-02-11 10:40 UTC (permalink / raw)
  To: Liam Girdwood
  Cc: alsa-devel, weber, Thomas Weber, Tomi.Valkeinen, tony,
	felipe.balbi, linux-omap

On Thu, 11 Feb 2010 09:55:12 +0000
Liam Girdwood <lrg@slimlogic.co.uk> wrote:

> Since this shares the same mach driver as beagle you should share the
> Kconfig option too (like the Overo).
> 
Heh, I had just an opposite view :-)

http://mailman.alsa-project.org/pipermail/alsa-devel/2010-February/025124.html


-- 
Jarkko

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-11 10:40   ` Jarkko Nikula
@ 2010-02-11 10:49     ` Liam Girdwood
  2010-02-11 11:14       ` [alsa-devel] " Jarkko Nikula
  0 siblings, 1 reply; 8+ messages in thread
From: Liam Girdwood @ 2010-02-11 10:49 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: alsa-devel, weber, Thomas Weber, Tomi.Valkeinen, tony,
	felipe.balbi, linux-omap

On Thu, 2010-02-11 at 12:40 +0200, Jarkko Nikula wrote:
> On Thu, 11 Feb 2010 09:55:12 +0000
> Liam Girdwood <lrg@slimlogic.co.uk> wrote:
> 
> > Since this shares the same mach driver as beagle you should share the
> > Kconfig option too (like the Overo).
> > 
> Heh, I had just an opposite view :-)
> 
> http://mailman.alsa-project.org/pipermail/alsa-devel/2010-February/025124.html
> 
> 

Heh, didn't see that. ;)

I do agree this makes good sense for boards that are very similar and
have different audio options/config, but in this case the ASoC mach
drivers are identical (atm). Imo it just makes more sense to keep the
one Kconfig.

Liam

-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [alsa-devel] [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-11 10:49     ` Liam Girdwood
@ 2010-02-11 11:14       ` Jarkko Nikula
  2010-02-11 11:33         ` Mark Brown
  2010-02-11 15:02         ` Peter Ujfalusi
  0 siblings, 2 replies; 8+ messages in thread
From: Jarkko Nikula @ 2010-02-11 11:14 UTC (permalink / raw)
  To: Liam Girdwood
  Cc: alsa-devel, weber, Thomas Weber, Tomi.Valkeinen, tony,
	felipe.balbi, linux-omap

On Thu, 11 Feb 2010 10:49:48 +0000
Liam Girdwood <lrg@slimlogic.co.uk> wrote:

> I do agree this makes good sense for boards that are very similar and
> have different audio options/config, but in this case the ASoC mach
> drivers are identical (atm). Imo it just makes more sense to keep the
> one Kconfig.
> 
Yeah, after thinking twice, we don't have zillions of options for e.g.
Intel HDA either. If we ever figure out some common OMAP+TWL4030
driver, the defconfigs are anyway have to modify so it's better stay
with the original patch:

http://mailman.alsa-project.org/pipermail/alsa-devel/2010-February/025129.html

Sorry about line noise, Thomas :-)

-- 
Jarkko

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [alsa-devel] [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-11 11:14       ` [alsa-devel] " Jarkko Nikula
@ 2010-02-11 11:33         ` Mark Brown
  2010-02-11 15:02         ` Peter Ujfalusi
  1 sibling, 0 replies; 8+ messages in thread
From: Mark Brown @ 2010-02-11 11:33 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: Liam Girdwood, alsa-devel, weber, Thomas Weber, Tomi.Valkeinen,
	tony, felipe.balbi, linux-omap

On Thu, Feb 11, 2010 at 01:14:18PM +0200, Jarkko Nikula wrote:

> Yeah, after thinking twice, we don't have zillions of options for e.g.
> Intel HDA either. If we ever figure out some common OMAP+TWL4030
> driver, the defconfigs are anyway have to modify so it's better stay
> with the original patch:

> http://mailman.alsa-project.org/pipermail/alsa-devel/2010-February/025129.html

> Sorry about line noise, Thomas :-)

Thomas, please resend the patch CCing the relevant maintainers (ie,
myself and Liam) - you should always CC maintainers on patch
submissions.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-11 11:14       ` [alsa-devel] " Jarkko Nikula
  2010-02-11 11:33         ` Mark Brown
@ 2010-02-11 15:02         ` Peter Ujfalusi
  2010-02-11 16:42           ` [alsa-devel] " Mark Brown
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Ujfalusi @ 2010-02-11 15:02 UTC (permalink / raw)
  To: alsa-devel
  Cc: Valkeinen Tomi (Nokia-D/Helsinki), Thomas Weber,
	weber@corscience.de, tony@atomride.com,
	Balbi Felipe (Nokia-D/Helsinki), linux-omap@vger.kernel.org,
	Liam Girdwood

On Thursday 11 February 2010 13:14:18 ext Jarkko Nikula wrote:
> On Thu, 11 Feb 2010 10:49:48 +0000
> 
> Liam Girdwood <lrg@slimlogic.co.uk> wrote:
> > I do agree this makes good sense for boards that are very similar and
> > have different audio options/config, but in this case the ASoC mach
> > drivers are identical (atm). Imo it just makes more sense to keep the
> > one Kconfig.
> 
> Yeah, after thinking twice, we don't have zillions of options for e.g.
> Intel HDA either. If we ever figure out some common OMAP+TWL4030
> driver, the defconfigs are anyway have to modify so it's better stay
> with the original patch:

Well, I really doubt that we can find a way to have a common driver for this 
combination. You can attach quite a big variety of amps to the outputs (some 
controlled with GPIO, some like the tpa6130 has i2c interface, etc).
To have some kind of "infrastructure" to support all of the possible scenarios 
is just does not worth the effort IMHO.

> 
> http://mailman.alsa-project.org/pipermail/alsa-devel/2010-February/025129.h
> tml
> 
> Sorry about line noise, Thomas :-)
> 

-- 
Péter

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [alsa-devel] [PATCHv3 3/4] Add ASoC support for DevKit8000
  2010-02-11 15:02         ` Peter Ujfalusi
@ 2010-02-11 16:42           ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2010-02-11 16:42 UTC (permalink / raw)
  To: Peter Ujfalusi
  Cc: alsa-devel, Valkeinen Tomi (Nokia-D/Helsinki), Thomas Weber,
	weber@corscience.de, tony@atomride.com,
	Balbi Felipe (Nokia-D/Helsinki), linux-omap@vger.kernel.org,
	Liam Girdwood

On Thu, Feb 11, 2010 at 05:02:54PM +0200, Peter Ujfalusi wrote:
> On Thursday 11 February 2010 13:14:18 ext Jarkko Nikula wrote:

> > Yeah, after thinking twice, we don't have zillions of options for e.g.
> > Intel HDA either. If we ever figure out some common OMAP+TWL4030

> Well, I really doubt that we can find a way to have a common driver for this 
> combination. You can attach quite a big variety of amps to the outputs (some 
> controlled with GPIO, some like the tpa6130 has i2c interface, etc).
> To have some kind of "infrastructure" to support all of the possible scenarios 
> is just does not worth the effort IMHO.

On the other hand there's probably going to be a bunch of boards which
can use the same driver by virtue of having copied the audio subsystem
en masse from one of the reference designs.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-11 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-10 19:23 [PATCHv3 3/4] Add ASoC support for DevKit8000 Thomas Weber
2010-02-11  9:55 ` Liam Girdwood
2010-02-11 10:40   ` Jarkko Nikula
2010-02-11 10:49     ` Liam Girdwood
2010-02-11 11:14       ` [alsa-devel] " Jarkko Nikula
2010-02-11 11:33         ` Mark Brown
2010-02-11 15:02         ` Peter Ujfalusi
2010-02-11 16:42           ` [alsa-devel] " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox