Skip to content
  1. Feb 10, 2022
  2. Feb 09, 2022
    • Jayesh Choudhary's avatar
      ASoC: dt-bindings: davinci-mcasp: convert McASP bindings to yaml schema · 8be90641
      Jayesh Choudhary authored
      
      
      Convert the bindings for McASP controllers for TI SoCs from txt
      to YAML schema.
      
      Adds additional properties 'clocks', 'clock-names', 'power-domains',
      '#sound-dai-cells' and 'port' which were missing from the txt file.
      Removes properties 'sram-size-playback' and 'sram-size-capture'
      since they are not used.
      Adds 'dmas' and 'dma-names' in the example which were missing from
      the txt file.
      Changes 'interrupts' and 'interrupt-names' from optional to
      required properties.
      Changes 'op-modes', 'serial-dir' to optional properties as they are
      not needed if the McASP is used only as GPIO.
      Changes 'tdm-slots' to required property only for I2S operation mode.
      
      Adds the yaml file in the 'MAINTAINERS' under the heading 'TEXAS
      INSTRUMENTS ASoC DRIVERS'
      
      Signed-off-by: default avatarJayesh Choudhary <j-choudhary@ti.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@gmail.com>
      Link: https://lore.kernel.org/r/20220209063008.2928-1-j-choudhary@ti.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      8be90641
    • Pierre-Louis Bossart's avatar
      ASoC: SOF: Intel: hdac_ext_stream: consistent prefixes for variables/members · 7d88b960
      Pierre-Louis Bossart authored
      
      
      The existing code maximizes confusion by using 'stream' and 'hstream'
      variables of different types, e.g:
      
      struct hdac_stream *stream;
      struct hdac_ext_stream *stream;
      struct hdac_stream *hstream;
      struct hdac_ext_stream *hstream;
      
      This confusion is partly inherited from legacy code but SOF
      contributors added their own creative spin, e.g.
      
      struct hdac_ext_stream *link_dev;
      struct hdac_ext_stream *dsp_stream;
      struct hdac_ext_stream hda_stream;
      
      and my personal favorite:
      
      stream = &hda_stream->hda_stream;
      
      This patch suggests a consistent naming across all Intel code related
      to HDAudio stream management. The convention is - by hierarchical
      order:
      
      struct sof_intel_hda_stream *hda_stream;
      struct hdac_ext_stream *hext_stream;
      struct hdac_stream *hstream;
      
      No functionality change - just renaming of variables/members.
      
      Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
      Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
      Link: https://lore.kernel.org/r/20220209063104.9971-1-peter.ujfalusi@linux.intel.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      7d88b960
    • Mark Brown's avatar
      ASoC: SOF: dma-trace: Change trace_init() ops parameter list · 960a8904
      Mark Brown authored
      Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
      
      Hi,
      
      the DMA trace implementation on AMD platform assumes that the stream_tag pointer
      is pointing the stream_tag member of struct sof_ipc_dma_trace_params_ext, which
      is true at the moment, but it can not be guarantied and a change in the dtrace
      core can cause out of bound accesses for AMD.
      
      For this reason, change the API to pass the struct itself which will remove the
      assumption and makes it clear from both sides what is expected to be sent via the
      parameter list.
      
      This opens up a window to clean up the intel and AMD implementation at the same
      time.
      
      Regards,
      Peter
      ---
      
      Peter Ujfalusi (2):
        ASoC: SOF: intel: hda-trace: Pass the dma buffer pointer to
          hda_dsp_trace_prepare
        ASoC: SOF: dma-trace: Pass pointer to params_ext struct in
          trace_init()
      
       sound/soc/sof/amd/acp-trace.c   | 38 ++++++++-------------------------
       sound/soc/sof/amd/acp.h         |  3 ++-
       sound/soc/sof/intel/hda-trace.c | 17 ++++++++-------
       sound/soc/sof/intel/hda.h       |  3 ++-
       sound/soc/sof/ops.h             |  4 ++--
       sound/soc/sof/sof-priv.h        |  2 +-
       sound/soc/sof/trace.c           |  2 +-
       7 files changed, 26 insertions(+), 43 deletions(-)
      
      --
      2.35.0
      960a8904
    • Mark Brown's avatar
      ASoC: Fix gpiolib dependencies · dcc2c012
      Mark Brown authored
      Merge series from Mark Brown <broonie@kernel.org>:
      
      This series removes a bunch of spurious selects of gpiolib that were
      causing noise in randconfig build tests.
      
      Mark Brown (6):
        ASoC: dmic: Remove spurious gpiolib select
        ASoC: rt9120: Remove spurious gpiolib select
        ASoC: simple-amplifier: Remove spurious gpiolib select
        ASoC: max9759: Remove spurious gpiolib select
        ASoC: zl38060: Remove spurious gpiolib select
        ASoC: simple-mux: Depend on gpiolib rather than selecting it
      
       sound/soc/codecs/Kconfig | 8 ++------
       1 file changed, 2 insertions(+), 6 deletions(-)
      
      base-commit: e783362e
      --
      2.30.2
      dcc2c012
  3. Feb 08, 2022
  4. Feb 03, 2022
  5. Jan 31, 2022
    • 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.org
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      bb45f689
  6. Jan 29, 2022
    • Mark Brown's avatar
      ASOC: amd: acp: Add generic PDM and PCI driver support for ACP · 9a19aba2
      Mark Brown authored
      Merge series from Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>:
      
      These changes add PDM and PCI drivers for AMD ACP hardware.
      9a19aba2
    • Mark Brown's avatar
      SoC: SOF: ipc: Optimizations for tx message · e0c8a67f
      Mark Brown authored
      Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
      
      The series will drop the internal use of 'header' parameter which is always
      set to hdr->cmd.
      
      The other simplification is to use the provided message directly as it is
      guarantied to be valid throughout the message sending and we can save memory
      by not allocating a temporary buffer, also saving on needles memcpy()
      operations.
      e0c8a67f
    • Mark Brown's avatar
      (Re)enable DP/HDMI audio for RK3399 Gru · a3a2a21a
      Mark Brown authored
      Merge series from Brian Norris <briannorris@chromium.org>:
      
      This series fixes DP/HDMI audio for RK3399 Gru systems.
      
      First, there was a regression with the switch to SPDIF. Patch 1 can be
      taken separately as a regression fix if desired. But it's not quite so
      useful (at least on Chrome OS systems) without the second part.
      
      Second, jack detection was never upstreamed, because the hdmi-codec
      dependencies were still being worked out when this platform was first
      supported.
      
      base-commit: e783362e
      a3a2a21a
    • Uwe Kleine-König's avatar
      ASoC: cs42l51: Improve error handling in cs42l51_remove() · 73d4c313
      Uwe Kleine-König authored
      
      
      When disabling a regulator fails while the device goes away, there is
      little we can do and the machine is probably in enough trouble that any
      action we'd want to take fails anyhow.
      
      The return value used to be passed on in cs42l51_i2c_remove() (i.e. the
      i2c device remove callback). But the i2c core ignores the error code
      (apart from emitting a generic warning) and removes the device anyhow.
      
      So return 0 unconditionally in cs42l51_i2c_remove(), and instead of
      returning the error code to the upper layer emit a more helpful warning
      message. After that nobody is interested any more in the actual error
      code, so let cs42l51_remove() return void.
      
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Link: https://lore.kernel.org/r/20220110071832.306185-1-u.kleine-koenig@pengutronix.de
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      73d4c313
  7. Jan 28, 2022