[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>
This commit is contained in:
parent
f74d505b58
commit
983e0972ce
|
@ -194,6 +194,7 @@ static void pcsp_stop_beep(struct snd_pcsp *chip)
|
||||||
spin_unlock_irq(&chip->substream_lock);
|
spin_unlock_irq(&chip->substream_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static int pcsp_suspend(struct platform_device *dev, pm_message_t state)
|
static int pcsp_suspend(struct platform_device *dev, pm_message_t state)
|
||||||
{
|
{
|
||||||
struct snd_pcsp *chip = platform_get_drvdata(dev);
|
struct snd_pcsp *chip = platform_get_drvdata(dev);
|
||||||
|
@ -201,6 +202,9 @@ static int pcsp_suspend(struct platform_device *dev, pm_message_t state)
|
||||||
snd_pcm_suspend_all(chip->pcm);
|
snd_pcm_suspend_all(chip->pcm);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define pcsp_suspend NULL
|
||||||
|
#endif /* CONFIG_PM */
|
||||||
|
|
||||||
static void pcsp_shutdown(struct platform_device *dev)
|
static void pcsp_shutdown(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue