diff options
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r-- | sound/usb/usbaudio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index c52461d4a042..c6d628a3127c 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c | |||
@@ -2077,8 +2077,14 @@ int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request, | |||
2077 | static int usb_audio_probe(struct usb_interface *intf, | 2077 | static int usb_audio_probe(struct usb_interface *intf, |
2078 | const struct usb_device_id *id); | 2078 | const struct usb_device_id *id); |
2079 | static void usb_audio_disconnect(struct usb_interface *intf); | 2079 | static void usb_audio_disconnect(struct usb_interface *intf); |
2080 | |||
2081 | #ifdef CONFIG_PM | ||
2080 | static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message); | 2082 | static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message); |
2081 | static int usb_audio_resume(struct usb_interface *intf); | 2083 | static int usb_audio_resume(struct usb_interface *intf); |
2084 | #else | ||
2085 | #define usb_audio_suspend NULL | ||
2086 | #define usb_audio_resume NULL | ||
2087 | #endif | ||
2082 | 2088 | ||
2083 | static struct usb_device_id usb_audio_ids [] = { | 2089 | static struct usb_device_id usb_audio_ids [] = { |
2084 | #include "usbquirks.h" | 2090 | #include "usbquirks.h" |
@@ -3658,6 +3664,7 @@ static void usb_audio_disconnect(struct usb_interface *intf) | |||
3658 | dev_get_drvdata(&intf->dev)); | 3664 | dev_get_drvdata(&intf->dev)); |
3659 | } | 3665 | } |
3660 | 3666 | ||
3667 | #ifdef CONFIG_PM | ||
3661 | static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message) | 3668 | static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message) |
3662 | { | 3669 | { |
3663 | struct snd_usb_audio *chip = dev_get_drvdata(&intf->dev); | 3670 | struct snd_usb_audio *chip = dev_get_drvdata(&intf->dev); |
@@ -3695,6 +3702,7 @@ static int usb_audio_resume(struct usb_interface *intf) | |||
3695 | 3702 | ||
3696 | return 0; | 3703 | return 0; |
3697 | } | 3704 | } |
3705 | #endif /* CONFIG_PM */ | ||
3698 | 3706 | ||
3699 | static int __init snd_usb_audio_init(void) | 3707 | static int __init snd_usb_audio_init(void) |
3700 | { | 3708 | { |