mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Oliver Neukum](/assets/img/avatar_default.png)
Devices are autosuspended if no pcm nor midi channel is open Mixer devices may be opened. This way they are active when in use to play or record sound, but can be suspended while users have a mixer application running. [Small clean-ups using static inline by tiwai] Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 lines
375 B
C
17 lines
375 B
C
#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 */
|