1. Apr 29, 2020
  2. Apr 28, 2020
  3. Apr 27, 2020
  4. Apr 25, 2020
  5. Apr 24, 2020
  6. Apr 23, 2020
  7. Apr 22, 2020
    • Mark Brown's avatar
      ASoC: dmic: Allow GPIO operations to sleep · 5d7e0b15
      Mark Brown authored
      
      
      If there is a power GPIO provided we control it from DAPM context so there
      is no problem with a sleeping GPIO, use the _cansleep() version of the API
      to allow this.
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Reviewed-by: default avatarTzung-Bi Shih <tzungbi@google.com>
      Link: https://lore.kernel.org/r/20200422083550.50711-1-broonie@kernel.org
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      5d7e0b15
    • Jason Yan's avatar
      ASoC: soc-core: return true, false in snd_soc_volsw_is_stereo() · 4aa86e05
      Jason Yan authored
      
      
      Fix the following coccicheck warning:
      
      include/sound/soc.h:1271:9-10: WARNING: return of 0/1 in function
      'snd_soc_volsw_is_stereo' with return type bool
      
      Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
      Link: https://lore.kernel.org/r/20200422071805.48793-1-yanaijie@huawei.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      4aa86e05
    • Mark Brown's avatar
      ASoC: SOF: Fix build · d8e25a10
      Mark Brown authored
      The recent batch of SOF changes failed to build on some x86
      configurations including an allmodconfig, revert the commits:
      
      e150ef41  ASoC: SOF: Introduce extended manifest
      37109141  ASoC: SOF: ext_manifest: parse firmware version
      7c024b94  ASoC: SOF: ext_manifest: parse compiler version
      9e72f13e
      
        ASoC: SOF: ext_manifest: parse windows
      
      to fix this.
      
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      d8e25a10
    • Mark Brown's avatar
      Merge tag 'tegra-for-5.7-asoc' of... · 41d91ec3
      Mark Brown authored
      Merge tag 'tegra-for-5.7-asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into asoc-5.7
      
      ASoC: tegra: Fixes for v5.7-rc3
      
      This contains a couple of fixes that are needed to properly reconfigure
      the audio clocks on older Tegra devices.
      41d91ec3
    • Kai Vehmanen's avatar
      ASoC: intel/skl/hda - fix oops on systems without i915 audio codec · 5bf73b1b
      Kai Vehmanen authored
      Recent fix for jack detection caused a regression on systems with HDA
      audio codec but no HDMI/DP audio via i915 graphics, leading to a kernel
      oops at device probe. On these systems, HDA bus instance lookup fails,
      as the first ASoC runtime of the card is connected to a dummy codec
      (as no HDMI codec is present).
      
      Fixes: 3a24f135
      
       ("ASoC: intel/skl/hda - set autosuspend timeout for hda codecs")
      Signed-off-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
      Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
      Link: https://lore.kernel.org/r/20200420205431.13070-1-kai.vehmanen@linux.intel.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      5bf73b1b
    • Mark Brown's avatar
      Merge series "ASoC: Add new module driver for new ASRC" from Shengjiu Wang <shengjiu.wang@nxp.com>: · 787a46c0
      Mark Brown authored
      Add new module driver for new ASRC in i.MX8MN, several commits
      are added for new property fsl,asrc-format
      
      Shengjiu Wang (7):
        ASoC: fsl_asrc: rename asrc_priv to asrc
        ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format
        ASoC: fsl-asoc-card: Support new property fsl,asrc-format
        ASoC: fsl_asrc: Support new property fsl,asrc-format
        ASoC: fsl_asrc: Move common definition to fsl_asrc_common
        ASoC: dt-bindings: fsl_easrc: Add document for EASRC
        ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers
      
      changes in v9
      - use lowercase for dt example.
      
      changes in v8
      - change get_pair_priv_size to pair_priv_size variable
      
      changes in v7
      - updated according to Nicoin's comments.
      - add get_pair_priv_size to replace PAIR_PRIVATE_SIZE
      
      changes in v6
      - updated according to Nicoin's and Rob's comments.
      
      changes in v5
      - Add new property fsl,asrc-format, rather than change fsl,asrc-width
        to fsl,asrc-formt.
      - code change for above change.
      
      changes in v4
      - Add several commit for changing DT binding asrc-width to asrc-format
      - rename asrc_priv to asrc
      
      changes in v3
      - add new commit "ASoC: fsl_asrc: Change asrc_width to asrc_format"
      - modify binding doc to yaml format
      - remove fsl_easrc_dma.c, make fsl_asrc_dma.c useable for easrc.
      
      changes in v2
      - change i.MX815 to i.MX8MN
      - Add changes in Kconfig and Makefile
      
       .../devicetree/bindings/sound/fsl,asrc.txt    |    4 +
       .../devicetree/bindings/sound/fsl,easrc.yaml  |  101 +
       sound/soc/fsl/Kconfig                         |   11 +
       sound/soc/fsl/Makefile                        |    2 +
       sound/soc/fsl/fsl-asoc-card.c                 |   24 +-
       sound/soc/fsl/fsl_asrc.c                      |  305 +--
       sound/soc/fsl/fsl_asrc.h                      |   74 +-
       sound/soc/fsl/fsl_asrc_common.h               |  106 +
       sound/soc/fsl/fsl_asrc_dma.c                  |   54 +-
       sound/soc/fsl/fsl_easrc.c                     | 2114 +++++++++++++++++
       sound/soc/fsl/fsl_easrc.h                     |  651 +++++
       11 files changed, 3212 insertions(+), 234 deletions(-)
       create mode 100644 Documentation/devicetree/bindings/sound/fsl,easrc.yaml
       create mode 100644 sound/soc/fsl/fsl_asrc_common.h
       create mode 100644 sound/soc/fsl/fsl_easrc.c
       create mode 100644 sound/soc/fsl/fsl_easrc.h
      
      --
      2.21.0
      787a46c0
    • Mark Brown's avatar
      Merge series "ASoC: add snd_compress_ops and replace" from Kuninori Morimoto... · 8baa3b5a
      Mark Brown authored
      Merge series "ASoC: add snd_compress_ops and replace" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
      
      Hi Mark
      
      Current snd_soc_component_driver has compr_ops,
      but it is created for ALSA, not for ALSA SoC.
      This means it doesn't know the callback is for which component,
      thus, each callback needs to get component via lookup function.
      
      It is not good design, and will not work in the future,
      because ASoC can have multipul same name component which
      current lookup function can't handle.
      
      This v2 patch-set adds new snd_compress_ops and call
      callbacks with component.
      v1 is here
      
      Link: https://lore.kernel.org/alsa-devel/87blnqpuqp.wl-kuninori.morimoto.gx@renesas.com/
      
      Kuninori Morimoto (8):
        ASoC: soc-compress: add snd_compress_ops
        ASoC: codec: wm_adsp: use snd_compress_ops
        ASoC: uniphier: use snd_compress_ops
        ASoC: qcom: q6sp6: use snd_compress_ops
        ASoC: intel: atom: use snd_compress_ops
        ASoC: sof: use snd_compress_ops
        ASoC: sprd: use snd_compress_ops
        ASoC: soc-compress: remove snd_compr_ops
      
       include/sound/soc-component.h                 | 40 ++++++++-
       sound/soc/codecs/cs47l15.c                    |  9 +-
       sound/soc/codecs/cs47l24.c                    |  8 +-
       sound/soc/codecs/cs47l35.c                    |  9 +-
       sound/soc/codecs/cs47l85.c                    |  9 +-
       sound/soc/codecs/cs47l90.c                    |  9 +-
       sound/soc/codecs/cs47l92.c                    |  9 +-
       sound/soc/codecs/wm5102.c                     |  9 +-
       sound/soc/codecs/wm5110.c                     |  8 +-
       sound/soc/codecs/wm_adsp.c                    | 18 ++--
       sound/soc/codecs/wm_adsp.h                    | 18 ++--
       .../intel/atom/sst-mfld-platform-compress.c   | 43 +++++----
       sound/soc/intel/atom/sst-mfld-platform-pcm.c  |  2 +-
       sound/soc/intel/atom/sst-mfld-platform.h      |  2 +-
       sound/soc/qcom/qdsp6/q6asm-dai.c              | 51 ++++++-----
       sound/soc/soc-compress.c                      | 89 ++++++++++---------
       sound/soc/sof/compress.c                      |  7 +-
       sound/soc/sof/compress.h                      |  7 +-
       sound/soc/sof/pcm.c                           |  4 +-
       sound/soc/sof/sof-priv.h                      |  2 +-
       sound/soc/sprd/sprd-pcm-compress.c            | 49 +++++-----
       sound/soc/sprd/sprd-pcm-dma.c                 |  2 +-
       sound/soc/sprd/sprd-pcm-dma.h                 |  2 +-
       sound/soc/uniphier/aio-compress.c             | 45 ++++++----
       sound/soc/uniphier/aio-dma.c                  |  2 +-
       sound/soc/uniphier/aio.h                      |  2 +-
       26 files changed, 265 insertions(+), 190 deletions(-)
      
      --
      2.17.1
      8baa3b5a
    • Sven Van Asbroeck's avatar
      ASoC: Add initial ZL38060 driver · 52e8a94b
      Sven Van Asbroeck authored
      
      
      The ZL38060 is a "Connected Home Audio Processor" from Microsemi,
      which consists of a Digital Signal Processor (DSP), several Digital
      Audio Interfaces (DAIs), analog outputs, and a block of 14 GPIOs.
      
      This driver supports only a tiny subset of the chip's functionality
      and possible configurations:
      - bypass mode (whole dsp block is bypassed)
      - chip's I2S DAI routed directly to/from DACs and microphone
      - chip's internal clock is driven by a 12 MHz external crystal
      - chip's DAI connected to CPU is I2S, and bit + frame clock master
      - chip must be strapped for "host boot": in this mode, firmware will
        be provided by this driver.
      
      Signed-off-by: default avatarSven Van Asbroeck <TheSven73@gmail.com>
      Link: https://lore.kernel.org/r/20200417221341.31428-2-TheSven73@gmail.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      52e8a94b
    • Sven Van Asbroeck's avatar
      dt-bindings: sound: add Microsemi ZL38060 binding · 19f303ca
      Sven Van Asbroeck authored
      
      
      Add devicetree binding for the Microsemi ZL38060 Connected
      Home Audio Processor.
      
      Signed-off-by: default avatarSven Van Asbroeck <TheSven73@gmail.com>
      Link: https://lore.kernel.org/r/20200417221341.31428-1-TheSven73@gmail.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      19f303ca