OSDN Git Service

ASoC: topology: Only free TLV for volume mixers of a widget
authorMengdong Lin <mengdong.lin@linux.intel.com>
Fri, 25 Nov 2016 08:09:17 +0000 (16:09 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Dec 2016 13:39:39 +0000 (13:39 +0000)
commiteea3dd4f1247aa8654194fb19ade22c94c42e41a
treeb6c75e04c27fbd5146b552b245bf17b9a4f75e27
parent1a7dd6e2f192960229dd3113a35c74690e503ea2
ASoC: topology: Only free TLV for volume mixers of a widget

This patch will check the type of embedded controls for a widget, and
only free the TLV of volume mixers. Bytes controls don't have TLV.

Just free the private value which is used as struct soc_mixer_control
for volume mixers or soc_bytes_ext for bytes controls. No need to cast
to these types before freeing it.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-topology.h
sound/soc/soc-topology.c