]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9de67670bd07d0ce38312a7956bc2ed4ccc7f2c5
tree525006d8010aedab1c17179c37dc2c379aacb22d
parent4bfca59ff09f3131991fe69f0112b190137e591d
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