LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/
@ 2019-05-23 3:58 Randy Dunlap
2019-05-23 11:20 ` Pierre-Louis Bossart
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2019-05-23 3:58 UTC (permalink / raw)
To: LKML, moderated for non-subscribers
Cc: Mark Brown, Pierre-Louis Bossart, Liam Girdwood, Jie Yang
From: Randy Dunlap <rdunlap@infradead.org>
Several drivers in sound/soc/intel/boards/ #include header files
that only exist in arch/x86/include/asm. This causes build errors,
so make these drivers depend on X86.
Fixes these build errors (on ia64):
../sound/soc/intel/boards/bxt_da7219_max98357a.c:19:10: fatal error: asm/cpu_device_id.h: No such file or directory
#include <asm/cpu_device_id.h>
../sound/soc/intel/boards/bytcr_rt5640.c:31:10: fatal error: asm/cpu_device_id.h: No such file or directory
#include <asm/cpu_device_id.h>
../sound/soc/intel/boards/bytcr_rt5651.c:33:10: fatal error: asm/cpu_device_id.h: No such file or directory
#include <asm/cpu_device_id.h>
../sound/soc/intel/boards/cht_bsw_rt5645.c:29:10: fatal error: asm/cpu_device_id.h: No such file or directory
#include <asm/cpu_device_id.h>
../sound/soc/intel/boards/bytcht_es8316.c:33:10: fatal error: asm/cpu_device_id.h: No such file or directory
#include <asm/cpu_device_id.h>
../sound/soc/intel/boards/bytcht_da7213.c:26:10: fatal error: asm/platform_sst_audio.h: No such file or directory
#include <asm/platform_sst_audio.h>
And more drivers determined by:
> grep "include.*asm.cpu_device_id.h" *.c
bxt_da7219_max98357a.c:#include <asm/cpu_device_id.h>
bytcht_es8316.c:#include <asm/cpu_device_id.h>
bytcr_rt5640.c:#include <asm/cpu_device_id.h>
bytcr_rt5651.c:#include <asm/cpu_device_id.h>
cht_bsw_rt5645.c:#include <asm/cpu_device_id.h>
sof_rt5682.c:#include <asm/cpu_device_id.h>
and
> grep "include.*asm.platform_sst_audio.h" *.c
bytcht_da7213.c:#include <asm/platform_sst_audio.h>
bytcht_es8316.c:#include <asm/platform_sst_audio.h>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Cc: Jie Yang <yang.jie@linux.intel.com>
Cc: alsa-devel@alsa-project.org
---
sound/soc/intel/boards/Kconfig | 6 ++++++
1 file changed, 6 insertions(+)
--- lnx-52-rc1.orig/sound/soc/intel/boards/Kconfig
+++ lnx-52-rc1/sound/soc/intel/boards/Kconfig
@@ -87,6 +87,7 @@ config SND_SOC_INTEL_BYTCR_RT5640_MACH
tristate "Baytrail and Baytrail-CR with RT5640 codec"
depends on I2C && ACPI
depends on X86_INTEL_LPSS || COMPILE_TEST
+ depends on X86
select SND_SOC_ACPI
select SND_SOC_RT5640
help
@@ -99,6 +100,7 @@ config SND_SOC_INTEL_BYTCR_RT5651_MACH
tristate "Baytrail and Baytrail-CR with RT5651 codec"
depends on I2C && ACPI
depends on X86_INTEL_LPSS || COMPILE_TEST
+ depends on X86
select SND_SOC_ACPI
select SND_SOC_RT5651
help
@@ -123,6 +125,7 @@ config SND_SOC_INTEL_CHT_BSW_RT5645_MACH
tristate "Cherrytrail & Braswell with RT5645/5650 codec"
depends on I2C && ACPI
depends on X86_INTEL_LPSS || COMPILE_TEST
+ depends on X86
select SND_SOC_ACPI
select SND_SOC_RT5645
help
@@ -159,6 +162,7 @@ config SND_SOC_INTEL_BYT_CHT_DA7213_MACH
tristate "Baytrail & Cherrytrail with DA7212/7213 codec"
depends on I2C && ACPI
depends on X86_INTEL_LPSS || COMPILE_TEST
+ depends on X86
select SND_SOC_ACPI
select SND_SOC_DA7213
help
@@ -171,6 +175,7 @@ config SND_SOC_INTEL_BYT_CHT_ES8316_MACH
tristate "Baytrail & Cherrytrail with ES8316 codec"
depends on I2C && ACPI
depends on X86_INTEL_LPSS || COMPILE_TEST
+ depends on X86
select SND_SOC_ACPI
select SND_SOC_ES8316
help
@@ -249,6 +254,7 @@ config SND_SOC_INTEL_BXT_DA7219_MAX98357
tristate "Broxton with DA7219 and MAX98357A in I2S Mode"
depends on I2C && ACPI
depends on MFD_INTEL_LPSS || COMPILE_TEST
+ depends on X86
select SND_SOC_DA7219
select SND_SOC_MAX98357A
select SND_SOC_DMIC
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/
2019-05-23 3:58 [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/ Randy Dunlap
@ 2019-05-23 11:20 ` Pierre-Louis Bossart
2019-05-23 12:25 ` [alsa-devel] " Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Pierre-Louis Bossart @ 2019-05-23 11:20 UTC (permalink / raw)
To: Randy Dunlap, LKML, moderated for non-subscribers
Cc: Mark Brown, Liam Girdwood, Jie Yang
On 5/22/19 10:58 PM, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
>
> Several drivers in sound/soc/intel/boards/ #include header files
> that only exist in arch/x86/include/asm. This causes build errors,
> so make these drivers depend on X86.
>
> Fixes these build errors (on ia64):
>
> ../sound/soc/intel/boards/bxt_da7219_max98357a.c:19:10: fatal error: asm/cpu_device_id.h: No such file or directory
> #include <asm/cpu_device_id.h>
> ../sound/soc/intel/boards/bytcr_rt5640.c:31:10: fatal error: asm/cpu_device_id.h: No such file or directory
> #include <asm/cpu_device_id.h>
> ../sound/soc/intel/boards/bytcr_rt5651.c:33:10: fatal error: asm/cpu_device_id.h: No such file or directory
> #include <asm/cpu_device_id.h>
> ../sound/soc/intel/boards/cht_bsw_rt5645.c:29:10: fatal error: asm/cpu_device_id.h: No such file or directory
> #include <asm/cpu_device_id.h>
> ../sound/soc/intel/boards/bytcht_es8316.c:33:10: fatal error: asm/cpu_device_id.h: No such file or directory
> #include <asm/cpu_device_id.h>
> ../sound/soc/intel/boards/bytcht_da7213.c:26:10: fatal error: asm/platform_sst_audio.h: No such file or directory
> #include <asm/platform_sst_audio.h>
>
> And more drivers determined by:
>> grep "include.*asm.cpu_device_id.h" *.c
> bxt_da7219_max98357a.c:#include <asm/cpu_device_id.h>
> bytcht_es8316.c:#include <asm/cpu_device_id.h>
> bytcr_rt5640.c:#include <asm/cpu_device_id.h>
> bytcr_rt5651.c:#include <asm/cpu_device_id.h>
> cht_bsw_rt5645.c:#include <asm/cpu_device_id.h>
> sof_rt5682.c:#include <asm/cpu_device_id.h>
> and
>> grep "include.*asm.platform_sst_audio.h" *.c
> bytcht_da7213.c:#include <asm/platform_sst_audio.h>
> bytcht_es8316.c:#include <asm/platform_sst_audio.h>
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> Cc: Jie Yang <yang.jie@linux.intel.com>
> Cc: alsa-devel@alsa-project.org
> ---
> sound/soc/intel/boards/Kconfig | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> --- lnx-52-rc1.orig/sound/soc/intel/boards/Kconfig
> +++ lnx-52-rc1/sound/soc/intel/boards/Kconfig
> @@ -87,6 +87,7 @@ config SND_SOC_INTEL_BYTCR_RT5640_MACH
> tristate "Baytrail and Baytrail-CR with RT5640 codec"
> depends on I2C && ACPI
> depends on X86_INTEL_LPSS || COMPILE_TEST
> + depends on X86
How does this improve the results?
config X86_INTEL_LPSS
bool "Intel Low Power Subsystem Support"
depends on X86 && ACPI && PCI
So the X86 dependency is already there. Does this happen with
COMPILE_TEST set? If yes, maybe that's the part that needs to be
changed? The addition of COMPILE_TEST here is quite recent and might
need to be reverted.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [alsa-devel] [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/
2019-05-23 11:20 ` Pierre-Louis Bossart
@ 2019-05-23 12:25 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2019-05-23 12:25 UTC (permalink / raw)
To: Pierre-Louis Bossart
Cc: Randy Dunlap, LKML, moderated for non-subscribers, Liam Girdwood,
Mark Brown, Jie Yang
On Thu, 23 May 2019 13:20:05 +0200,
Pierre-Louis Bossart wrote:
>
>
>
> On 5/22/19 10:58 PM, Randy Dunlap wrote:
> > From: Randy Dunlap <rdunlap@infradead.org>
> >
> > Several drivers in sound/soc/intel/boards/ #include header files
> > that only exist in arch/x86/include/asm. This causes build errors,
> > so make these drivers depend on X86.
> >
> > Fixes these build errors (on ia64):
> >
> > ../sound/soc/intel/boards/bxt_da7219_max98357a.c:19:10: fatal error: asm/cpu_device_id.h: No such file or directory
> > #include <asm/cpu_device_id.h>
> > ../sound/soc/intel/boards/bytcr_rt5640.c:31:10: fatal error: asm/cpu_device_id.h: No such file or directory
> > #include <asm/cpu_device_id.h>
> > ../sound/soc/intel/boards/bytcr_rt5651.c:33:10: fatal error: asm/cpu_device_id.h: No such file or directory
> > #include <asm/cpu_device_id.h>
> > ../sound/soc/intel/boards/cht_bsw_rt5645.c:29:10: fatal error: asm/cpu_device_id.h: No such file or directory
> > #include <asm/cpu_device_id.h>
> > ../sound/soc/intel/boards/bytcht_es8316.c:33:10: fatal error: asm/cpu_device_id.h: No such file or directory
> > #include <asm/cpu_device_id.h>
> > ../sound/soc/intel/boards/bytcht_da7213.c:26:10: fatal error: asm/platform_sst_audio.h: No such file or directory
> > #include <asm/platform_sst_audio.h>
> >
> > And more drivers determined by:
> >> grep "include.*asm.cpu_device_id.h" *.c
> > bxt_da7219_max98357a.c:#include <asm/cpu_device_id.h>
> > bytcht_es8316.c:#include <asm/cpu_device_id.h>
> > bytcr_rt5640.c:#include <asm/cpu_device_id.h>
> > bytcr_rt5651.c:#include <asm/cpu_device_id.h>
> > cht_bsw_rt5645.c:#include <asm/cpu_device_id.h>
> > sof_rt5682.c:#include <asm/cpu_device_id.h>
> > and
> >> grep "include.*asm.platform_sst_audio.h" *.c
> > bytcht_da7213.c:#include <asm/platform_sst_audio.h>
> > bytcht_es8316.c:#include <asm/platform_sst_audio.h>
> >
> > Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> > Cc: Mark Brown <broonie@kernel.org>
> > Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> > Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> > Cc: Jie Yang <yang.jie@linux.intel.com>
> > Cc: alsa-devel@alsa-project.org
> > ---
> > sound/soc/intel/boards/Kconfig | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > --- lnx-52-rc1.orig/sound/soc/intel/boards/Kconfig
> > +++ lnx-52-rc1/sound/soc/intel/boards/Kconfig
> > @@ -87,6 +87,7 @@ config SND_SOC_INTEL_BYTCR_RT5640_MACH
> > tristate "Baytrail and Baytrail-CR with RT5640 codec"
> > depends on I2C && ACPI
> > depends on X86_INTEL_LPSS || COMPILE_TEST
> > + depends on X86
>
> How does this improve the results?
>
> config X86_INTEL_LPSS
> bool "Intel Low Power Subsystem Support"
> depends on X86 && ACPI && PCI
>
> So the X86 dependency is already there. Does this happen with
> COMPILE_TEST set? If yes, maybe that's the part that needs to be
> changed? The addition of COMPILE_TEST here is quite recent and might
> need to be reverted.
Right, the removal of COMPILE_TEST for drivers that require
X86_INTEL_LPSS would be more straightforward.
thanks,
Takashi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-23 12:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 3:58 [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/ Randy Dunlap
2019-05-23 11:20 ` Pierre-Louis Bossart
2019-05-23 12:25 ` [alsa-devel] " Takashi Iwai
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).