* [PATCH] ASoC: pxa: add I2C dependencies as needed
@ 2014-06-03 18:38 Arnd Bergmann
2014-06-03 21:12 ` [alsa-devel] " Robert Jarzmik
2014-06-03 22:00 ` Mark Brown
0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2014-06-03 18:38 UTC (permalink / raw)
To: linux-arm-kernel
We have in the past added 'depends on I2C' for some of the PXA boards
after hitting randconfig build bugs. I have seens a couple of new
bugs in this area during the linux-next cycle for 3.16, after it
became possible to build some more PXA machines with I2C disabled.
To shut this up for good, this adds the dependency to every board
that uses I2C as the interface to the codec. I have gone through
all board files and verified that they all either use AC97 or
I2C, and this annotates the latter. Some of these already enable
I2C from mach-pxa/Kconfig, but since that can change it's better
to be explicit here.
The link error that can result otherwise happens when CONFIG_I2C
is set to 'm' and the codec driver is built-in as a result of being
selected by the platform specific glue.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig
index dcf0c08..e195b038 100644
--- a/sound/soc/pxa/Kconfig
+++ b/sound/soc/pxa/Kconfig
@@ -40,7 +40,7 @@ config SND_MMP_SOC_SSPA
config SND_PXA2XX_SOC_CORGI
tristate "SoC Audio support for Sharp Zaurus SL-C7x0"
- depends on SND_PXA2XX_SOC && PXA_SHARP_C7xx
+ depends on SND_PXA2XX_SOC && PXA_SHARP_C7xx && I2C
select SND_PXA2XX_SOC_I2S
select SND_SOC_WM8731
help
@@ -49,7 +49,7 @@ config SND_PXA2XX_SOC_CORGI
config SND_PXA2XX_SOC_SPITZ
tristate "SoC Audio support for Sharp Zaurus SL-Cxx00"
- depends on SND_PXA2XX_SOC && PXA_SHARP_Cxx00
+ depends on SND_PXA2XX_SOC && PXA_SHARP_Cxx00 && I2C
select SND_PXA2XX_SOC_I2S
select SND_SOC_WM8750
help
@@ -58,7 +58,7 @@ config SND_PXA2XX_SOC_SPITZ
config SND_PXA2XX_SOC_Z2
tristate "SoC Audio support for Zipit Z2"
- depends on SND_PXA2XX_SOC && MACH_ZIPIT2
+ depends on SND_PXA2XX_SOC && MACH_ZIPIT2 && I2C
select SND_PXA2XX_SOC_I2S
select SND_SOC_WM8750
help
@@ -66,7 +66,7 @@ config SND_PXA2XX_SOC_Z2
config SND_PXA2XX_SOC_POODLE
tristate "SoC Audio support for Poodle"
- depends on SND_PXA2XX_SOC && MACH_POODLE
+ depends on SND_PXA2XX_SOC && MACH_POODLE && I2C
select SND_PXA2XX_SOC_I2S
select SND_SOC_WM8731
help
@@ -181,7 +181,7 @@ config SND_PXA2XX_SOC_HX4700
config SND_PXA2XX_SOC_MAGICIAN
tristate "SoC Audio support for HTC Magician"
- depends on SND_PXA2XX_SOC && MACH_MAGICIAN
+ depends on SND_PXA2XX_SOC && MACH_MAGICIAN && I2C
select SND_PXA2XX_SOC_I2S
select SND_PXA_SOC_SSP
select SND_SOC_UDA1380
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [alsa-devel] [PATCH] ASoC: pxa: add I2C dependencies as needed
2014-06-03 18:38 [PATCH] ASoC: pxa: add I2C dependencies as needed Arnd Bergmann
@ 2014-06-03 21:12 ` Robert Jarzmik
2014-06-03 21:59 ` Mark Brown
2014-06-03 22:00 ` Mark Brown
1 sibling, 1 reply; 5+ messages in thread
From: Robert Jarzmik @ 2014-06-03 21:12 UTC (permalink / raw)
To: linux-arm-kernel
Arnd Bergmann <arnd@arndb.de> writes:
> We have in the past added 'depends on I2C' for some of the PXA boards
> after hitting randconfig build bugs. I have seens a couple of new
> bugs in this area during the linux-next cycle for 3.16, after it
> became possible to build some more PXA machines with I2C disabled.
>
> To shut this up for good, this adds the dependency to every board
> that uses I2C as the interface to the codec. I have gone through
> all board files and verified that they all either use AC97 or
> I2C, and this annotates the latter. Some of these already enable
> I2C from mach-pxa/Kconfig, but since that can change it's better
> to be explicit here.
>
> The link error that can result otherwise happens when CONFIG_I2C
> is set to 'm' and the codec driver is built-in as a result of being
> selected by the platform specific glue.
Hi Arnd,
Any reason SND_PXA2XX_SOC_MIOA701 escaped ? The board is PXA based, and its
codec wm9713 is I2C based, and relies on AC97.
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 5+ messages in thread
* [alsa-devel] [PATCH] ASoC: pxa: add I2C dependencies as needed
2014-06-03 21:12 ` [alsa-devel] " Robert Jarzmik
@ 2014-06-03 21:59 ` Mark Brown
2014-06-04 19:40 ` Robert Jarzmik
0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2014-06-03 21:59 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jun 03, 2014 at 11:12:09PM +0200, Robert Jarzmik wrote:
> Arnd Bergmann <arnd@arndb.de> writes:
> > To shut this up for good, this adds the dependency to every board
> > that uses I2C as the interface to the codec. I have gone through
> > all board files and verified that they all either use AC97 or
> > I2C, and this annotates the latter. Some of these already enable
> > I2C from mach-pxa/Kconfig, but since that can change it's better
> > to be explicit here.
> Any reason SND_PXA2XX_SOC_MIOA701 escaped ? The board is PXA based, and its
> codec wm9713 is I2C based, and relies on AC97.
The WM9713 is AC'97 only, there's no I2C interface there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140603/a45d7e02/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [alsa-devel] [PATCH] ASoC: pxa: add I2C dependencies as needed
2014-06-03 21:59 ` Mark Brown
@ 2014-06-04 19:40 ` Robert Jarzmik
0 siblings, 0 replies; 5+ messages in thread
From: Robert Jarzmik @ 2014-06-04 19:40 UTC (permalink / raw)
To: linux-arm-kernel
Mark Brown <broonie@kernel.org> writes:
>> Any reason SND_PXA2XX_SOC_MIOA701 escaped ? The board is PXA based, and its
>> codec wm9713 is I2C based, and relies on AC97.
>
> The WM9713 is AC'97 only, there's no I2C interface there.
Gees, you're right. I was remembering the registers, and that made my think of
I2C registers, like in Maxim regulators.
My bad, you're right, no I2C.
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] ASoC: pxa: add I2C dependencies as needed
2014-06-03 18:38 [PATCH] ASoC: pxa: add I2C dependencies as needed Arnd Bergmann
2014-06-03 21:12 ` [alsa-devel] " Robert Jarzmik
@ 2014-06-03 22:00 ` Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2014-06-03 22:00 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jun 03, 2014 at 08:38:27PM +0200, Arnd Bergmann wrote:
> We have in the past added 'depends on I2C' for some of the PXA boards
> after hitting randconfig build bugs. I have seens a couple of new
> bugs in this area during the linux-next cycle for 3.16, after it
> became possible to build some more PXA machines with I2C disabled.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140603/e9bc11a7/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-04 19:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 18:38 [PATCH] ASoC: pxa: add I2C dependencies as needed Arnd Bergmann
2014-06-03 21:12 ` [alsa-devel] " Robert Jarzmik
2014-06-03 21:59 ` Mark Brown
2014-06-04 19:40 ` Robert Jarzmik
2014-06-03 22:00 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox