ASoC: sprd: Fix modular build

Message ID 20190403045654.26957-1-broonie@kernel.org
State Accepted
Commit 0f9e47b3fd92c809a8c68719cd60ba863c4c48e0
Headers show
Series
  • ASoC: sprd: Fix modular build
Related show

Commit Message

Mark Brown April 3, 2019, 4:56 a.m.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Suggested-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

---
 sound/soc/sprd/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.20.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Comments

(Exiting) Baolin Wang April 3, 2019, 5:17 a.m. | #1
Hi Mark,

On Wed, 3 Apr 2019 at 12:57, Mark Brown <broonie@kernel.org> wrote:
>

> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>

> Suggested-by: Baolin Wang <baolin.wang@linaro.org>

> Signed-off-by: Mark Brown <broonie@kernel.org>

> ---

>  sound/soc/sprd/Makefile | 4 +++-

>  1 file changed, 3 insertions(+), 1 deletion(-)

>

> diff --git a/sound/soc/sprd/Makefile b/sound/soc/sprd/Makefile

> index fa1d5476b8da..e6c2606da8e2 100644

> --- a/sound/soc/sprd/Makefile

> +++ b/sound/soc/sprd/Makefile

> @@ -1,4 +1,6 @@

>  # SPDX-License-Identifier: GPL-2.0

>  # Spreadtrum Audio Support

>

> -obj-$(CONFIG_SND_SOC_SPRD)     += sprd-pcm-dma.o sprd-pcm-compress.o

> +snd-soc-sprd-platform-objs := sprd-pcm-dma.o sprd-pcm-compress.o

> +

> +obj-$(CONFIG_SND_SOC_SPRD) += snd-soc-sprd-platform.o

> --


Thanks for your help. It can fix the issue.
Tested-by: Baolin Wang <baolin.wang@linaro.org>


-- 
Baolin Wang
Best Regards
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Patch

diff --git a/sound/soc/sprd/Makefile b/sound/soc/sprd/Makefile
index fa1d5476b8da..e6c2606da8e2 100644
--- a/sound/soc/sprd/Makefile
+++ b/sound/soc/sprd/Makefile
@@ -1,4 +1,6 @@ 
 # SPDX-License-Identifier: GPL-2.0
 # Spreadtrum Audio Support
 
-obj-$(CONFIG_SND_SOC_SPRD)	+= sprd-pcm-dma.o sprd-pcm-compress.o
+snd-soc-sprd-platform-objs := sprd-pcm-dma.o sprd-pcm-compress.o
+
+obj-$(CONFIG_SND_SOC_SPRD) += snd-soc-sprd-platform.o