1. 03 Feb, 2022 2 commits
  2. 31 Jan, 2022 1 commit
    • Randy Dunlap's avatar
      ASoC: max98927: add missing header file · bb45f689
      Randy Dunlap authored
      Add a header file that provides the missing function prototypes
      and macro to fix these build errors (seen on arch/alpha/):
      
      ../sound/soc/codecs/max98927.c: In function 'max98927_i2c_probe':
      ../sound/soc/codecs/max98927.c:902:19: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration]
        902 |                 = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_HIGH);
            |                   ^~~~~~~~~~~~~~~~~~~~~~~
      ../sound/soc/codecs/max98927.c:902:63: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'?
        902 |                 = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_HIGH);
            |                                                               ^~~~~~~~~~~~~~
      ../sound/soc/codecs/max98927.c:909:17: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
        909 |                 gpiod_set_value_cansleep(max98927->reset_gpio, 0);
            |                 ^~~~~~~~~~~~~~~~~~~~~~~~
      
      Fixes: 4d67dc19 ("ASoC: max98927: Handle reset gpio when probing i2c")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Cc: Alejandro Tafalla <atafalla@dnyon.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Takashi Iwai <tiwai@suse.com>
      Cc: alsa-devel@alsa-project.org
      Link: https://lore.kernel.org/r/20220129080259.19964-1-rdunlap@infradead.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      bb45f689
  3. 28 Jan, 2022 21 commits
  4. 25 Jan, 2022 12 commits
    • Lad Prabhakar's avatar
      ASoC: sh: rz-ssi: Remove duplicate macros · acfa1e2c
      Lad Prabhakar authored
      Remove SSICR_MST and SSICR_CKDV macros which are defined more than once.
      Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
      Reviewed-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
      Link: https://lore.kernel.org/r/20220125132457.14984-4-prabhakar.mahadev-lad.rj@bp.renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      acfa1e2c
    • Lad Prabhakar's avatar
      ASoC: sh: rz-ssi: Add rz_ssi_set_substream() helper function · 962ff7ec
      Lad Prabhakar authored
      A copy of substream pointer is stored in priv structure during
      rz_ssi_dai_trigger() callback ie in SNDRV_PCM_TRIGGER_START case
      and the pointer is assigned to NULL in case of SNDRV_PCM_TRIGGER_STOP.
      
      The driver used the locks only in rz_ssi_stream_is_valid() and assigned
      the local substream pointer to NULL in rz_ssi_dai_trigger() callback but
      never locked it while making a local copy.
      
      This patch adds the rz_ssi_set_substream() helper function to set the
      substream pointer with locks acquired and replaces the instances of
      setting the local substream pointer with the rz_ssi_set_substream()
      function.
      Reported-by: default avatarPavel Machek <pavel@denx.de>
      Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
      Reviewed-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
      Link: https://lore.kernel.org/r/20220125132457.14984-3-prabhakar.mahadev-lad.rj@bp.renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      962ff7ec
    • Lad Prabhakar's avatar
      ASoC: sh: rz-ssi: Use a do-while loop in rz_ssi_pio_recv() · 7276d3f3
      Lad Prabhakar authored
      Use a do-while loop while reading the samples from RX FIFO. The "done"
      flag was only changed as an outcome of the last if-statement (last step)
      in this entire procedure. This patch moves the condition from if
      statement to while and drops the "done" variable for readability.
      
      While at it, also drop the unneeded parentheses around runtime->dma_area.
      Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
      Link: https://lore.kernel.org/r/20220125132457.14984-2-prabhakar.mahadev-lad.rj@bp.renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      7276d3f3
    • Mark Brown's avatar
      ASoC: Intel: sof_rt5682: add two derivative options · 9ebb50df
      Mark Brown authored
      Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      Add support for platforms without amplifier (headset codec only) and
      without Intel graphics.
      9ebb50df
    • Mark Brown's avatar
      ASoC: add support for TAS5805M digital amplifier · 2e5a74c6
      Mark Brown authored
      Merge series from Daniel Beer <daniel.beer@igorinstitute.com>:
      
      This pair of patches implements support for the TAS5805M class D audio
      amplifier. This driver, and the example configuration in the device-tree
      file, were originally based on a 4.19 series kernel and have been
      modified slightly from the tested version.
      2e5a74c6
    • Mark Brown's avatar
      ASOC: cs42l42: Add support for system suspend · 8f1a27bb
      Mark Brown authored
      Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:
      
      Add system suspend and resume handlers so that the cs42l42 is cleanly
      put into power-off state during system suspend and the registers are
      restored in resume.
      8f1a27bb
    • Mark Brown's avatar
      ASoC: SOF: Intel: improve SoundWire _ADR handling · a567abf5
      Mark Brown authored
      Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      Make sure the device version is taken into account when selecting a
      machine driver, in addition to device manufacturer and part_id, and
      simplify code with a macro.
      a567abf5
    • Mark Brown's avatar
      ASoC: fsl-asoc-card: Add optional dt property for setting mclk-id · e6ec5a39
      Mark Brown authored
      Merge series from Ariel D'Alessandro <ariel.dalessandro@collabora.com>:
      
      Sound cards may allow using different main clock inputs. In the generic
      fsl-asoc-card driver, these values are hardcoded for each specific card
      configuration.  Let's make it more flexible, allowing setting mclk-id
      from the device-tree node.
      e6ec5a39
    • Mark Brown's avatar
      ASoC: sh: rz-ssi: Code cleanup and fixes · d2fe7fc5
      Mark Brown authored
      Merge series from Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>:
      
      Hi All,
      
      This patch series does code cleanup and fixes to the rz-ssi driver.
      
      Cheers,
      Prabhakar
      
      Lad Prabhakar (5):
        ASoC: sh: rz-ssi: Drop calling rz_ssi_pio_recv() recursively
        ASoC: sh: rz-ssi: Make the data structures available before
          registering the handlers
        ASoC: sh: rz-ssi: Drop ssi parameter from rz_ssi_stream_init()
        ASoC: sh: rz-ssi: Make return type of rz_ssi_stream_is_valid() to bool
        ASoC: sh: rz-ssi: Add functions to get/set substream pointer
      
       sound/soc/sh/rz-ssi.c | 147 ++++++++++++++++++++++++------------------
       1 file changed, 86 insertions(+), 61 deletions(-)
      
      --
      2.17.1
      d2fe7fc5
    • Mark Brown's avatar
      ASoC: Xilinx fixes · 8bcd0f12
      Mark Brown authored
      Merge series from Robert Hancock <robert.hancock@calian.com>:
      
      There are drivers in mainline for the Xilinx Audio Formatter and Xilinx
      I2S IP cores. However, because of a few issues, these were only really
      usable with Xilinx's xlnx_pl_snd_card top-level driver, which is not in
      mainline (and not suitable for mainline).
      
      The fixes in this patchset, for the simple-card layer as well as the
      Xilinx drivers, now allow these drivers to be properly used with
      simple-card without any out-of-tree support code.
      8bcd0f12
    • Mark Brown's avatar
      ASoC: SOF: Intel: don't download firmware at each resume · 01f5060e
      Mark Brown authored
      Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      After the first firmware boot, the firmware is capable of
      saving/restoring its context to/from IMR (Isolated Memory Region, set
      aside by BIOS on startup). This capability improves the resume speed.
      
      Due to an unexplained issue on Up2 boards, this capability is disabled
      on ApolloLake.
      
      For backwards compatibility, the regular boot flow is used with older
      firmware. For added peace of mind, a kernel module parameter is
      provided to force the regular boot flow - this shouldn't be necessary
      since we've been testing these patches for 6+ months.
      01f5060e
    • Mark Brown's avatar
      ASoC: topology: Fixes · cef982dc
      Mark Brown authored
      Merge series from Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>:
      
      Following series performs few cleanups in topology code.
      
      First patch reduces number of prints we get from failure.
      Second allos TLV controls to be either read or write which should be
      possible as evidenced by further code in function.
      Last one cleanups after refactoring of memory handling.
      
      v2:
       - Add missing Fixes tag on second patch
       - Add Reviewed-by tag from Pierre
      
      Amadeusz Sławiński (3):
        ASoC: topology: Remove superfluous error prints
        ASoC: topology: Allow TLV control to be either read or write
        ASoC: topology: Optimize soc_tplg_dapm_graph_elems_load behavior
      
       sound/soc/soc-topology.c | 103 ++++++++++-----------------------------
       1 file changed, 27 insertions(+), 76 deletions(-)
      
      --
      2.25.1
      cef982dc
  5. 24 Jan, 2022 4 commits