提交 02f1c12c 编写于 作者: V Vaibhav Agarwal 提交者: Greg Kroah-Hartman

greybus: audio: Report warning in case module is already removed

Added warning message in find_gb_module(). This will help to identify
invalid mixer control/widget modification triggered from above layer.
Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: NMark Greer <mgreer@animalcreek.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
上级 0790c09a
......@@ -47,6 +47,8 @@ static struct gbaudio_module_info *find_gb_module(
}
}
mutex_unlock(&codec->lock);
dev_warn(codec->dev, "%s: module#%d missing in codec list\n", name,
dev_id);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册