1. 19 Jul, 2023 4 commits
    • Andreas Kemnade's avatar
      ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src · 82e7c8b9
      Andreas Kemnade authored
      Commit 349355ce ("ARM: OMAP2+: Drop legacy platform data for omap4 mcbsp")
      dropped prcm_fck for omap4, so the clk_src might not be available making the
      clk_get(src) fail. In such cases, rely on the devicetree to assign
      the correct parent.
      Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
      Link: https://lore.kernel.org/r/20230705190324.355282-2-andreas@kemnade.infoSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      82e7c8b9
    • Trevor Wu's avatar
      ASoC: mediatek: mt8188: DPCM used FE and BE merged parameters · 30019d22
      Trevor Wu authored
      To ensure that DPCM takes into account the backend hardware limitations
      when user space queries the hw_params of a device, we need to add
      dpcm_merged_format, dpcm_merged_chan, and dpcm_merged_rate to the FE
      dai_links.
      
      This patch includes only stereo FE dai_links, since multi-channel FEs
      may be reserved for specific purposes. Therefore, it may not be
      appropriate to consider BE conditions.
      Signed-off-by: default avatarTrevor Wu <trevor.wu@mediatek.com>
      Link: https://lore.kernel.org/r/20230706064123.29790-1-trevor.wu@mediatek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      30019d22
    • Arnd Bergmann's avatar
      ASoC: amd: acp: fix SND_SOC_AMD_ACP_PCI depdenencies · 4edc07fc
      Arnd Bergmann authored
      The new PM functions require code that is part of the snd-acp-legacy-common
      module:
      
      x86_64-linux-ld: sound/soc/amd/acp/acp-pci.o: in function `snd_acp_resume':
      acp-pci.c:(.text+0x23): undefined reference to `acp_init'
      x86_64-linux-ld: acp-pci.c:(.text+0x58): undefined reference to `acp_enable_interrupts'
      x86_64-linux-ld: sound/soc/amd/acp/acp-pci.o: in function `snd_acp_suspend':
      acp-pci.c:(.text+0x89): undefined reference to `acp_deinit'
      x86_64-linux-ld: sound/soc/amd/acp/acp-pci.o: in function `acp_pci_remove':
      acp-pci.c:(.text+0xec): undefined reference to `acp_deinit'
      x86_64-linux-ld: sound/soc/amd/acp/acp-pci.o: in function `acp_pci_probe':
      acp-pci.c:(.text+0x26b): undefined reference to `acp_init'
      
      Select that Kconfig symbol as is done for the other frontends.
      
      Fixes: 088a4098 ("ASoC: amd: acp: add pm ops support for acp pci driver")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20230719130846.633701-1-arnd@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      4edc07fc
    • Mark Brown's avatar
      ASoC: Improve coverage in default KUnit runs · 4619dd77
      Mark Brown authored
      Merge series from Mark Brown <broonie@kernel.org>:
      
      We have some KUnit tests for ASoC but they're not being run as much as
      they should be since ASoC isn't enabled in the configs used by default
      with KUnit and in the case of the topology tests there is no way to
      enable them without enabling drivers that use them.  This series
      provides a Kconfig option which KUnit can use directly rather than worry
      about drivers.
      
      Further, since KUnit is typically run in UML but ALSA prevents build
      with UML we need to remove that Kconfig conflict.  As far as I can tell
      the motiviation for this is that many ALSA drivers use iomem APIs which
      are not available under UML and it's more trouble than it's worth to go
      through and add per driver dependencies.  In order to avoid these issues
      we also provide stubs for these APIs so there are no build time issues
      if a driver relies on iomem but does not depend on it.  With these stubs
      I am able to build all the sound drivers available in a UML defconfig
      (UML allmodconfig appears to have substantial other issues in a quick
      test).
      
      With this series I am able to run the topology KUnit tests as part of a
      kunit --alltests run.
      4619dd77
  2. 18 Jul, 2023 36 commits