Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182892
b: refs/heads/master
c: 96dd362
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Feb 16, 2010
1 parent 2695b56 commit 68ce842
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 3a66d3877eaa4ab9818000a15c07326adaa9ca79
refs/heads/master: 96dd362284ddcb546d2783035ae7eeda73692eda
2 changes: 2 additions & 0 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ struct snd_soc_card {
int (*set_bias_level)(struct snd_soc_card *,
enum snd_soc_bias_level level);

int pmdown_time;

/* CPU <--> Codec DAI links */
struct snd_soc_dai_link *dai_link;
int num_links;
Expand Down
4 changes: 3 additions & 1 deletion trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ static int soc_codec_close(struct snd_pcm_substream *substream)
/* start delayed pop wq here for playback streams */
codec_dai->pop_wait = 1;
schedule_delayed_work(&card->delayed_work,
msecs_to_jiffies(pmdown_time));
msecs_to_jiffies(card->pmdown_time));
} else {
/* capture streams can be powered down now */
snd_soc_dapm_stream_event(codec,
Expand Down Expand Up @@ -1039,6 +1039,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
dev_dbg(card->dev, "All components present, instantiating\n");

/* Found everything, bring it up */
card->pmdown_time = pmdown_time;

if (card->probe) {
ret = card->probe(pdev);
if (ret < 0)
Expand Down

0 comments on commit 68ce842

Please sign in to comment.