|
@@ -1513,6 +1513,14 @@ int snd_pcm_suspend_all(struct snd_pcm *pcm)
|
|
|
/* FIXME: the open/close code should lock this as well */
|
|
/* FIXME: the open/close code should lock this as well */
|
|
|
if (substream->runtime == NULL)
|
|
if (substream->runtime == NULL)
|
|
|
continue;
|
|
continue;
|
|
|
|
|
+
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Skip BE dai link PCM's that are internal and may
|
|
|
|
|
+ * not have their substream ops set.
|
|
|
|
|
+ */
|
|
|
|
|
+ if (!substream->ops)
|
|
|
|
|
+ continue;
|
|
|
|
|
+
|
|
|
err = snd_pcm_suspend(substream);
|
|
err = snd_pcm_suspend(substream);
|
|
|
if (err < 0 && err != -EBUSY)
|
|
if (err < 0 && err != -EBUSY)
|
|
|
return err;
|
|
return err;
|