提交 b8b33cb5 编写于 作者: M Mark Brown

ASoC: Complain if we fail to create DAPM controls

This should never happen and it's helpful to identify the specific control
that failed when it does happen.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 0b34a3d0
......@@ -1320,8 +1320,12 @@ int snd_soc_dapm_new_controls(struct snd_soc_codec *codec,
for (i = 0; i < num; i++) {
ret = snd_soc_dapm_new_control(codec, widget);
if (ret < 0)
if (ret < 0) {
printk(KERN_ERR
"ASoC: Failed to create DAPM control %s: %d\n",
widget->name, ret);
return ret;
}
widget++;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册