Skip to content

Commit

Permalink
ASoC: Pay attention to driver supplied DAI IDs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Oct 13, 2010
1 parent 2b194f9 commit 0f9141c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0f9141c

Please sign in to comment.