Commit 93521d27 authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[ALSA] sound/usb/usbaudio.c: fix build with CONFIG_PM=n

sound/usb/usbaudio.c: In function 'usb_audio_suspend':
sound/usb/usbaudio.c:3674: error: implicit declaration of function 'snd_pcm_sus\pend_all'
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 7db756f2
...@@ -2077,8 +2077,14 @@ int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request, ...@@ -2077,8 +2077,14 @@ int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request,
static int usb_audio_probe(struct usb_interface *intf, static int usb_audio_probe(struct usb_interface *intf,
const struct usb_device_id *id); const struct usb_device_id *id);
static void usb_audio_disconnect(struct usb_interface *intf); static void usb_audio_disconnect(struct usb_interface *intf);
#ifdef CONFIG_PM
static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message); static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message);
static int usb_audio_resume(struct usb_interface *intf); static int usb_audio_resume(struct usb_interface *intf);
#else
#define usb_audio_suspend NULL
#define usb_audio_resume NULL
#endif
static struct usb_device_id usb_audio_ids [] = { static struct usb_device_id usb_audio_ids [] = {
#include "usbquirks.h" #include "usbquirks.h"
...@@ -3658,6 +3664,7 @@ static void usb_audio_disconnect(struct usb_interface *intf) ...@@ -3658,6 +3664,7 @@ static void usb_audio_disconnect(struct usb_interface *intf)
dev_get_drvdata(&intf->dev)); dev_get_drvdata(&intf->dev));
} }
#ifdef CONFIG_PM
static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message) static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message)
{ {
struct snd_usb_audio *chip = dev_get_drvdata(&intf->dev); struct snd_usb_audio *chip = dev_get_drvdata(&intf->dev);
...@@ -3695,6 +3702,7 @@ static int usb_audio_resume(struct usb_interface *intf) ...@@ -3695,6 +3702,7 @@ static int usb_audio_resume(struct usb_interface *intf)
return 0; return 0;
} }
#endif /* CONFIG_PM */
static int __init snd_usb_audio_init(void) static int __init snd_usb_audio_init(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment