ASoC: topology: create TLV data for dapm widgets
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 9 Mar 2018 19:11:17 +0000 (11:11 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 12 Mar 2018 18:08:18 +0000 (11:08 -0700)
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>
sound/soc/soc-topology.c

index 01a50413c66f6612762791b2d1d905b077eb87a2..e81b52600d58464e90fb03cbc44d11f1628d27fd 100644 (file)
@@ -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;