Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Oliver Neukum | 88a8516 | 2011-03-11 14:51:12 +0100 | [diff] [blame] | 2 | #ifndef __USBAUDIO_POWER_H |
| 3 | #define __USBAUDIO_POWER_H |
| 4 | |
| 5 | #ifdef CONFIG_PM |
| 6 | int snd_usb_autoresume(struct snd_usb_audio *chip); |
| 7 | void snd_usb_autosuspend(struct snd_usb_audio *chip); |
| 8 | #else |
| 9 | static inline int snd_usb_autoresume(struct snd_usb_audio *chip) |
| 10 | { |
| 11 | return 0; |
| 12 | } |
| 13 | static inline void snd_usb_autosuspend(struct snd_usb_audio *chip) |
| 14 | { |
| 15 | } |
| 16 | #endif |
| 17 | |
| 18 | #endif /* __USBAUDIO_POWER_H */ |