Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248271
b: refs/heads/master
c: 0671fd8
h: refs/heads/master
i:
  248269: 2f08cfa
  248267: 45e2bad
  248263: f83f98f
  248255: 7705ecf
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Apr 11, 2011
1 parent f726865 commit f835492
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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: b8eeee68dc81f08993ed5dc18dc6d574ba146674
refs/heads/master: 0671fd8ef4b32200e75396cd299f0853002fc11e
16 changes: 12 additions & 4 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,16 @@ static void soc_remove_dai_link(struct snd_soc_card *card, int num)
}
}

static void soc_remove_dai_links(struct snd_soc_card *card)
{
int i;

for (i = 0; i < card->num_rtd; i++)
soc_remove_dai_link(card, i);

card->num_rtd = 0;
}

static void soc_set_name_prefix(struct snd_soc_card *card,
struct snd_soc_codec *codec)
{
Expand Down Expand Up @@ -1960,8 +1970,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
soc_remove_aux_dev(card, i);

probe_dai_err:
for (i = 0; i < card->num_links; i++)
soc_remove_dai_link(card, i);
soc_remove_dai_links(card);

card_probe_error:
if (card->remove)
Expand Down Expand Up @@ -2023,8 +2032,7 @@ static int soc_cleanup_card_resources(struct snd_soc_card *card)
soc_remove_aux_dev(card, i);

/* remove and free each DAI */
for (i = 0; i < card->num_rtd; i++)
soc_remove_dai_link(card, i);
soc_remove_dai_links(card);

soc_cleanup_card_debugfs(card);

Expand Down

0 comments on commit f835492

Please sign in to comment.