dect
/
linux-2.6
Archived
13
0
Fork 0

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:
Mark Brown 2010-10-12 15:43:21 +01:00
parent 2b194f9db4
commit 0f9141c974
1 changed files with 4 additions and 1 deletions

View File

@ -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;