linux/sound/soc/fsl
Arnd Bergmann ea751227c8
ASoC: imx: fix fiq dependencies
During randconfig builds, I occasionally run into an invalid configuration
of the freescale FIQ sound support:

WARNING: unmet direct dependencies detected for SND_SOC_IMX_PCM_FIQ
  Depends on [m]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_IMX_SOC [=m]
  Selected by [y]:
  - SND_SOC_FSL_SPDIF [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_IMX_SOC [=m]!=n && (MXC_TZIC [=n] || MXC_AVIC [=y])

sound/soc/fsl/imx-ssi.o: In function `imx_ssi_remove':
imx-ssi.c:(.text+0x28): undefined reference to `imx_pcm_fiq_exit'
sound/soc/fsl/imx-ssi.o: In function `imx_ssi_probe':
imx-ssi.c:(.text+0xa64): undefined reference to `imx_pcm_fiq_init'

The Kconfig warning is a result of the symbol being defined inside of
the "if SND_IMX_SOC" block, and is otherwise harmless. The link error
is more tricky and happens with SND_SOC_IMX_SSI=y, which may or may not
imply FIQ support. However, if SND_SOC_FSL_SSI is set to =m at the same
time, that selects SND_SOC_IMX_PCM_FIQ as a loadable module dependency,
which then causes a link failure from imx-ssi.

The solution here is to make SND_SOC_IMX_PCM_FIQ built-in whenever
one of its potential users is built-in.

Fixes: ff40260f79 ("ASoC: fsl: refine DMA/FIQ dependencies")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-02 10:46:04 +09:00
..
efika-audio-fabric.c ASoC: mpc5200_psc_ac97: Remove unused DAI ID defines 2017-01-10 18:45:26 +00:00
eukrea-tlv320.c ASoC: eukrea-tlv320: Switch to SPDX identifier 2019-04-08 13:50:43 +07:00
fsl_asrc_dma.c ASoC: add for_each_dpcm_be() macro 2018-09-20 10:31:20 -07:00
fsl_asrc.c ASoC: fsl_asrc: add constraint for the asrc of older version 2019-03-21 14:49:24 +00:00
fsl_asrc.h ASoC: fsl_asrc: Switch to SPDX identifier 2018-07-24 16:58:59 +01:00
fsl_audmix.c ASoC: fsl_audmix: Fix kbuild failure 2019-03-27 12:31:24 +00:00
fsl_audmix.h ASoC: fsl: Add Audio Mixer CPU DAI driver 2019-03-26 14:07:35 +00:00
fsl_dma.c ASoC: fsl-dma: Switch to SPDX identifier 2019-04-08 13:51:01 +07:00
fsl_dma.h ASoC: fsl-dma: Switch to SPDX identifier 2019-04-08 13:51:01 +07:00
fsl_esai.c ASoC: fsl_esai: Support synchronous mode 2019-04-05 09:54:03 +07:00
fsl_esai.h ASoC: fsl_esai: Switch to SPDX identifier 2018-05-03 10:29:05 +09:00
fsl_micfil.c ASoC: fsl_micfil: Remove set but not used variable 'osr' 2019-05-02 10:46:02 +09:00
fsl_micfil.h ASoC: Add MICFIL SoC Digital Audio Interface driver. 2019-01-07 17:00:55 +00:00
fsl_sai.c ASoC: fsl_sai: Add missing return 0 in remove() 2019-04-26 10:50:29 +01:00
fsl_sai.h ASoC: fsl_sai: Switch to SPDX identifier 2018-05-03 10:28:59 +09:00
fsl_spdif.c ASoC: fsl_spdif: fix sysclk_df type 2019-02-18 17:42:09 +00:00
fsl_spdif.h ASoC: fsl_spdif: fix TXCLK_DF mask 2019-02-18 17:41:55 +00:00
fsl_ssi_dbg.c ASoC: fsl_ssi: Change to use DEFINE_SHOW_ATTRIBUTE macro 2018-11-07 14:59:37 +00:00
fsl_ssi.c ASoC: fsl: Fix of-node refcount unbalance in fsl_ssi_probe_from_dt() 2019-02-20 12:02:50 +00:00
fsl_ssi.h ASoC: fsl_ssi: Switch to SPDX identifier 2018-05-03 10:28:43 +09:00
fsl_utils.c ASoC: fsl_utils: fix a leaked reference by adding missing of_node_put 2019-04-02 12:58:07 +07:00
fsl_utils.h ASoC: fsl_utils: Switch to SPDX identifier 2018-07-24 16:59:03 +01:00
fsl-asoc-card.c ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe 2019-02-04 10:03:44 +01:00
imx-audmix.c ASoC: fsl: fix spelling mistake: "missign" -> "missing" 2019-04-01 15:05:03 +07:00
imx-audmux.c ASoC: imx-audmux: Switch to SPDX identifier 2019-04-08 13:51:19 +07:00
imx-audmux.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
imx-es8328.c ASoC: imx-es8328: Switch to SPDX identifier 2019-04-08 13:51:45 +07:00
imx-mc13783.c ASoC: imx-mc13783: Switch to SPDX identifier 2019-04-08 13:52:10 +07:00
imx-pcm-dma.c ASoC: imx-pcm-dma: simplify pcm_config 2017-03-08 10:58:42 +01:00
imx-pcm-fiq.c ASoC: imx-pcm-fiq: Switch to SPDX identifier 2019-04-08 13:52:35 +07:00
imx-pcm.h ASoC: imx-pcm: Switch to SPDX identifier 2019-04-08 13:47:44 +07:00
imx-sgtl5000.c SoC: imx-sgtl5000: add missing put_device() 2019-02-19 10:47:24 +00:00
imx-spdif.c ASoC: imx-spdif: Switch to SPDX identifier 2019-04-08 13:53:02 +07:00
imx-ssi.c ASoC: imx-ssi: Switch to SPDX identifier 2019-04-08 13:53:35 +07:00
imx-ssi.h ASoC: imx-ssi: Switch to SPDX identifier 2019-04-08 13:53:35 +07:00
Kconfig ASoC: imx: fix fiq dependencies 2019-05-02 10:46:04 +09:00
Makefile ASoC: fsl: Add Audio Mixer machine driver 2019-03-26 14:07:51 +00:00
mpc5200_dma.c ASoC: mpc5200_dma: Switch to SPDX identifier 2019-04-08 13:53:55 +07:00
mpc5200_dma.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc5200_psc_ac97.c ASoC: mpc5200_psc_ac97: Switch to SPDX identifier 2019-04-08 13:54:40 +07:00
mpc5200_psc_i2s.c ASoC: mpc5200_psc_i2s: Switch to SPDX identifier 2019-04-08 13:55:09 +07:00
mpc8610_hpcd.c ASoC: mpc8610_hpcd: Switch to SPDX identifier 2019-04-08 13:55:37 +07:00
mx27vis-aic32x4.c ASoC: mx27vis-aic32x4: Switch to SPDX identifier 2019-04-08 13:55:57 +07:00
p1022_ds.c ASoC: p1022_ds: Switch to SPDX identifier 2019-04-08 13:56:18 +07:00
p1022_rdk.c ASoC: p1022_rdk: Switch to SPDX identifier 2019-04-08 13:56:45 +07:00
pcm030-audio-fabric.c ASoC: pcm030-audio-fabric: Switch to SPDX identifier 2019-04-08 13:57:08 +07:00
phycore-ac97.c ASoC: phycore-ac97: Switch to SPDX identifier 2019-04-08 13:57:46 +07:00
wm1133-ev1.c ASoC: wm1133-ev1: Switch to SPDX identifier 2019-04-08 13:58:09 +07:00