1. 19 Jan, 2021 3 commits
  2. 18 Jan, 2021 3 commits
  3. 15 Jan, 2021 7 commits
  4. 13 Jan, 2021 15 commits
  5. 12 Jan, 2021 8 commits
  6. 11 Jan, 2021 4 commits
    • Mark Brown's avatar
      Merge series "ASoC: rt5645: Enable internal mic and headset on ECS EF20" from... · 1675cdd3
      Mark Brown authored
      Merge series "ASoC: rt5645: Enable internal mic and headset on ECS EF20" from Chris Chiu <chiu@endlessos.org>:
      
      These patches are trying to fix the jack detection and internal
      microphone problems on ECS EF20 series laptops which are empowered
      by Intel Atom x5-Z8350 CPU (CherryTrail) with Realtek rt5645 audio
      codec.
      
      ---
        v2 -> v3:
      	Restore the accidentally removed terminator of the
      	dmi_platform_data[].
      
        v1 -> v2:
              Invoke callback() of the DMI quirk if it exists, because
              the dmi_first_match() doesn't.
      ---
      
      Chris Chiu (4):
        ASoC: rt5645: Introduce mapping for ACPI-defined GPIO
        ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series
        ASoC: rt5645: add inv_hp_det flag
        ASoC: rt5645: Enable internal microphone and JD on ECS EF20
      
       include/sound/rt5645.h    |  2 ++
       sound/soc/codecs/rt5645.c | 45 +++++++++++++++++++++++++++++++++++++++
       2 files changed, 47 insertions(+)
      
      --
      2.20.1
      1675cdd3
    • Mark Brown's avatar
      Merge series "Enable DMA mode on Intel Keem Bay platform" from Michael Sit Wei... · f3ddced1
      Mark Brown authored
      Merge series "Enable DMA mode on Intel Keem Bay platform" from Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>:
      
      v2: Update patch to align with latest kernel release.
      v1: Initial patch version, to enable DMA mode on Intel Keembay platform.
      
      Michael Sit Wei Hong (2):
        dt-bindings: sound: intel, keembay-i2s: Add info for device to use DMA
        ASoC: Intel: KMB: Enable DMA transfer mode
      
       .../bindings/sound/intel,keembay-i2s.yaml     |  14 ++
       sound/soc/intel/Kconfig                       |   2 +
       sound/soc/intel/keembay/kmb_platform.c        | 157 ++++++++++++++++--
       sound/soc/intel/keembay/kmb_platform.h        |   9 +
       4 files changed, 167 insertions(+), 15 deletions(-)
      
      --
      2.17.1
      f3ddced1
    • Dan Carpenter's avatar
      ASoC: soc-pcm: Fix an uninitialized error code · e91b65b3
      Dan Carpenter authored
      The error path here doesn't set "ret" so it returns uninitialized data
      instead of a negative error code.
      
      Fixes: 2c138284 ("ASoC: soc-pcm: disconnect BEs if the FE is not ready")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Link: https://lore.kernel.org/r/X/wfXQFxeMLvpO+1@mwandaSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      e91b65b3
    • Richard Fitzgerald's avatar
      ASoC: wm_adsp: Fix uninitialized variable warnings · fe9989fb
      Richard Fitzgerald authored
      wm_adsp_read_data_word() used if (ret) to check for an error from
      wm_adsp_read_raw_data_block(). While this is perfectly valid,
      wm_adsp_read_raw_data_block() itself uses if (ret < 0) and three
      calls to wm_adsp_read_data_word() also use if (ret < 0).
      
      This creates an error check chain like this:
      
        1st) if (ret < 0) return ret;
        2nd) if (ret) return ret;
        3rd) if (ret < 0) ...
      
      This can confuse the compiler into thinking that there are possible
      returns > 0 from the middle if() that are not handled by the final
      if(). If this was true it would lead to using uninitialized variables
      later in the outer function.
      
      Fix this by changing the test in wm_adsp_read_data_word() to be
      if (ret < 0).
      Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.cirrus.com>
      Link: https://lore.kernel.org/r/20210111133825.8758-1-rf@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      fe9989fb