All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
@ 2019-04-14 21:02 ` Alyssa Rosenzweig
  0 siblings, 0 replies; 7+ messages in thread
From: Alyssa Rosenzweig @ 2019-04-14 21:02 UTC (permalink / raw)
  To: linux-rockchip
  Cc: alsa-devel, Heiko Stuebner, Takashi Iwai, Liam Girdwood,
	Jaroslav Kysela, Mark Brown, linux-arm-kernel, Alyssa Rosenzweig

Without the appropriate DMA controller selected, the RK3399 audio
drivers compile but fail immediately. Accordingly, selecting the RK3399
audio without the corresponding PL330 controller is an invalid
configuration. Prevent errors (otherwise forcing the driver to unload at
runtime)  by an appropriate `select` directive in the Kconfig.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
---
 sound/soc/rockchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
index 957046ac6c8c..fa3cab461a60 100644
--- a/sound/soc/rockchip/Kconfig
+++ b/sound/soc/rockchip/Kconfig
@@ -73,6 +73,7 @@ config SND_SOC_RK3399_GRU_SOUND
 	select SND_SOC_RT5514_SPI
 	select SND_SOC_HDMI_CODEC
 	select SND_SOC_DMIC
+	select PL330_DMA
 	help
 	  Say Y or M here if you want to add support multiple codecs for SoC
 	  audio on Rockchip RK3399 GRU boards.
-- 
2.20.1

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

* [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
@ 2019-04-14 21:02 ` Alyssa Rosenzweig
  0 siblings, 0 replies; 7+ messages in thread
From: Alyssa Rosenzweig @ 2019-04-14 21:02 UTC (permalink / raw)
  To: linux-rockchip
  Cc: alsa-devel, Heiko Stuebner, Takashi Iwai, Liam Girdwood,
	Jaroslav Kysela, Mark Brown, linux-arm-kernel, Alyssa Rosenzweig

Without the appropriate DMA controller selected, the RK3399 audio
drivers compile but fail immediately. Accordingly, selecting the RK3399
audio without the corresponding PL330 controller is an invalid
configuration. Prevent errors (otherwise forcing the driver to unload at
runtime)  by an appropriate `select` directive in the Kconfig.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
---
 sound/soc/rockchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
index 957046ac6c8c..fa3cab461a60 100644
--- a/sound/soc/rockchip/Kconfig
+++ b/sound/soc/rockchip/Kconfig
@@ -73,6 +73,7 @@ config SND_SOC_RK3399_GRU_SOUND
 	select SND_SOC_RT5514_SPI
 	select SND_SOC_HDMI_CODEC
 	select SND_SOC_DMIC
+	select PL330_DMA
 	help
 	  Say Y or M here if you want to add support multiple codecs for SoC
 	  audio on Rockchip RK3399 GRU boards.
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
  2019-04-14 21:02 ` Alyssa Rosenzweig
  (?)
@ 2019-04-16 16:27 ` Mark Brown
       [not found]   ` <20190416162735.GI4834-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  -1 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2019-04-16 16:27 UTC (permalink / raw)
  To: Alyssa Rosenzweig
  Cc: alsa-devel, Heiko Stuebner, Takashi Iwai, Liam Girdwood,
	linux-rockchip, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 856 bytes --]

On Sun, Apr 14, 2019 at 02:02:12PM -0700, Alyssa Rosenzweig wrote:
> Without the appropriate DMA controller selected, the RK3399 audio
> drivers compile but fail immediately. Accordingly, selecting the RK3399
> audio without the corresponding PL330 controller is an invalid
> configuration. Prevent errors (otherwise forcing the driver to unload at
> runtime)  by an appropriate `select` directive in the Kconfig.

This breaks the build as it enables CONFIG_PL330 but that depends on
AMBA which isn't selected so we end up with:

ld: drivers/dma/pl330.o: in function `pl330_driver_init':
pl330.c:(.init.text+0x8): undefined reference to `amba_driver_register'
ld: drivers/dma/pl330.o: in function `pl330_driver_exit':
pl330.c:(.exit.text+0x8): undefined reference to `amba_driver_unregister'
make: *** [Makefile:1029: vmlinux] Error 1

in my test configs.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
  2019-04-16 16:27 ` Mark Brown
@ 2019-04-16 16:34       ` Alyssa Rosenzweig
  0 siblings, 0 replies; 7+ messages in thread
From: Alyssa Rosenzweig @ 2019-04-16 16:34 UTC (permalink / raw)
  To: Mark Brown
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Heiko Stuebner, Takashi Iwai,
	Liam Girdwood, Jaroslav Kysela,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Independent of this, should PL330 be selecting AMBA then?

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

* Re: [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
@ 2019-04-16 16:34       ` Alyssa Rosenzweig
  0 siblings, 0 replies; 7+ messages in thread
From: Alyssa Rosenzweig @ 2019-04-16 16:34 UTC (permalink / raw)
  To: Mark Brown
  Cc: alsa-devel, Heiko Stuebner, Takashi Iwai, Liam Girdwood,
	Jaroslav Kysela, linux-rockchip, linux-arm-kernel

Independent of this, should PL330 be selecting AMBA then?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
  2019-04-16 16:34       ` Alyssa Rosenzweig
  (?)
@ 2019-04-16 16:37       ` Mark Brown
  -1 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2019-04-16 16:37 UTC (permalink / raw)
  To: Alyssa Rosenzweig
  Cc: alsa-devel, Heiko Stuebner, Takashi Iwai, Liam Girdwood,
	linux-rockchip, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 205 bytes --]

On Tue, Apr 16, 2019 at 09:34:34AM -0700, Alyssa Rosenzweig wrote:

> Independent of this, should PL330 be selecting AMBA then?

No, it's a dependency already.  The problem is selects ignore
dependencies.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio
@ 2019-03-24  6:24 Alyssa Rosenzweig
  0 siblings, 0 replies; 7+ messages in thread
From: Alyssa Rosenzweig @ 2019-03-24  6:24 UTC (permalink / raw)
  To: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: Heiko Stuebner, Alyssa Rosenzweig

Without the appropriate DMA controller selected, the RK3399 audio
drivers compile but fail immediately. Accordingly, selecting the RK3399
audio without the corresponding PL330 controller is an invalid
configuration. Prevent this by an appropriate `select` directive in the
Kconfig.

Signed-off-by: Alyssa Rosenzweig <alyssa-kyPdXwtBHbIqQpLF9uBUvQ@public.gmane.org>
Cc: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
---
 sound/soc/rockchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
index 957046ac6c8c..fa3cab461a60 100644
--- a/sound/soc/rockchip/Kconfig
+++ b/sound/soc/rockchip/Kconfig
@@ -73,6 +73,7 @@ config SND_SOC_RK3399_GRU_SOUND
 	select SND_SOC_RT5514_SPI
 	select SND_SOC_HDMI_CODEC
 	select SND_SOC_DMIC
+	select PL330_DMA
 	help
 	  Say Y or M here if you want to add support multiple codecs for SoC
 	  audio on Rockchip RK3399 GRU boards.
-- 
2.20.1

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

end of thread, other threads:[~2019-04-16 16:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-14 21:02 [PATCH] ASoC: rockchip: Select DMA_PL330 by RK3399 audio Alyssa Rosenzweig
2019-04-14 21:02 ` Alyssa Rosenzweig
2019-04-16 16:27 ` Mark Brown
     [not found]   ` <20190416162735.GI4834-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2019-04-16 16:34     ` Alyssa Rosenzweig
2019-04-16 16:34       ` Alyssa Rosenzweig
2019-04-16 16:37       ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2019-03-24  6:24 Alyssa Rosenzweig

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.