Skip to contentSkip to conversation

ASoC: fsl: Fix SND_SOC_EUKREA_TLV320 build error on i.MX8M

PATCH Superseded Fabio Estevam 3 participants 4 messages Dec 12, 2018 – Dec 13, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: fsl: Fix SND_SOC_EUKREA_TLV320 build error on i.MX8M

eukrea-tlv320.c machine driver runs on non-DT platforms and include <asm/mach-types.h> header file in order to be able to use some machine_is_eukrea_xxx() macros.

Since commit 0e1532bfecf4 ("arm64: add basic Kconfig symbols for i.MX8") the ARCH_MXC symbol is visible on ARM64 too.

Building it for ARM64 causes the following build error:

sound/soc/fsl/eukrea-tlv320.c:28:10: fatal error: asm/mach-types.h: No such file or directory

Avoid this error by not allowing to build the SND_SOC_EUKREA_TLV320 driver when ARM64 is selected.

---
Hi Mark,

Commit commit 0e1532bfecf4 ("arm64: add basic Kconfig symbols for i.MX8") is present in Shawn's tree, so maybe this should be taken by Shawn?

 sound/soc/fsl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/Kconfig +1 -1
index 6ec19fb..2e75b5b 100644
@@ -221,7 +221,7 @@ config SND_SOC_PHYCORE_AC97
 
 config SND_SOC_EUKREA_TLV320
 	tristate "Eukrea TLV320"
-	depends on ARCH_MXC && I2C
+	depends on ARCH_MXC && !ARM64 && I2C
 	select SND_SOC_TLV320AIC23_I2C
 	select SND_SOC_IMX_AUDMUX
 	select SND_SOC_IMX_SSI
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Fabio Estevam

eukrea-tlv320.c machine driver runs on non-DT platforms and include <asm/mach-types.h> header file in order to be able to use some machine_is_eukrea_xxx() macros.

Since commit 0e1532bfecf4 ("arm64: add basic Kconfig symbols for i.MX8") the ARCH_MXC symbol is visible on ARM64 too.

Building it for ARM64 causes the following build error:

sound/soc/fsl/eukrea-tlv320.c:28:10: fatal error: asm/mach-types.h: No such file or directory

Avoid this error by not allowing to build the SND_SOC_EUKREA_TLV320 driver when ARM64 is selected.

Quoted 7 lines

---
Hi Mark,

Commit commit 0e1532bfecf4 ("arm64: add basic Kconfig symbols for i.MX8") is present in Shawn's tree, so maybe this should be taken by Shawn?

I would suggest you drop the mentioning of the commit from your commit log, so that Mark can take the patch as a preparation for i.MX8 landing.

Shawn

Quoted 20 lines
 sound/soc/fsl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/Kconfig +1 -1
index 6ec19fb..2e75b5b 100644
@@ -221,7 +221,7 @@ config SND_SOC_PHYCORE_AC97
 
 config SND_SOC_EUKREA_TLV320
 	tristate "Eukrea TLV320"
-	depends on ARCH_MXC && I2C
+	depends on ARCH_MXC && !ARM64 && I2C
 	select SND_SOC_TLV320AIC23_I2C
 	select SND_SOC_IMX_AUDMUX
 	select SND_SOC_IMX_SSI
Signature · 1 line
2.7.4
#2 lore raw

Hi Shawn,

Quoted 2 lines · Shawn Guo

I would suggest you drop the mentioning of the commit from your commit log, so that Mark can take the patch as a preparation for i.MX8 landing.

Thanks for your suggestion. I did it in v2.

maintainer
#3 lore raw
In reply to Fabio Estevam
Quoted 3 lines · Fabio Estevam

eukrea-tlv320.c machine driver runs on non-DT platforms and include <asm/mach-types.h> header file in order to be able to use some machine_is_eukrea_xxx() macros.

Oh, I actually just did this myself as a -next build report was earlier on in my inbox. I'll drop it and apply your v2 patch instead since I didn't push out my change yet.