linux/sound/soc/intel/boards
Arnd Bergmann 960115b842
ASoC: Intel: improve SND_SOC_INTEL_MACH dependencies
I ran into a build error with CONFIG_SND_SOC_INTEL_COMMON=m
and SND_SOC_INTEL_MACH=y:

ERROR: "snd_soc_acpi_intel_broadwell_machines" [sound/soc/intel/common/snd-soc-sst-acpi.ko] undefined!
ERROR: "snd_soc_acpi_intel_haswell_machines" [sound/soc/intel/common/snd-soc-sst-acpi.ko] undefined!
ERROR: "snd_soc_acpi_intel_cherrytrail_machines" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!
ERROR: "snd_soc_acpi_intel_baytrail_machines" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!

The problem here is that the sound/soc/intel/common/ directory
is then entered only for building modules, but the sst-acpi.o
never gets built since it depends on a built-in Kconfig symbol.

That configuration obviously makes no sense since all options
below SND_SOC_INTEL_MACH also depend on something else that
in turn depends on CONFIG_SND_SOC_INTEL_COMMON.

Adding a SND_SOC_INTEL_SST_TOPLEVEL dependency to SND_SOC_INTEL_MACH
solves the build error. I notice we can also consolidate the
'depends on SND_SOC_INTEL_MACH' lines by using an 'if' block to
simplify it further and make sure the configuration stays sane.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-11-08 18:25:00 +00:00
..
bdw-rt5677.c ASoC: Intel: bdw-rt5677: Switch to devm_acpi_dev_add_driver_gpios() 2017-06-16 17:53:25 +01:00
broadwell.c ASoC: Call snd_soc_set_dmi_name() unconditionally 2017-04-24 18:47:17 +01:00
bxt_da7219_max98357a.c ASoC: Intel: boards: use helper to get codec_dai 2017-10-18 12:30:22 +01:00
bxt_rt298.c ASoC: Intel: board: Fix missing sentinel for bxt_board_id 2017-07-26 13:03:32 +01:00
byt-max98090.c ASoC: intel: Remove superfluous snd_soc_jack_free_gpios() call 2017-08-22 13:38:47 +01:00
byt-rt5640.c ASoC: Set missing card owner field 2015-08-21 09:07:19 -07:00
bytcht_da7213.c ASoC: move ACPI common code out of Intel/sst tree 2017-10-21 11:21:09 +01:00
bytcht_es8316.c ASoC: move ACPI common code out of Intel/sst tree 2017-10-21 11:21:09 +01:00
bytcht_nocodec.c ASoC: Intel: boards: remove hard-coded compressed dailinks 2017-10-18 12:30:29 +01:00
bytcr_rt5640.c ASoC: move ACPI common code out of Intel/sst tree 2017-10-21 11:21:09 +01:00
bytcr_rt5651.c ASoC: intel: byt: Enable IN2 map quirk for a KIANO laptop 2017-10-26 16:15:55 +02:00
cht_bsw_max98090_ti.c ASoC: Intel: boards: remove hard-coded compressed dailinks 2017-10-18 12:30:29 +01:00
cht_bsw_rt5645.c ASoC: move ACPI common code out of Intel/sst tree 2017-10-21 11:21:09 +01:00
cht_bsw_rt5672.c ASoC: move ACPI common code out of Intel/sst tree 2017-10-21 11:21:09 +01:00
haswell.c ASoC: constify snd_soc_ops structures 2016-10-24 18:34:55 +01:00
kbl_rt5663_max98927.c ASoC: Intel: Fix setting of SSP parameters in Kabylake machine driver 2017-10-31 11:08:35 +00:00
kbl_rt5663_rt5514_max98927.c ASoC: Intel: Kbl: Add Playback DAI for fixup 2017-09-27 10:04:43 -07:00
Kconfig ASoC: Intel: improve SND_SOC_INTEL_MACH dependencies 2017-11-08 18:25:00 +00:00
Makefile ASoC: Intel: Add Kabylake machine driver for RT5514, RT5663 and MAX98927 2017-06-14 19:10:37 +01:00
mfld_machine.c ASoC: Medfield: Delete an error message for a failed memory allocation in snd_mfld_mc_probe() 2017-08-16 13:00:55 +01:00
skl_nau88l25_max98357a.c ASoC: Intel: boards: use helper to get codec_dai 2017-10-18 12:30:22 +01:00
skl_nau88l25_ssm4567.c ASoC: Intel: boards: use helper to get codec_dai 2017-10-18 12:30:22 +01:00
skl_rt286.c ASoC: skl_rt286: Add deepbuffer dai link 2017-06-19 16:33:17 +01:00