Skip to content

Commit 7c60d06

Browse files
ujfalusikv2019i
authored andcommitted
ASoC: soc-topology: Move template info print soc_tplg_dapm_widget_create()
A DAPM widget now can have different types of controls, it is no longer correct to print the type as it is just the type of the first control. Move it after the loop where we create the controls and print the number of the control types. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 12dcdcc commit 7c60d06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/soc-topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,8 +1478,6 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg,
14781478
}
14791479

14801480
control_hdr = (struct snd_soc_tplg_ctl_hdr *)tplg->pos;
1481-
dev_dbg(tplg->dev, "ASoC: template %s has %d controls of type %x\n",
1482-
w->name, w->num_kcontrols, control_hdr->type);
14831481

14841482
template.num_kcontrols = le32_to_cpu(w->num_kcontrols);
14851483
kc = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(*kc), GFP_KERNEL);
@@ -1540,6 +1538,8 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg,
15401538
}
15411539

15421540
template.kcontrol_news = kc;
1541+
dev_dbg(tplg->dev, "ASoC: template %s with %d/%d/%d (mixer/enum/bytes) control\n",
1542+
w->name, mixer_count, enum_count, bytes_count);
15431543

15441544
widget:
15451545
ret = soc_tplg_widget_load(tplg, &template, w);

0 commit comments

Comments
 (0)