ASoC: Pay attention to driver supplied DAI IDs

The driver can specify a DAI ID number so use that.

Signed-off-by: Mark Brown <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
This commit is contained in:
Mark Brown 2010-10-12 15:43:21 +01:00
commit 0f9141c974

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;