aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2014-02-19 11:45:57 -0500
committerMark Brown <broonie@linaro.org>2014-02-19 11:54:45 -0500
commitafd954900af84bf66a0dd72b2648a2c15fb68f25 (patch)
treef688aa44d0bf68834f3a41bb59cac56fb204e97f
parent6dda27cbbd1d2d2ac4833236f5fd8a81c14d200a (diff)
ASoC: Intel: Fix build for sst-dsp.c on PPC architecture
Disable build on non X86 architectures except for compile testing. This fixes the following build errors on PPC and adds an option for testing the build on other architectures as suggested by Mark Brown :- sound/soc/intel/sst-dsp.c: In function 'sst_dsp_outbox_write': sound/soc/intel/sst-dsp.c:218:2: error: implicit declaration of function 'memcpy_toio' [-Werror=implicit-function-declaration] memcpy_toio(sst->mailbox.out_base, message, bytes); ^ sound/soc/intel/sst-dsp.c: In function 'sst_dsp_outbox_read': sound/soc/intel/sst-dsp.c:231:2: error: implicit declaration of function 'memcpy_fromio' [-Werror=implicit-function-declaration] memcpy_fromio(message, sst->mailbox.out_base, bytes); ^ Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/intel/Kconfig1
-rw-r--r--sound/soc/intel/sst-dsp.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig
index b0a07e4cc919..dd048fef7248 100644
--- a/sound/soc/intel/Kconfig
+++ b/sound/soc/intel/Kconfig
@@ -15,6 +15,7 @@ config SND_SST_MFLD_PLATFORM
15config SND_SOC_INTEL_SST 15config SND_SOC_INTEL_SST
16 tristate "ASoC support for Intel(R) Smart Sound Technology" 16 tristate "ASoC support for Intel(R) Smart Sound Technology"
17 select SND_SOC_INTEL_SST_ACPI if ACPI 17 select SND_SOC_INTEL_SST_ACPI if ACPI
18 depends on (X86 || COMPILE_TEST)
18 help 19 help
19 This adds support for Intel(R) Smart Sound Technology (SST). 20 This adds support for Intel(R) Smart Sound Technology (SST).
20 Say Y if you have such a device 21 Say Y if you have such a device
diff --git a/sound/soc/intel/sst-dsp.c b/sound/soc/intel/sst-dsp.c
index e0ad2e50be52..6e22c1201959 100644
--- a/sound/soc/intel/sst-dsp.c
+++ b/sound/soc/intel/sst-dsp.c
@@ -19,6 +19,7 @@
19#include <linux/interrupt.h> 19#include <linux/interrupt.h>
20#include <linux/module.h> 20#include <linux/module.h>
21#include <linux/platform_device.h> 21#include <linux/platform_device.h>
22#include <linux/io.h>
22 23
23#include "sst-dsp.h" 24#include "sst-dsp.h"
24#include "sst-dsp-priv.h" 25#include "sst-dsp-priv.h"