ASoC: dapm: Simplify widget clone
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 26 Oct 2023 11:35:49 +0000 (13:35 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Nov 2023 01:26:08 +0000 (01:26 +0000)
commit79323dc80318aab6c2d05abdbcf88f09b50522c5
tree5a0d086c7f42d7dbfcd8c24b3e583e01d0873bdd
parentbb341f75a05238ccd35b1ec1eb1849a3955eebb3
ASoC: dapm: Simplify widget clone

New DAPM widgets are created based on a provided template. When cloning
the data, the name and stream name also need to be cloned. Currently the
data and the names are initialized in different places. Simplify the
code by having entire initialization in one place.

Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231026113549.1897368-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c