diff mbox

ASoC: topology: create TLV data for dapm widgets

Message ID 20180309191117.9028-1-ranjani.sridharan@linux.intel.com (mailing list archive)
State Accepted
Commit bde8b3887add8368ecf0ca71117baf2fd56a6fc9
Headers show

Commit Message

Ranjani Sridharan March 9, 2018, 7:11 p.m. UTC
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>
---
 sound/soc/soc-topology.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 293124855cf6..dc6f06e853d0 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -1294,6 +1294,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;