diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2008-01-10 14:39:01 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 17:29:50 +0100 |
commit | 4ccab3e72e211c40d868045c7d3216948999bcf7 (patch) | |
tree | d272be72dfa4252bc77c5bb44e98c6c34afe9bc9 /sound/soc | |
parent | 3c1c47e0eb92264d555003ee2003f836e432615b (diff) | |
download | blackbird-op-linux-4ccab3e72e211c40d868045c7d3216948999bcf7.tar.gz blackbird-op-linux-4ccab3e72e211c40d868045c7d3216948999bcf7.zip |
[ALSA] soc - Ensure PCMs are suspended
This fixes a bug whereby PCMs were not being suspended when the rest of the
audio subsystem was suspended.
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/soc-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 7d51be8ee069..5f86e033098f 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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); @@ -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; |