1. 05 Sep, 2018 3 commits
    • Charles Keepax's avatar
      ASoC: dapm: Move connection of CODEC to CODEC DAIs · 778ff5bb
      Charles Keepax authored
      Currently, snd_soc_dapm_connect_dai_link_widgets connects up the routes
      representing normal DAIs, however CODEC to CODEC links are hooked up
      through separate infrastructure in soc_link_dai_widgets. Improve the
      consistency of the code by using snd_soc_dapm_connect_dai_link for both
      types of DAIs.
      Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      778ff5bb
    • Charles Keepax's avatar
      ASoC: dapm: Cosmetic tidy up of snd_soc_dapm_new_control · 94e630a3
      Charles Keepax authored
      Move the function snd_soc_dapm_new_control to be next to
      snd_soc_dapm_new_controls and add some kernel doc for it.
      Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      94e630a3
    • Charles Keepax's avatar
      ASoC: dapm: Move error handling to snd_soc_dapm_new_control_unlocked · 3bbf5d34
      Charles Keepax authored
      Currently DAPM has a lot of similar code to handle errors from
      snd_soc_dapm_new_control_unlocked, and much of this code does
      not really accurately reflect what the function returns.
      
      Firstly, most places will check for a return value of
      -EPROBE_DEFER and silence any error messages in that case. The
      one notable exception here being dapm_kcontrol_data_alloc
      which does currently print any error messages in the case
      of snd_soc_dapm_new_control_unlocked returning NULL or an
      error. Additionally the error prints being silenced in these
      case are redundant as snd_soc_dapm_new_control_unlocked can
      only return -EPROBE_DEFER or NULL when failing.
      
      Secondly, most places will treat a return value of NULL as
      an -ENOMEM.  This is not correct either since any error except
      EPROBE_DEFER will cause a return value of NULL from
      snd_soc_dapm_new_control_unlocked.
      
      Centralise this handling and the error messages within
      snd_soc_dapm_new_control_unlocked and update the callers
      to simply check IS_ERR and return. Note that this update is
      slightly simpler in the case of dapm_kcontrol_data_alloc where
      that is fairly close to the handling that was already in place.
      Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      3bbf5d34
  2. 04 Sep, 2018 3 commits
  3. 03 Sep, 2018 20 commits
  4. 31 Aug, 2018 14 commits