diff mbox series

[2/3] ASoC: topology: use name_prefix for new kcontrol

Message ID 000f01d60665$d8e86220$8ab92660$@samsung.com (mailing list archive)
State New, archived
Headers show
Series fixes for topology | expand

Commit Message

Gyeongtaek Lee March 30, 2020, 7:35 a.m. UTC
Current topology doesn't add prefix of the component to newly created
kcontrol.

Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
---
 sound/soc/soc-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

 /* remove a mixer kcontrol */

Comments

Mark Brown March 31, 2020, 6:07 p.m. UTC | #1
On Mon, Mar 30, 2020 at 04:35:55PM +0900, �̰��� wrote:

>  	return soc_tplg_add_dcontrol(comp->card->snd_card,
> -				comp->dev, k, NULL, comp, kcontrol);
> +				comp->dev, k, comp->name_prefix, comp,
> kcontrol);

This has word wrapping damage too.
diff mbox series

Patch

diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 575da6aba807..a152409e8746 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -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);
 }