ASoC: topology: Set correct unload callback for graph type
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 1 Feb 2023 11:28:46 +0000 (13:28 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 11:09:53 +0000 (11:09 +0000)
commitdd184c400e10295631e5742fc7318ba071c67007
tree69ea560579f7ca379e4497589b6a10c6c657d2a1
parentafd7c141c750f3f043c755bd8d01a2ffee7e95b2
ASoC: topology: Set correct unload callback for graph type

Using the control_unload for graph type of elem will lead surprises on
module unload.

The correct callback to use is the dapm_route_unload.

Fixes: 31e9273912bf ("ASoC: topology: Use unload() op directly")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230201112846.27707-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c