1. 16 Mar, 2020 11 commits
  2. 13 Mar, 2020 26 commits
  3. 12 Mar, 2020 3 commits
    • Amadeusz Sławiński's avatar
      ASoC: topology: Perform component check upfront · c42464a4
      Amadeusz Sławiński authored
      Function soc_tplg_dbytes_create(), calls soc_tplg_init_kcontrol() to
      perform additional driver specific initialization. While
      soc_tplg_init_kcontrol() ensures that component is valid before invoking
      ops->control_load, there is no such check at the end of
      soc_tplg_dbytes_create() where list_add() is used.
      
      Also in quite a few places, there is reference of tplg->comp->dapm or
      tplg->comp->card, without any checks for tplg->comp.
      
      In consequence of the above this may lead to referencing NULL pointer.
      
      This allows for removal of now unnecessary checks.
      Signed-off-by: default avatarAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
      Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
      Link: https://lore.kernel.org/r/20200312122239.14489-1-amadeuszx.slawinski@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      c42464a4
    • Mark Brown's avatar
      Merge series "ASoC: SOF: preparatory patches" from Guennadi Liakhovetski... · 101247a3
      Mark Brown authored
      Merge series "ASoC: SOF: preparatory patches" from Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>:
      
      2 preparatory patches for the SOF virtualisation work. No functional
      changes, only some code refactoring and exporting of helper functions.
      
      v2: rebase, no changes otherwise.
      
      Thanks
      Guennadi
      
      Guennadi Liakhovetski (2):
        ASoC: (cosmetic) simplify dpcm_prune_paths()
        ASoC: export DPCM runtime update functions
      
       include/sound/soc-dpcm.h |  4 +--
       sound/soc/soc-dapm.c     |  8 +++---
       sound/soc/soc-pcm.c      | 68 +++++++++++++++++++++++++-----------------------
       3 files changed, 42 insertions(+), 38 deletions(-)
      
      --
      1.9.3
      101247a3
    • Rob Herring's avatar
      ASoC: dt-bindings: google, cros-ec-codec: Fix dtc warnings in example · b239d0c2
      Rob Herring authored
      Extra dtc warnings (roughly what W=1 enables) are now enabled by default
      when building the binding examples. These were fixed treewide in
      5.6-rc5, but the newly added google,cros-ec-codec schema adds some new
      warnings:
      
      Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:17.28-21.11:
      Warning (unit_address_vs_reg): /example-0/reserved_mem: node has a reg or ranges property, but no unit name
      Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:22.19-32.11:
      Warning (unit_address_vs_reg): /example-0/cros-ec@0: node has a unit name, but no reg property
      Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:26.37-31.15:
      Warning (unit_address_vs_reg): /example-0/cros-ec@0/ec-codec: node has a reg or ranges property, but no unit name
      
      Fixing the above, then results in:
      
      Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:26.13-23:
      Warning (reg_format): /example-0/cros-ec@0:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
      Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:27.37-32.15:
      Warning (unit_address_vs_reg): /example-0/cros-ec@0/ec-codec: node has a reg or ranges property, but no unit name
      
      Fixes: eadd54c7 ("dt-bindings: Convert the binding file google, cros-ec-codec.txt to yaml format.")
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Reviewed-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      Cc: alsa-devel@alsa-project.org
      Cc: Benson Leung <bleung@chromium.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Guenter Roeck <groeck@chromium.org>
      Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
      Cc: Cheng-Yi Chiang <cychiang@chromium.org>
      Link: https://lore.kernel.org/r/20200311205841.2710-1-robh@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      b239d0c2