ALSA: usbaudio: implement USB autosuspend
authorOliver Neukum <oneukum@suse.de>
Fri, 11 Mar 2011 13:51:12 +0000 (14:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Mar 2011 13:59:29 +0000 (14:59 +0100)
commit88a8516a2128a6d078a106ead48092240e8a138f
treedc839c85a9b2fc2e17759c5a42368cb8300e42bc
parentedf7de31c25ce72f163bf7d1fc0d2711869d073c
ALSA: usbaudio: implement USB autosuspend

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>
sound/usb/card.c
sound/usb/midi.c
sound/usb/mixer.c
sound/usb/pcm.c
sound/usb/power.h [new file with mode: 0644]
sound/usb/usbaudio.h