|
@@ -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;
|