Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170180
b: refs/heads/master
c: 9927f32
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Oct 19, 2009
1 parent 1154bd0 commit 4d2c8f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 4f066173fe8deb8874f41917e5d26ea2e0c46e3b
refs/heads/master: 9927f327717400a3372ff8931859509986b8ad37
11 changes: 8 additions & 3 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ static int soc_resume(struct device *dev)
#define soc_resume NULL
#endif

static struct snd_soc_dai_ops null_dai_ops = {
};

static void snd_soc_instantiate_card(struct snd_soc_card *card)
{
struct platform_device *pdev = container_of(card->dev,
Expand Down Expand Up @@ -838,6 +841,11 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
ac97 = 1;
}

for (i = 0; i < card->num_links; i++) {
if (!card->dai_link[i].codec_dai->ops)
card->dai_link[i].codec_dai->ops = &null_dai_ops;
}

/* If we have AC97 in the system then don't wait for the
* codec. This will need revisiting if we have to handle
* systems with mixed AC97 and non-AC97 parts. Only check for
Expand Down Expand Up @@ -2332,9 +2340,6 @@ static int snd_soc_unregister_card(struct snd_soc_card *card)
return 0;
}

static struct snd_soc_dai_ops null_dai_ops = {
};

/**
* snd_soc_register_dai - Register a DAI with the ASoC core
*
Expand Down

0 comments on commit 4d2c8f9

Please sign in to comment.