Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371810
b: refs/heads/master
c: a1422b8
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 05902f4 commit c936ac2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 995f297298f2337a5f9794271dc225d17cdb2c15
refs/heads/master: a1422b8cb443c6cfc58da38394673b8b8eda6458
10 changes: 9 additions & 1 deletion trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4169,7 +4169,15 @@ int snd_soc_register_component(struct device *dev,
cmpnt->driver = cmpnt_drv;
cmpnt->num_dai = num_dai;

ret = snd_soc_register_dais(dev, dai_drv, num_dai);
/*
* snd_soc_register_dai() uses fmt_single_name(), and
* snd_soc_register_dais() uses fmt_multiple_name()
* for dai->name which is used for name based matching
*/
if (1 == num_dai)
ret = snd_soc_register_dai(dev, dai_drv);
else
ret = snd_soc_register_dais(dev, dai_drv, num_dai);
if (ret < 0) {
dev_err(dev, "ASoC: Failed to regster DAIs: %d\n", ret);
goto error_component_name;
Expand Down

0 comments on commit c936ac2

Please sign in to comment.