• Pierre-Louis Bossart's avatar
    ASoC: Intel: atom: fix ACPI/PCI Kconfig · 90619eb1
    Pierre-Louis Bossart authored
    The split between ACPI and PCI platforms generated issues with randconfig:
    
    with SND_SST_ATOM_HIFI2_PLATFORM_PCI=y and
    SND_SST_ATOM_HIFI2_PLATFORM=m, we get this module link failure:
    
    ERROR: "sst_context_init"
    [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!
    
    ERROR: "sst_context_cleanup"
    [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!
    
    ERROR: "sst_alloc_drv_context"
    [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!
    
    ERROR: "intel_sst_pm" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko]
    undefined!
    
    ERROR: "sst_configure_runtime_pm"
    [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!
    
    To keep things simple, let's expose two configs for
    SND_SST_ATOM_HIFI2_PLATFORM_PCI and SND_SST_ATOM_HIFI2_PLATFORM_ACPI,
    which select a common SND_SST_ATOM_HIFI2_PLATFORM option. To avoid
    breaking existing solutions with the semantics change,
    SND_SST_ATOM_HIFI2_PLATFORM_ACPI uses "default ACPI" so that "make
    oldnoconfig" and "make olddefconfig" still work as expected.
    
    Also remove mentions of Medfield while we are at it since it was
    removed recently.
    Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: 4772c16e ("ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI
    dependencies")
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
    Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    90619eb1
Kconfig 3.88 KB