]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/sound/pcm.h
ALSA: pcm: Define dummy snd_pcm_suspend() for CONFIG_PM=n
[mirror_ubuntu-bionic-kernel.git] / include / sound / pcm.h
index af1fb37c6b265cf20de58dee1e0d7490669a9bf1..361749e607991b742b1ddc62be1e7bb22b2c18eb 100644 (file)
@@ -570,6 +570,15 @@ int snd_pcm_stop_xrun(struct snd_pcm_substream *substream);
 #ifdef CONFIG_PM
 int snd_pcm_suspend(struct snd_pcm_substream *substream);
 int snd_pcm_suspend_all(struct snd_pcm *pcm);
+#else
+static inline int snd_pcm_suspend(struct snd_pcm_substream *substream)
+{
+       return 0;
+}
+static inline int snd_pcm_suspend_all(struct snd_pcm *pcm)
+{
+       return 0;
+}
 #endif
 int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg);
 int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,