1. 30 May, 2022 1 commit
    • Marios Levogiannis's avatar
      ALSA: hda/realtek - Fix microphone noise on ASUS TUF B550M-PLUS · 9bfa7b36
      Marios Levogiannis authored
      Set microphone pins 0x18 (rear) and 0x19 (front) to VREF_50 to fix the
      microphone noise on ASUS TUF B550M-PLUS which uses the ALCS1200A codec.
      The initial value was VREF_80.
      
      The same issue is also present on Windows using both the default Windows
      driver and all tested Realtek drivers before version 6.0.9049.1. Comparing
      Realtek driver 6.0.9049.1 (the first one without the microphone noise) to
      Realtek driver 6.0.9047.1 (the last one with the microphone noise)
      revealed that the fix is the result of setting pins 0x18 and 0x19 to
      VREF_50.
      
      This fix may also work for other boards that have been reported to have
      the same microphone issue and use the ALC1150 and ALCS1200A codecs, since
      these codecs are similar and the fix in the Realtek driver on Windows is
      common for both. However, it is currently enabled only for ASUS TUF
      B550M-PLUS as this is the only board that could be tested.
      Signed-off-by: default avatarMarios Levogiannis <marios.levogiannis@gmail.com>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20220530074131.12258-1-marios.levogiannis@gmail.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      9bfa7b36
  2. 27 May, 2022 2 commits
  3. 25 May, 2022 2 commits
  4. 24 May, 2022 2 commits
  5. 23 May, 2022 5 commits
  6. 21 May, 2022 4 commits
  7. 20 May, 2022 5 commits
    • Mark Brown's avatar
      ASoC: SOF: Introduce generic (in)firmware tracing infrastructure · e5cd20e0
      Mark Brown authored
      Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
      From the kernel point of view there are only few ops that needs to be exposed:
      
      Hi,
      
      SOF is using dma-trace (or dtrace) as a firmware tracing method, which is only
      supported with IPC3 and it is not applicable for IPC4.
      
      Currently the dtrace is 'open managed' regardless of IPC version (we do force
      disable it for IPC4, but the dtrace calls remain in place).
      
      From the kernel point of view there are only few ops that needs to be exposed
      by the firmware tracing support and everything else is IPC private, should not
      be known by the core.
      
      This series converts the current dma-trace as ipc3 specific firmware tracing
      sub-component and moves all private data out from generic code.
      
      Regards,
      Peter
      ---
      Peter Ujfalusi (8):
        ASoC: SOF: Introduce IPC independent ops for firmware tracing support
        ASoC: SOF: Rename dtrace_is_supported flag to fw_trace_is_supported
        ASoC: SOF: Clone the trace code to ipc3-dtrace as fw_tracing
          implementation
        ASoC: SOF: Switch to IPC generic firmware tracing
        ASoC: SOF: ipc3-dtrace: Move host ops wrappers from generic header to
          private
        ASoC: SOF: Modify the host trace_init parameter list to include dmab
        ASoC: SOF: Introduce opaque storage of private data for firmware
          tracing
        ASoC: SOF: ipc3-dtrace: Move dtrace related variables local from
          sof_dev
      
       sound/soc/sof/Makefile          |   1 +
       sound/soc/sof/amd/acp-trace.c   |   4 +-
       sound/soc/sof/amd/acp.h         |   2 +-
       sound/soc/sof/core.c            |  13 +-
       sound/soc/sof/debug.c           |   2 +-
       sound/soc/sof/intel/hda-dsp.c   |   2 +-
       sound/soc/sof/intel/hda-trace.c |   4 +-
       sound/soc/sof/intel/hda.h       |   2 +-
       sound/soc/sof/ipc.c             |   6 +
       sound/soc/sof/ipc3-dtrace.c     | 649 ++++++++++++++++++++++++++++++++
       sound/soc/sof/ipc3-priv.h       |  38 ++
       sound/soc/sof/ipc3.c            |   3 +-
       sound/soc/sof/ops.c             |   2 +-
       sound/soc/sof/ops.h             |  26 --
       sound/soc/sof/pm.c              |   8 +-
       sound/soc/sof/sof-priv.h        |  53 +--
       sound/soc/sof/trace.c           | 621 ++----------------------------
       17 files changed, 767 insertions(+), 669 deletions(-)
       create mode 100644 sound/soc/sof/ipc3-dtrace.c
      
      --
      2.36.1
      e5cd20e0
    • Alexey Khoroshilov's avatar
      ASoC: max98090: Move check for invalid values before casting in max98090_put_enab_tlv() · f7a34446
      Alexey Khoroshilov authored
      Validation of signed input should be done before casting to unsigned int.
      
      Found by Linux Verification Center (linuxtesting.org) with SVACE.
      Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
      Suggested-by: default avatarMark Brown <broonie@kernel.org>
      Fixes: 2fbe467b ("ASoC: max98090: Reject invalid values in custom control put()")
      Link: https://lore.kernel.org/r/1652999486-29653-1-git-send-email-khoroshilov@ispras.ruSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      f7a34446
    • Shuming Fan's avatar
      ASoC: rt1308-sdw: add the default value of register 0xc320 · affa9983
      Shuming Fan authored
      The driver missed the default value of register 0xc320.
      This patch adds that default value to avoid the error messages
      when the driver went to suspend mode already.
      
      BugLink: https://github.com/thesofproject/linux/issues/3651Signed-off-by: default avatarShuming Fan <shumingf@realtek.com>
      Link: https://lore.kernel.org/r/20220520090205.25857-1-shumingf@realtek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      affa9983
    • Mark Brown's avatar
      ASoC: SOF: mediatek: add debug dump · b4ce6dd4
      Mark Brown authored
      Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      Add the ability to generate debug dumps on MediaTek SOF implementations.
      b4ce6dd4
    • Mark Brown's avatar
      ASoC: remove two unnecessary gpiolib dependencies · bb94bb86
      Mark Brown authored
      Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      Remove two dependencies - issues reported by Intel kernel test bot.
      bb94bb86
  8. 19 May, 2022 19 commits