* [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903
@ 2011-04-19 16:18 Stephen Warren
[not found] ` <1303229881-9054-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Stephen Warren @ 2011-04-19 16:18 UTC (permalink / raw)
To: broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E,
lrg-kDsPt+C1G03kYMGBc/C6ZA, ccross-z5hGa2qSFaRBDgjK7y7TUQ,
konkers-z5hGa2qSFaRBDgjK7y7TUQ, olof-nZhT3qVonbNeoWH0uzbU5w
Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren
CONFIG_SND_SOC_TEGRA_WM8903 is useful for many Tegra boards. To avoid the
ASoC tegra/Kconfig enumerating them all, instead have the Tegra machine
Kconfig select MACH_HAS_SND_SOC_TEGRA_WM8903 where appropriate, and have
SND_SOC_TEGRA_WM8903 depend on this.
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
Mark, this will need to be applied to your tegra branch so it can get
merged into both trees. Thanks.
v2: s/HAS/WANT/ in Kconfig variable name.
I figured a machine "HAVING" a Kconfig variable didn't make much sense.
I also wondered about ALLOW/ENABLE.
Still, being consistent with existing variable naming is more important
that the finer details of English:-)
arch/arm/mach-tegra/Kconfig | 3 +++
sound/soc/tegra/Kconfig | 10 ++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index 3cdeffc..5ec1846 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -27,12 +27,14 @@ comment "Tegra board type"
config MACH_HARMONY
bool "Harmony board"
+ select MACH_HAS_SND_SOC_TEGRA_WM8903
help
Support for nVidia Harmony development platform
config MACH_KAEN
bool "Kaen board"
select MACH_SEABOARD
+ select MACH_HAS_SND_SOC_TEGRA_WM8903
help
Support for the Kaen version of Seaboard
@@ -43,6 +45,7 @@ config MACH_PAZ00
config MACH_SEABOARD
bool "Seaboard board"
+ select MACH_HAS_SND_SOC_TEGRA_WM8903
help
Support for nVidia Seaboard development platform. It will
also be included for some of the derivative boards that
diff --git a/sound/soc/tegra/Kconfig b/sound/soc/tegra/Kconfig
index 14f7119..de32dfb 100644
--- a/sound/soc/tegra/Kconfig
+++ b/sound/soc/tegra/Kconfig
@@ -14,10 +14,16 @@ config SND_SOC_TEGRA_I2S
Tegra I2S interface. You will also need to select the individual
machine drivers to support below.
+config MACH_HAS_SND_SOC_TEGRA_WM8903
+ bool
+ help
+ Machines that use the SND_SOC_TEGRA_WM8903 driver should select
+ this config option, in order to allow the user to enable
+ SND_SOC_TEGRA_WM8903.
+
config SND_SOC_TEGRA_WM8903
tristate "SoC Audio support for Tegra boards using a WM8903 codec"
- depends on SND_SOC_TEGRA && I2C
- depends on MACH_HARMONY || MACH_VENTANA || MACH_SEABOARD || MACH_KAEN || MACH_AEBL
+ depends on SND_SOC_TEGRA && I2C && MACH_HAS_SND_SOC_TEGRA_WM8903
default m
select SND_SOC_TEGRA_I2S
select SND_SOC_WM8903
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread[parent not found: <1303229881-9054-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <1303229881-9054-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2011-04-20 11:12 ` Liam Girdwood 2011-04-20 16:34 ` Stephen Warren 2011-04-21 5:19 ` Olof Johansson 2011-04-21 10:58 ` Mark Brown 2 siblings, 1 reply; 9+ messages in thread From: Liam Girdwood @ 2011-04-20 11:12 UTC (permalink / raw) To: Stephen Warren Cc: broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E, ccross-z5hGa2qSFaRBDgjK7y7TUQ, konkers-z5hGa2qSFaRBDgjK7y7TUQ, olof-nZhT3qVonbNeoWH0uzbU5w, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, linux-tegra-u79uwXL29TY76Z2rM5mHXA On Tue, 2011-04-19 at 10:18 -0600, Stephen Warren wrote: > CONFIG_SND_SOC_TEGRA_WM8903 is useful for many Tegra boards. To avoid the > ASoC tegra/Kconfig enumerating them all, instead have the Tegra machine > Kconfig select MACH_HAS_SND_SOC_TEGRA_WM8903 where appropriate, and have > SND_SOC_TEGRA_WM8903 depend on this. > > Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- > Mark, this will need to be applied to your tegra branch so it can get > merged into both trees. Thanks. > > v2: s/HAS/WANT/ in Kconfig variable name. > I figured a machine "HAVING" a Kconfig variable didn't make much sense. > I also wondered about ALLOW/ENABLE. > Still, being consistent with existing variable naming is more important > that the finer details of English:-) > Acked-by: Liam Girdwood <lrg-l0cyMroinI0@public.gmane.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 2011-04-20 11:12 ` Liam Girdwood @ 2011-04-20 16:34 ` Stephen Warren [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04973BB629-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Stephen Warren @ 2011-04-20 16:34 UTC (permalink / raw) To: ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, konkers-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org Cc: broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Liam Girdwood Liam Girdwood wrote at Wednesday, April 20, 2011 5:12 AM: > On Tue, 2011-04-19 at 10:18 -0600, Stephen Warren wrote: > > CONFIG_SND_SOC_TEGRA_WM8903 is useful for many Tegra boards. To avoid the > > ASoC tegra/Kconfig enumerating them all, instead have the Tegra machine > > Kconfig select MACH_HAS_SND_SOC_TEGRA_WM8903 where appropriate, and have > > SND_SOC_TEGRA_WM8903 depend on this. Colin, Erik, Olof, Does this change look OK? If so, could you please Ack it; I imagine Mark is holding off applying it until you do. After Mark applies this, Tegra for-next needs to merge Mark's tegra branch, and a few patches I have need to be applied to enable Seaboard audio, which all needs to happen in the next couple of weeks so it's in for-next before rc6. I'll send all the details once this change is applied. Thanks! > > Signed-off-by: Stephen Warren <swarren@nvidia.com> > > --- > > Mark, this will need to be applied to your tegra branch so it can get > > merged into both trees. Thanks. > > > > v2: s/HAS/WANT/ in Kconfig variable name. > > I figured a machine "HAVING" a Kconfig variable didn't make much sense. > > I also wondered about ALLOW/ENABLE. > > Still, being consistent with existing variable naming is more important > > that the finer details of English:-) > > > > Acked-by: Liam Girdwood <lrg@ti.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <74CDBE0F657A3D45AFBB94109FB122FF04973BB629-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>]
* Re: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04973BB629-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> @ 2011-04-20 16:40 ` Mark Brown [not found] ` <20110420164022.GE9869-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Mark Brown @ 2011-04-20 16:40 UTC (permalink / raw) To: Stephen Warren Cc: ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, konkers-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Liam Girdwood On Wed, Apr 20, 2011 at 09:34:27AM -0700, Stephen Warren wrote: > Does this change look OK? If so, could you please Ack it; I imagine Mark > is holding off applying it until you do. I am. ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20110420164022.GE9869-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>]
* Re: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <20110420164022.GE9869-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> @ 2011-04-21 5:19 ` Olof Johansson 0 siblings, 0 replies; 9+ messages in thread From: Olof Johansson @ 2011-04-21 5:19 UTC (permalink / raw) To: Mark Brown Cc: Stephen Warren, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, konkers-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Liam Girdwood On Wed, Apr 20, 2011 at 9:40 AM, Mark Brown <broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> wrote: > On Wed, Apr 20, 2011 at 09:34:27AM -0700, Stephen Warren wrote: > >> Does this change look OK? If so, could you please Ack it; I imagine Mark >> is holding off applying it until you do. > > I am. Done. -Olof ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <1303229881-9054-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2011-04-20 11:12 ` Liam Girdwood @ 2011-04-21 5:19 ` Olof Johansson 2011-04-21 10:58 ` Mark Brown 2 siblings, 0 replies; 9+ messages in thread From: Olof Johansson @ 2011-04-21 5:19 UTC (permalink / raw) To: Stephen Warren Cc: broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E, lrg-kDsPt+C1G03kYMGBc/C6ZA, ccross-z5hGa2qSFaRBDgjK7y7TUQ, konkers-z5hGa2qSFaRBDgjK7y7TUQ, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, linux-tegra-u79uwXL29TY76Z2rM5mHXA On Tue, Apr 19, 2011 at 9:18 AM, Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote: > CONFIG_SND_SOC_TEGRA_WM8903 is useful for many Tegra boards. To avoid the > ASoC tegra/Kconfig enumerating them all, instead have the Tegra machine > Kconfig select MACH_HAS_SND_SOC_TEGRA_WM8903 where appropriate, and have > SND_SOC_TEGRA_WM8903 depend on this. > > Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Acked-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org> Thanks! -Olof ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <1303229881-9054-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2011-04-20 11:12 ` Liam Girdwood 2011-04-21 5:19 ` Olof Johansson @ 2011-04-21 10:58 ` Mark Brown [not found] ` <20110421105819.GC11788-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> 2 siblings, 1 reply; 9+ messages in thread From: Mark Brown @ 2011-04-21 10:58 UTC (permalink / raw) To: Stephen Warren Cc: lrg-kDsPt+C1G03kYMGBc/C6ZA, ccross-z5hGa2qSFaRBDgjK7y7TUQ, konkers-z5hGa2qSFaRBDgjK7y7TUQ, olof-nZhT3qVonbNeoWH0uzbU5w, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, linux-tegra-u79uwXL29TY76Z2rM5mHXA On Tue, Apr 19, 2011 at 10:18:01AM -0600, Stephen Warren wrote: > CONFIG_SND_SOC_TEGRA_WM8903 is useful for many Tegra boards. To avoid the > ASoC tegra/Kconfig enumerating them all, instead have the Tegra machine > Kconfig select MACH_HAS_SND_SOC_TEGRA_WM8903 where appropriate, and have > SND_SOC_TEGRA_WM8903 depend on this. > > Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- > Mark, this will need to be applied to your tegra branch so it can get > merged into both trees. Thanks. I'm fairly sure it's not been generated against that branch - it doesn't apply since the branch doesn't have the rename of the board driver. I've fixed this up but please be more careful. ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20110421105819.GC11788-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>]
* RE: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <20110421105819.GC11788-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> @ 2011-04-21 16:29 ` Stephen Warren [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04973BB834-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Stephen Warren @ 2011-04-21 16:29 UTC (permalink / raw) To: Mark Brown Cc: lrg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, konkers-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Mark Brown wrote at Thursday, April 21, 2011 4:58 AM: > On Tue, Apr 19, 2011 at 10:18:01AM -0600, Stephen Warren wrote: > > CONFIG_SND_SOC_TEGRA_WM8903 is useful for many Tegra boards. To avoid the > > ASoC tegra/Kconfig enumerating them all, instead have the Tegra machine > > Kconfig select MACH_HAS_SND_SOC_TEGRA_WM8903 where appropriate, and have > > SND_SOC_TEGRA_WM8903 depend on this. > > > > Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > --- > > Mark, this will need to be applied to your tegra branch so it can get > > merged into both trees. Thanks. > > I'm fairly sure it's not been generated against that branch - it doesn't > apply since the branch doesn't have the rename of the board driver. > I've fixed this up but please be more careful. Yes, that patch was against your for-2.6.40 branch. I'd assumed that since there would either be: * A conflict applying the patch. * A smooth merge of tegra into 2.6.40. Or: * No conflict applying the patch. * A merge conflict merging tegra into 2.6.40. It didn't matter which way around it was. However, thinking more I was indeed wrong, since the conflicts in the initial application were more complex than I'd thought through. I guess the correct solution would have been for a clean application to your tegra branch, then you'd be OK with the merge conflict into 2.6.40? I probably should have mentioned it in the patch either way. Hopefully somebody Googling re: how to work cross-subsystem merges will find these posts and avoid my mistakes. Thanks for working it out! -- nvpublic ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <74CDBE0F657A3D45AFBB94109FB122FF04973BB834-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>]
* Re: [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04973BB834-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> @ 2011-04-21 18:42 ` Mark Brown 0 siblings, 0 replies; 9+ messages in thread From: Mark Brown @ 2011-04-21 18:42 UTC (permalink / raw) To: Stephen Warren Cc: lrg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, konkers-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Apr 21, 2011 at 09:29:30AM -0700, Stephen Warren wrote: > It didn't matter which way around it was. However, thinking more I was > indeed wrong, since the conflicts in the initial application were more > complex than I'd thought through. It's not that they were complex, it's more that if you've got a patch which is advertised as being for a particular branch the general expectation is that it would actually apply to that branch. > I guess the correct solution would have been for a clean application > to your tegra branch, then you'd be OK with the merge conflict into > 2.6.40? I probably should have mentioned it in the patch either way. Yes, ideally you'd also show the merge result (and possibly even publish versions of both branches after application, especially if the merge is tricky). ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-04-21 18:42 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19 16:18 [PATCH v2] ARM: Tegra: select MACH_HAS_SND_SOC_TEGRA_WM8903 Stephen Warren
[not found] ` <1303229881-9054-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-04-20 11:12 ` Liam Girdwood
2011-04-20 16:34 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04973BB629-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-04-20 16:40 ` Mark Brown
[not found] ` <20110420164022.GE9869-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2011-04-21 5:19 ` Olof Johansson
2011-04-21 5:19 ` Olof Johansson
2011-04-21 10:58 ` Mark Brown
[not found] ` <20110421105819.GC11788-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2011-04-21 16:29 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04973BB834-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-04-21 18:42 ` Mark Brown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox