linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 0/2] ASoC: Fix dependency issues of SND_SOC
  2020-04-20 20:24 [PATCH 0/2] ASoC: Fix dependency issues of SND_SOC Wei Li
@ 2020-04-20 14:27 ` Mark Brown
  2020-04-20 20:24 ` [PATCH 1/2] ASoC: wm89xx: Fix build errors caused by I2C dependency Wei Li
  2020-04-20 20:24 ` [PATCH 2/2] ASoC: Fix wrong dependency of da7210 and wm8983 Wei Li
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2020-04-20 14:27 UTC (permalink / raw)
  To: tiwai, Wei Li, rdunlap, lgirdwood, geert, perex; +Cc: alsa-devel, linux-kernel

On Tue, 21 Apr 2020 04:24:08 +0800, Wei Li wrote:
> Fix dependency issues of SND_SOC introduced by commit ea00d95200d02 
> ("ASoC: Use imply for SND_SOC_ALL_CODECS").
> 
> Wei Li (2):
>   ASoC: wm89xx: Fix build errors caused by I2C dependency
>   ASoC: Fix wrong dependency of da7210 and wm8983
> 
> [...]

Applied to

	https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.7

Thanks!

[1/2] ASoC: wm89xx: Add missing dependency
      commit: 9bff3d3024e51122c0c09634056debcd6c7359ec
[2/2] ASoC: Fix wrong dependency of da7210 and wm8983
      (not applied)

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

* [PATCH 0/2] ASoC: Fix dependency issues of SND_SOC
@ 2020-04-20 20:24 Wei Li
  2020-04-20 14:27 ` Mark Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wei Li @ 2020-04-20 20:24 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, rdunlap, geert; +Cc: alsa-devel, linux-kernel

Fix dependency issues of SND_SOC introduced by commit ea00d95200d02 
("ASoC: Use imply for SND_SOC_ALL_CODECS").

Wei Li (2):
  ASoC: wm89xx: Fix build errors caused by I2C dependency
  ASoC: Fix wrong dependency of da7210 and wm8983

 sound/soc/codecs/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

-- 
2.17.1


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

* [PATCH 1/2] ASoC: wm89xx: Fix build errors caused by I2C dependency
  2020-04-20 20:24 [PATCH 0/2] ASoC: Fix dependency issues of SND_SOC Wei Li
  2020-04-20 14:27 ` Mark Brown
@ 2020-04-20 20:24 ` Wei Li
  2020-04-20 20:24 ` [PATCH 2/2] ASoC: Fix wrong dependency of da7210 and wm8983 Wei Li
  2 siblings, 0 replies; 4+ messages in thread
From: Wei Li @ 2020-04-20 20:24 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, rdunlap, geert; +Cc: alsa-devel, linux-kernel

When I2C=m, SND_SOC_WM8900=y, SND_SOC_WM8988=y, SND_SOC_WM8995=y:

sound/soc/codecs/wm8900.o: In function `wm8900_i2c_probe':
wm8900.c:(.text+0xa16): undefined reference to `__devm_regmap_init_i2c'
sound/soc/codecs/wm8900.o: In function `wm8900_modinit':
wm8900.c:(.init.text+0xb): undefined reference to `i2c_register_driver'
sound/soc/codecs/wm8900.o: In function `wm8900_exit':
wm8900.c:(.exit.text+0x8): undefined reference to `i2c_del_driver'
sound/soc/codecs/wm8988.o: In function `wm8988_i2c_probe':
wm8988.c:(.text+0x86b): undefined reference to `__devm_regmap_init_i2c'
sound/soc/codecs/wm8988.o: In function `wm8988_modinit':
wm8988.c:(.init.text+0xb): undefined reference to `i2c_register_driver'
sound/soc/codecs/wm8988.o: In function `wm8988_exit':
wm8988.c:(.exit.text+0x8): undefined reference to `i2c_del_driver'
sound/soc/codecs/wm8995.o: In function `wm8995_i2c_probe':
wm8995.c:(.text+0x1b5b): undefined reference to `__devm_regmap_init_i2c'
sound/soc/codecs/wm8995.o: In function `wm8995_modinit':
wm8995.c:(.init.text+0xb): undefined reference to `i2c_register_driver'
sound/soc/codecs/wm8995.o: In function `wm8995_exit':
wm8995.c:(.exit.text+0x8): undefined reference to `i2c_del_driver'

As these drivers support I2C and SPI, we add the SND_SOC_I2C_AND_SPI
dependency to solve it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: ea00d95200d02 ("ASoC: Use imply for SND_SOC_ALL_CODECS")
Signed-off-by: Wei Li <liwei391@huawei.com>
---
 sound/soc/codecs/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index e6a0c5d05fa5..e60e0b6a689c 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -1525,6 +1525,7 @@ config SND_SOC_WM8804_SPI
 
 config SND_SOC_WM8900
 	tristate
+	depends on SND_SOC_I2C_AND_SPI
 
 config SND_SOC_WM8903
 	tristate "Wolfson Microelectronics WM8903 CODEC"
@@ -1576,6 +1577,7 @@ config SND_SOC_WM8985
 
 config SND_SOC_WM8988
 	tristate
+	depends on SND_SOC_I2C_AND_SPI
 
 config SND_SOC_WM8990
 	tristate
@@ -1594,6 +1596,7 @@ config SND_SOC_WM8994
 
 config SND_SOC_WM8995
 	tristate
+	depends on SND_SOC_I2C_AND_SPI
 
 config SND_SOC_WM8996
 	tristate
-- 
2.17.1


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

* [PATCH 2/2] ASoC: Fix wrong dependency of da7210 and wm8983
  2020-04-20 20:24 [PATCH 0/2] ASoC: Fix dependency issues of SND_SOC Wei Li
  2020-04-20 14:27 ` Mark Brown
  2020-04-20 20:24 ` [PATCH 1/2] ASoC: wm89xx: Fix build errors caused by I2C dependency Wei Li
@ 2020-04-20 20:24 ` Wei Li
  2 siblings, 0 replies; 4+ messages in thread
From: Wei Li @ 2020-04-20 20:24 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, rdunlap, geert; +Cc: alsa-devel, linux-kernel

As these two drivers support I2C and SPI, we should add the SND_SOC_I2C_AND_SPI
dependency instead.

Fixes: ce0c97f8a2936 ("ASoC: Fix SND_SOC_ALL_CODECS imply SPI fallout")
Signed-off-by: Wei Li <liwei391@huawei.com>
---
 sound/soc/codecs/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index e60e0b6a689c..d0fec1b90256 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -717,7 +717,7 @@ config SND_SOC_L3
 
 config SND_SOC_DA7210
 	tristate
-	depends on I2C
+	depends on SND_SOC_I2C_AND_SPI
 
 config SND_SOC_DA7213
 	tristate "Dialog DA7213 CODEC"
@@ -1569,7 +1569,7 @@ config SND_SOC_WM8978
 
 config SND_SOC_WM8983
 	tristate
-	depends on I2C
+	depends on SND_SOC_I2C_AND_SPI
 
 config SND_SOC_WM8985
 	tristate "Wolfson Microelectronics WM8985 and WM8758 codec driver"
-- 
2.17.1


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

end of thread, other threads:[~2020-04-20 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 20:24 [PATCH 0/2] ASoC: Fix dependency issues of SND_SOC Wei Li
2020-04-20 14:27 ` Mark Brown
2020-04-20 20:24 ` [PATCH 1/2] ASoC: wm89xx: Fix build errors caused by I2C dependency Wei Li
2020-04-20 20:24 ` [PATCH 2/2] ASoC: Fix wrong dependency of da7210 and wm8983 Wei Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).