aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/power.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-03-18 07:39:08 +0100
committerTakashi Iwai <tiwai@suse.de>2011-03-18 07:39:08 +0100
commitd351cf4603edb2a5bfa9a48d06c425511c63f2a3 (patch)
treeb03ea3cfd3ca3974237563cf87328386c3d49ff1 /sound/usb/power.h
parent433e8327caf9f7c0432b2f2f6684a5b79cfe18e9 (diff)
parent4a122c10fbfe9020df469f0f669da129c5757671 (diff)
downloadkernel_samsung_crespo-d351cf4603edb2a5bfa9a48d06c425511c63f2a3.zip
kernel_samsung_crespo-d351cf4603edb2a5bfa9a48d06c425511c63f2a3.tar.gz
kernel_samsung_crespo-d351cf4603edb2a5bfa9a48d06c425511c63f2a3.tar.bz2
Merge branch 'topic/misc' into for-linus
Diffstat (limited to 'sound/usb/power.h')
-rw-r--r--sound/usb/power.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/usb/power.h b/sound/usb/power.h
new file mode 100644
index 0000000..48ee51d
--- /dev/null
+++ b/sound/usb/power.h
@@ -0,0 +1,17 @@
+#ifndef __USBAUDIO_POWER_H
+#define __USBAUDIO_POWER_H
+
+#ifdef CONFIG_PM
+int snd_usb_autoresume(struct snd_usb_audio *chip);
+void snd_usb_autosuspend(struct snd_usb_audio *chip);
+#else
+static inline int snd_usb_autoresume(struct snd_usb_audio *chip)
+{
+ return 0;
+}
+static inline void snd_usb_autosuspend(struct snd_usb_audio *chip)
+{
+}
+#endif
+
+#endif /* __USBAUDIO_POWER_H */