1. 08 Nov, 2017 2 commits
    • Arnd Bergmann's avatar
      ASoC: Intel: improve SND_SOC_INTEL_MACH dependencies · 960115b8
      Arnd Bergmann authored
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
      Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      960115b8
    • Arnd Bergmann's avatar
      ASoC: Intel: improve DMADEVICES dependency · 326c4aa2
      Arnd Bergmann authored
      As pointed out by Pierre-Louis Bossart, the dependency I added
      was broader than necessary, only Baytrail and Haswell/Broadwell
      actually need it, the others don't.
      
      At the same time, we have individual entries for the codecs
      that all have the 'select' statement but now don't need it
      any more.
      
      Fixes: f7a88db6 ("ASoC: Intel: fix Kconfig dependencies")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      326c4aa2
  2. 02 Nov, 2017 2 commits
    • Arnd Bergmann's avatar
      ASoC: intel: include linux/module.h as needed · adebc532
      Arnd Bergmann authored
      The MODULE_DESCRIPTION() macro is only available when including
      the linux/module.h header. Apparently this is included indirectly
      from sst-firmware.c in some configurations, but not in others:
      
      sound/soc/intel/common/sst-firmware.c:1278:20: error: expected declaration specifiers or '...' before string constant
       MODULE_DESCRIPTION("Intel SST Firmware Loader");
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/soc/intel/common/sst-firmware.c:1279:16: error: expected declaration specifiers or '...' before string constant
      
      This adds the missing include line.
      
      Fixes: a395bdd6 ("ASoC: intel: Fix sst-dsp dependency on dw stuff")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      adebc532
    • Arnd Bergmann's avatar
      ASoC: Intel: fix Kconfig dependencies · f7a88db6
      Arnd Bergmann authored
      I ran into multiple problems during randconfig builds of the
      recently changed Kconfig logic for Intel ASoC drivers:
      
      - Building without DMADEVICES doesn't work in general
      - With that dependency added, we can relax the 'depends
        on X86' again and allow compile-testing, except for
        SND_SST_ATOM_HIFI2_PLATFORM, which depends on X86
        for asm/platform_sst_audio.h
      - Skylake requires SND_SOC_INTEL_SST_ACPI, so we
        have to depend on ACPI in turn
      - Haswell needs SND_DMA_SGBUF for snd_sgbuf_aligned_pages()
      
      With the new set of dependencies, I no longer get any build
      failures.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      f7a88db6
  3. 31 Oct, 2017 2 commits
  4. 26 Oct, 2017 2 commits
  5. 25 Oct, 2017 1 commit
  6. 23 Oct, 2017 1 commit
  7. 21 Oct, 2017 10 commits
  8. 18 Oct, 2017 10 commits
  9. 13 Oct, 2017 3 commits
  10. 09 Oct, 2017 2 commits
  11. 27 Sep, 2017 1 commit
  12. 25 Sep, 2017 2 commits
  13. 20 Sep, 2017 1 commit
  14. 19 Sep, 2017 1 commit