Skip to contentSkip to conversation

ASoC: topology: use name_prefix for new kcontrol

PATCH In review Gyeongtaek Lee 1 participant 1 message Apr 14, 2020 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20200414015104epcas2p3340ef8a5e262d2d774ec1b5b49f559d0@epcas2p3.samsung.com

#1 lore raw

PATCH 4/4 ASoC: topology: use name_prefix for new kcontrol

Current topology doesn't add prefix of component to new kcontrol.

---
 sound/soc/soc-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-topology.c +1 -1
index b19ecaf0febf..17556a47f727 100644
@@ -362,7 +362,7 @@ static int soc_tplg_add_kcontrol(struct soc_tplg *tplg,
 	struct snd_soc_component *comp = tplg->comp;
 
 	return soc_tplg_add_dcontrol(comp->card->snd_card,
-				comp->dev, k, NULL, comp, kcontrol);
+				comp->dev, k, comp->name_prefix, comp, kcontrol);
 }
 
 /* remove a mixer kcontrol */
Signature · 1 line
2.21.0