mirror of https://gitee.com/openkylin/linux.git
ASoC: Pay attention to driver supplied DAI IDs
The driver can specify a DAI ID number so use that. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
2b194f9db4
commit
0f9141c974
|
@ -3051,8 +3051,11 @@ int snd_soc_register_dais(struct device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
dai->dev = dev;
|
dai->dev = dev;
|
||||||
dai->id = i;
|
|
||||||
dai->driver = &dai_drv[i];
|
dai->driver = &dai_drv[i];
|
||||||
|
if (dai->driver->id)
|
||||||
|
dai->id = dai->driver->id;
|
||||||
|
else
|
||||||
|
dai->id = i;
|
||||||
if (!dai->driver->ops)
|
if (!dai->driver->ops)
|
||||||
dai->driver->ops = &null_dai_ops;
|
dai->driver->ops = &null_dai_ops;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue