1. Feb 09, 2019
  2. Feb 08, 2019
  3. Feb 07, 2019
  4. Feb 06, 2019
  5. Feb 05, 2019
  6. Feb 04, 2019
    • Bard liao's avatar
      ASoC: topology: unload physical dai link in remove · adfebb51
      Bard liao authored
      
      
      soc_tplg_link_config() will find the physical dai link and call
      soc_tplg_dai_link_load() to load the BE dai link. Currently remove_link()
      is only used to remove the FE dai link which is created by the topology.
      The BE dai link cannot however be unloaded in snd_soc_tplg_component
      _remove(), which is problematic if anything needs to be released or
      reinitialized.
      
      This patch aligns the definitions of dynamic types with the existing
      UAPI and adds a new remove_backend_link() routine to unload the the BE
      dai link when snd_soc_tplg_component_remove() is invoked.
      
      Signed-off-by: default avatarBard liao <yung-chuan.liao@linux.intel.com>
      Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      adfebb51
    • Curtis Malainey's avatar
      ASoC: soc-core: clear platform pointers on error · 78a24e10
      Curtis Malainey authored
      
      
      Originally snd_soc_init_platform was not cleaning up its pointers, this
      was fixed to always reallocate dynamic memory but created a memory leak
      when snd_soc_init_platform was called multiple times during the same
      probe attempt and also threw away any changes made to the struct between
      calls. In order to avoid reallocating memory that is still valid, the
      behaviour will be changed to clear the dynamically set pointers on a
      probe error and a unregister event and snd_soc_init_platform will go
      back to its original behaviour of only allocating null pointers so it will
      stop throwing away valid changes.
      
      Signed-off-by: default avatarCurtis Malainey <cujomalainey@chromium.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      78a24e10
    • wen yang's avatar
      ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe · 11907e9d
      wen yang authored
      
      
      The of_find_device_by_node() takes a reference to the underlying device
      structure, we should release that reference.
      
      Signed-off-by: default avatarWen Yang <yellowriver2010@hotmil.com>
      Cc: Timur Tabi <timur@kernel.org>
      Cc: Nicolin Chen <nicoleotsuka@gmail.com>
      Cc: Xiubo Li <Xiubo.Lee@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Cc: alsa-devel@alsa-project.org
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      11907e9d