1. 14 Apr, 2024 5 commits
  2. 11 Apr, 2024 2 commits
  3. 10 Apr, 2024 2 commits
  4. 09 Apr, 2024 21 commits
  5. 08 Apr, 2024 5 commits
  6. 05 Apr, 2024 5 commits
    • Mark Brown's avatar
      ASoC: SOF: Intel: improve and extend HDaudio-based · f3806fe5
      Mark Brown authored
      Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      For LunarLake, the SoundWire in-band wake detection is reported with
      the HDAudio WAKE_EN/WAKE_STS registers. In the existing code, these
      registers are only handled for HDaudio codecs. Now the same registers
      have to be handled with care as shared resources.
      
      The in-band wake detection mainly used for jack detection. Without
      this patchset, the SoundWire headset codecs signal an event that would
      be ignored and not reported.
      f3806fe5
    • Mark Brown's avatar
      ASoC: Intel: avs: Fixes and cleanups for 6.10 · 3018fdf7
      Mark Brown authored
      Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:
      
      Set of changes targeting the avs-driver only. No new features, patchset
      either fixes or fortifies existing code.
      
      Patchset starts off with a fix for debugbility on ICL+ platforms which I
      have forgotten to fixup when providing support for these initially.
      The next two address copier module initialization, most importantly,
      silence the gcc 'field-spanning write' false-positive.
      
      The following four:
      6/13 ASoC: Intel: avs: Replace risky functions with safer variants
      7/13 ASoC: Intel: avs: Fix potential integer overflow
      8/13 ASoC: Intel: avs: Test result of avs_get_module_entry()
      9/13 ASoC: Intel: avs: Remove dead code
      
      address problems found out by Coverity static analysis tool.
      
      The last two worth mentioning are: recommendation from the firmware team
      to wake subsystem from D0ix when starting any pipeline -and- shielding
      against invalid period/buffer sizes. Audio format shall be taken into
      consideration when calculating either of these.
      
      Amadeusz Sławiński (2):
        ASoC: Intel: avs: Restore stream decoupling on prepare
        ASoC: Intel: avs: Add assert_static to guarantee ABI sizes
      
      Cezary Rojewski (11):
        ASoC: Intel: avs: Fix debug-slot offset calculation
        ASoC: Intel: avs: Silence false-positive memcpy() warnings
        ASoC: Intel: avs: Fix config_length for config-less copiers
        ASoC: Intel: avs: Fix ASRC module initialization
        ASoC: Intel: avs: Replace risky functions with safer variants
        ASoC: Intel: avs: Fix potential integer overflow
        ASoC: Intel: avs: Test result of avs_get_module_entry()
        ASoC: Intel: avs: Remove dead code
        ASoC: Intel: avs: Wake from D0ix when starting streaming
        ASoC: Intel: avs: Init debugfs before booting firmware
        ASoC: Intel: avs: Rule invalid buffer and period sizes out
      
       sound/soc/intel/avs/avs.h      |  1 +
       sound/soc/intel/avs/cldma.c    |  2 +-
       sound/soc/intel/avs/core.c     |  4 +--
       sound/soc/intel/avs/icl.c      | 12 ++++++---
       sound/soc/intel/avs/loader.c   |  6 +++--
       sound/soc/intel/avs/messages.h | 47 ++++++++++++++++++++++++++++++++--
       sound/soc/intel/avs/path.c     | 13 ++++------
       sound/soc/intel/avs/pcm.c      | 34 +++++++++++++++++++++++-
       sound/soc/intel/avs/probes.c   | 14 ++++++----
       9 files changed, 109 insertions(+), 24 deletions(-)
      
      --
      2.25.1
      3018fdf7
    • Cezary Rojewski's avatar
      ASoC: Intel: avs: Rule invalid buffer and period sizes out · 9a385993
      Cezary Rojewski authored
      While HDAudio controller supports buffer packets up to 128 bytes low,
      audio format shall be taken into consideration when calculating buffer
      and period sizes to avoid undesired xruns.
      
      As *_size in ALSA terms means frames (channels times bit-depth-bytes),
      hw_rules can calculate minimal buffer and period sizes solely from
      sample rate and the number of milliseconds commonly used on the
      AudioDSP firmware side.
      Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
      Link: https://msgid.link/r/20240405090929.1184068-14-cezary.rojewski@intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      9a385993
    • Amadeusz Sławiński's avatar
      ASoC: Intel: avs: Add assert_static to guarantee ABI sizes · c2b10acb
      Amadeusz Sławiński authored
      In order to make sure that IPC interface is stable use assert_static to
      check union and struct sizes that describe communication interface.
      Signed-off-by: default avatarAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
      Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
      Link: https://msgid.link/r/20240405090929.1184068-13-cezary.rojewski@intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      c2b10acb
    • Cezary Rojewski's avatar
      ASoC: Intel: avs: Init debugfs before booting firmware · ff0aefe2
      Cezary Rojewski authored
      When bringing up setups it's vital to have access to debug functionality
      even if firmware boot fails. As order of probe()ing operations is
      changed, update remove() procedure accordingly.
      Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
      Link: https://msgid.link/r/20240405090929.1184068-12-cezary.rojewski@intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      ff0aefe2