Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81608
b: refs/heads/master
c: 4ccab3e
h: refs/heads/master
v: v3
  • Loading branch information
Liam Girdwood authored and Jaroslav Kysela committed Jan 31, 2008
1 parent 69acc66 commit f64f071
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c1c47e0eb92264d555003ee2003f836e432615b
refs/heads/master: 4ccab3e72e211c40d868045c7d3216948999bcf7
3 changes: 3 additions & 0 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ struct snd_soc_dai_link {

/* codec/machine specific init - e.g. add machine controls */
int (*init)(struct snd_soc_codec *codec);

/* DAI pcm */
struct snd_pcm *pcm;
};

/* SoC machine */
Expand Down
5 changes: 5 additions & 0 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state)
dai->dai_ops.digital_mute(dai, 1);
}

/* suspend all pcms */
for (i = 0; i < machine->num_links; i++)
snd_pcm_suspend_all(machine->dai_link[i].pcm);

if (machine->suspend_pre)
machine->suspend_pre(pdev, state);

Expand Down Expand Up @@ -879,6 +883,7 @@ static int soc_new_pcm(struct snd_soc_device *socdev,
return ret;
}

dai_link->pcm = pcm;
pcm->private_data = rtd;
soc_pcm_ops.mmap = socdev->platform->pcm_ops->mmap;
soc_pcm_ops.pointer = socdev->platform->pcm_ops->pointer;
Expand Down

0 comments on commit f64f071

Please sign in to comment.