From: Mark Brown Date: Tue, 12 Oct 2010 14:43:21 +0000 (+0100) Subject: ASoC: Pay attention to driver supplied DAI IDs X-Git-Tag: v2.6.37-rc1~82^2~8^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f9141c974b2dc29b7d1cf245bbf4685350521be;p=profile%2Fivi%2Fkernel-x86-ivi.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 Acked-by: Liam Girdwood --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 6cee97e..63c80e6 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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;