提交 6553e192 编写于 作者: M Mark Brown

ASoC: Display return code when failing to add a DAPM kcontrol

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 09318c47
...@@ -357,8 +357,9 @@ static int dapm_new_mixer(struct snd_soc_codec *codec, ...@@ -357,8 +357,9 @@ static int dapm_new_mixer(struct snd_soc_codec *codec,
path->long_name); path->long_name);
ret = snd_ctl_add(codec->card, path->kcontrol); ret = snd_ctl_add(codec->card, path->kcontrol);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "asoc: failed to add dapm kcontrol %s\n", printk(KERN_ERR "asoc: failed to add dapm kcontrol %s: %d\n",
path->long_name); path->long_name,
ret);
kfree(path->long_name); kfree(path->long_name);
path->long_name = NULL; path->long_name = NULL;
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册