1. 07 Oct, 2021 11 commits
  2. 05 Oct, 2021 18 commits
  3. 04 Oct, 2021 7 commits
  4. 02 Oct, 2021 1 commit
  5. 01 Oct, 2021 3 commits
    • Mark Brown's avatar
      Merge series "Add support for on demand pipeline setup/destroy" from Peter... · 27547a39
      Mark Brown authored
      Merge series "Add support for on demand pipeline setup/destroy" from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
      
      Hi,
      
      The previous, v2 of this series was sent by Daniel Baluta:
      https://lore.kernel.org/alsa-devel/20210917143659.401102-1-daniel.baluta@oss.nxp.com/
      
      We have agreed that it might be better that someone from Intel is going to take it
      from here as we already have the infrastructure up to test and verify the
      dynamic pipelines support.
      
      Changes since v2 (sent by Daniel Baluta):
      - patch 10: Fix NULL point dereference in hda_dai_update_config()
      - I have kept Daniel's SoB for the series.
      
      Changes since v1:
      - Signed-off-by tag added by Daniel
      
      This series implements initial support for dynamic pipelines to setup/teardown
      pipeline as needed when a PCM is open/closed.
      
      Initially dynamic pipelines are only supported with single core setup which will
      be expanded with a follow-up series.
      
      Review with SOF community at
      https://github.com/thesofproject/linux/pull/2794
      
      The feature has been merged on 1st of April to sof-dev, all issues found since
      has been fixed and squashed to this upstream series.
      
      Regards,
      Peter
      ---
      Ranjani Sridharan (12):
        ASoC: topology: change the complete op in snd_soc_tplg_ops to return
          int
        ASoC: SOF: control: Add access field in struct snd_sof_control
        ASoC: SOF: topology: Add new token for dynamic pipeline
        ASoC: SOF: sof-audio: add helpers for widgets, kcontrols and dai
          config set up
        AsoC: dapm: export a couple of functions
        ASoC: SOF: Add new fields to snd_sof_route
        ASoC: SOF: restore kcontrols for widget during set up
        ASoC: SOF: Don't set up widgets during topology parsing
        ASoC: SOF: Introduce widget use_count
        ASoC: SOF: Intel: hda: make sure DAI widget is set up before IPC
        ASoC: SOF: Add support for dynamic pipelines
        ASoC: SOF: topology: Add kernel parameter for topology verification
      
       include/sound/soc-dpcm.h               |   1 +
       include/sound/soc-topology.h           |   2 +-
       include/uapi/sound/sof/tokens.h        |   1 +
       sound/soc/intel/skylake/skl-topology.c |   6 +-
       sound/soc/soc-dapm.c                   |   2 +
       sound/soc/soc-pcm.c                    |   4 +-
       sound/soc/soc-topology.c               |  10 +-
       sound/soc/sof/intel/hda-dai.c          | 174 +++---
       sound/soc/sof/intel/hda.c              | 177 ++++--
       sound/soc/sof/intel/hda.h              |   5 +
       sound/soc/sof/ipc.c                    |  22 +
       sound/soc/sof/pcm.c                    |  58 +-
       sound/soc/sof/pm.c                     |   4 +-
       sound/soc/sof/sof-audio.c              | 709 +++++++++++++++++++------
       sound/soc/sof/sof-audio.h              |  32 +-
       sound/soc/sof/sof-priv.h               |   1 +
       sound/soc/sof/topology.c               | 362 +++++--------
       17 files changed, 1032 insertions(+), 538 deletions(-)
      
      --
      2.33.0
      27547a39
    • Viorel Suman's avatar
      ASoC: fsl_spdif: implement bypass mode from in to out · 83bea088
      Viorel Suman authored
      Implement SPDIF bypass mode. It implies internal SoC
      routing of SPDIF input signal to SPDIF output signal. The
      test bed requires two boards: B1 configured in bypass mode,
      and B2 to feed B1 SPDIF RX port and read B1 SPDIF TX port:
         B2 TX -> B1 RX,
         B2 RX <- B1 TX.
      The test procedure:
       a) Boot both boards
       b) B2: start "arecord <spdifcard> -r 48kHz | aplay <local DAC>"
       c) B2: start "aplay <spdifcard> -r 48kHz <2ch 48kHz audio file>"
       d) B1: enable bypass mode:
      	amixer -cimxspdif cset numid=8,iface=PCM,name='Bypass Mode' on
       e) B2: check DAC audio, make sure the same sample rate is used at
      	steps b) and c), in example above the rate is 48kHz.
       f) B1: try to run "aplay" or "arecord" on imxspdif card while in
      	bypass mode - both must fail until bypass mode is disabled
       g) B1: disable bypass mode:
      	amixer -cimxspdif cset numid=8,iface=PCM,name='Bypass Mode' off
       h) B1: check the usual playback and capture on imxspdif card.
      	During this test try to set bypass mode - must not be allowed
      	while playback or capture is running.
      Signed-off-by: default avatarViorel Suman <viorel.suman@nxp.com>
      Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
      Link: https://lore.kernel.org/r/1632649760-1651-1-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      83bea088
    • Ranjani Sridharan's avatar
      ASoC: SOF: topology: Add kernel parameter for topology verification · c0e7969c
      Ranjani Sridharan authored
      Add a kernel debug flag to enable a one-shot topology
      verification for all pipelines including the dynamic
      ones. If the debug flag is set, all the topology
      component loading will be verified during the complete
      callback.
      Signed-off-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
      Reviewed-by: default avatarGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
      Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
      Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
      Link: https://lore.kernel.org/r/20210927120517.20505-13-peter.ujfalusi@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      c0e7969c