power.h 414 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __USBAUDIO_POWER_H
  3. #define __USBAUDIO_POWER_H
  4. #ifdef CONFIG_PM
  5. int snd_usb_autoresume(struct snd_usb_audio *chip);
  6. void snd_usb_autosuspend(struct snd_usb_audio *chip);
  7. #else
  8. static inline int snd_usb_autoresume(struct snd_usb_audio *chip)
  9. {
  10. return 0;
  11. }
  12. static inline void snd_usb_autosuspend(struct snd_usb_audio *chip)
  13. {
  14. }
  15. #endif
  16. #endif /* __USBAUDIO_POWER_H */