Commit 983e0972cea450fe5725d1ba11c78adfd5d7ad3a

Authored by Johann Felix Soden
Committed by Takashi Iwai
1 parent f74d505b58

[ALSA] pcsp: Fix build with CONFIG_PM=n

sound/drivers/pcsp/pcsp.c: In function 'pcsp_suspend':
sound/drivers/pcsp/pcsp.c:201: error: implicit declaration of function 'snd_pcm_suspend_all'

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
CC: Stas Sergeev <stsp@aknet.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

sound/drivers/pcsp/pcsp.c
... ... @@ -194,6 +194,7 @@
194 194 spin_unlock_irq(&chip->substream_lock);
195 195 }
196 196  
  197 +#ifdef CONFIG_PM
197 198 static int pcsp_suspend(struct platform_device *dev, pm_message_t state)
198 199 {
199 200 struct snd_pcsp *chip = platform_get_drvdata(dev);
... ... @@ -201,6 +202,9 @@
201 202 snd_pcm_suspend_all(chip->pcm);
202 203 return 0;
203 204 }
  205 +#else
  206 +#define pcsp_suspend NULL
  207 +#endif /* CONFIG_PM */
204 208  
205 209 static void pcsp_shutdown(struct platform_device *dev)
206 210 {