]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: topology: Consolidate and fix asoc_tplg_dapm_widget_*_create flow
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Mon, 17 Jun 2019 11:36:44 +0000 (13:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2019 14:33:34 +0000 (15:33 +0100)
commit9f90af3a995298d2a49b23b896f075d6a1cc8a17
tree79ae7a2d9c943e2c05dc253ba84c236b323f4bef
parent3cde818cd02b9602270092f6c06c727c70f84d1e
ASoC: topology: Consolidate and fix asoc_tplg_dapm_widget_*_create flow

There are a few soc_tplg_dapm_widget_*_create functions with similar
content, but slightly different flow, unify their flow and make sure
that we go to error handler and free memory in case of failure.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Acked-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c