diff options
author | Jie Yang <yang.jie@intel.com> | 2015-11-24 22:01:21 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-25 11:57:05 +0000 |
commit | a92ea59b74e231cc0a969afa8d71fa314d5860f2 (patch) | |
tree | 8832aa7a10c7a0b3993f3187ace55b5d1f5ea2cd /sound/soc/intel/common/sst-dsp.c | |
parent | 9049a48a33f7e03b69589a5fbb1444cc606d3292 (diff) | |
download | linux-a92ea59b74e231cc0a969afa8d71fa314d5860f2.tar.bz2 |
ASoC: Intel: sst: only select sst-firmware when DW DMAC is built-in
The previous commit ef3e199a49c8 ("ASoC: Intel: sst: only use
sst-firmware when DW DMAC is available") does not fix the 0day
building errors thoroughly:
sound/built-in.o: In function 'dw_dma_remove'
sound/built-in.o: In function 'dw_dma_probe'
Here we fallback to select sst-firmware only when DW DMAC
is built-in selected. We may need to refactor sst common
driver and split DW related codes to platform driver, but
ATM, this fallback may be the smallest fix.
Please be noticed that after applying this patch, we may
need select DW DMAC manually in DMA driver menu, before
we can prompt and select HSW/BDW and old BYT machines.
Signed-off-by: Jie Yang <yang.jie@intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/common/sst-dsp.c')
-rw-r--r-- | sound/soc/intel/common/sst-dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/common/sst-dsp.c b/sound/soc/intel/common/sst-dsp.c index c9452e02e0dd..b5bbdf4fe93a 100644 --- a/sound/soc/intel/common/sst-dsp.c +++ b/sound/soc/intel/common/sst-dsp.c @@ -420,7 +420,7 @@ void sst_dsp_inbox_read(struct sst_dsp *sst, void *message, size_t bytes) } EXPORT_SYMBOL_GPL(sst_dsp_inbox_read); -#if IS_ENABLED(CONFIG_DW_DMAC_CORE) +#ifdef CONFIG_DW_DMAC_CORE struct sst_dsp *sst_dsp_new(struct device *dev, struct sst_dsp_device *sst_dev, struct sst_pdata *pdata) { |