summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-topology.c
diff options
context:
space:
mode:
authorRanjani Sridharan2018-03-09 20:11:17 +0100
committerMark Brown2018-03-12 19:08:18 +0100
commitbde8b3887add8368ecf0ca71117baf2fd56a6fc9 (patch)
treebfa466d96b710265ca25721616496939bd59bc03 /sound/soc/soc-topology.c
parentLinux 4.16-rc1 (diff)
downloadkernel-qcow2-linux-bde8b3887add8368ecf0ca71117baf2fd56a6fc9.tar.gz
kernel-qcow2-linux-bde8b3887add8368ecf0ca71117baf2fd56a6fc9.tar.xz
kernel-qcow2-linux-bde8b3887add8368ecf0ca71117baf2fd56a6fc9.zip
ASoC: topology: create TLV data for dapm widgets
This patch adds the change required to create the TLV data for dapm widget kcontrols from topology. This also fixes the following TLV read error shown in amixer while showing the card control contents. "amixer: Control hw:1 element TLV read error: No such device or address" Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-topology.c')
-rw-r--r--sound/soc/soc-topology.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 01a50413c66f..e81b52600d58 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -1272,6 +1272,9 @@ static struct snd_kcontrol_new *soc_tplg_dapm_widget_dmixer_create(
kfree(sm);
continue;
}
+
+ /* create any TLV data */
+ soc_tplg_create_tlv(tplg, &kc[i], &mc->hdr);
}
return kc;