提交 0f9141c9 编写于 作者: M Mark Brown

ASoC: Pay attention to driver supplied DAI IDs

The driver can specify a DAI ID number so use that.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
上级 2b194f9d
......@@ -3051,8 +3051,11 @@ int snd_soc_register_dais(struct device *dev,
}
dai->dev = dev;
dai->id = i;
dai->driver = &dai_drv[i];
if (dai->driver->id)
dai->id = dai->driver->id;
else
dai->id = i;
if (!dai->driver->ops)
dai->driver->ops = &null_dai_ops;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部