ASoC: Intel: avs: Remove redundancy around DAI shutdown
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 26 Apr 2024 09:57:28 +0000 (11:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 15:09:48 +0000 (00:09 +0900)
commitb9d59f970ea7772957f6da02ca1ba272ef4495b8
treeeaf85d06d4be248cb066f76e3793796f594b8129
parent140df6d4d5f541e950a35cad2e3dffb49186ed74
ASoC: Intel: avs: Remove redundancy around DAI shutdown

Move avs_dai_nonhda_be_shutdown() to avs_dai_shutdown() as the function
is common for all transfer types, not just non-HDAudio ones. Use it
to simplify avs_dai_fe_shutdown().

While at it, fix explicit kfree(data) and use the destructor instead.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20240426095733.3946951-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/pcm.c