OSDN Git Service

ALSA: usb-audio: Add UAC3 Power Domains to suspend/resume
authorJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Tue, 31 Jul 2018 12:28:44 +0000 (13:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 31 Jul 2018 13:01:36 +0000 (15:01 +0200)
commit3f59aa11c6776da8d0f9f50c741ef02bfc4a8766
tree525006d8010aedab1c17179c37dc2c379aacb22d
parent7edf3b5e6a4544b42d3572a7058f8ffe96349ee8
ALSA: usb-audio: Add UAC3 Power Domains to suspend/resume

Set the UAC3 Power Domain state for an Audio Streaming interface
to D2 state before suspending the device (usb_driver callback).
This lets the device know there is no intention to use any of the
Units in the Audio Function and that the host is not going to
even listen for wake-up events (interrupts) on the units.

When the usb_driver gets resumed, the state D0 (fully powered) will
be set. This ties up the UAC3 Power Domains to the runtime PM.

Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/pcm.c
sound/usb/pcm.h