From 3d2df90f2ee3fc60cd93826a42dba2ebf7d062d1 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Tue, 17 Sep 2024 21:06:57 -0700 Subject: [PATCH] tools: plugin: tplg_ctl: Set control type Set the type while parsing the controls. Signed-off-by: Ranjani Sridharan --- tools/plugin/alsaplug/tplg_ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/plugin/alsaplug/tplg_ctl.c b/tools/plugin/alsaplug/tplg_ctl.c index db3248ed5..620c730f8 100644 --- a/tools/plugin/alsaplug/tplg_ctl.c +++ b/tools/plugin/alsaplug/tplg_ctl.c @@ -170,6 +170,7 @@ int plug_kcontrol_cb_new(struct snd_soc_tplg_ctl_hdr *tplg_ctl, void *_comp, voi ctl->instance_id = comp_info->instance_id; ctl->mixer_ctl = *tplg_mixer; ctl->index = index; + ctl->type = tplg_ctl->type; tlv = &tplg_ctl->tlv; scale = &tlv->scale; @@ -197,6 +198,7 @@ int plug_kcontrol_cb_new(struct snd_soc_tplg_ctl_hdr *tplg_ctl, void *_comp, voi ctl->instance_id = comp_info->instance_id; ctl->enum_ctl = *tplg_enum; ctl->index = index; + ctl->type = tplg_ctl->type; break; } case SND_SOC_TPLG_CTL_BYTES: