diff options
author | Jorge Sanjuan <jorge.sanjuan@codethink.co.uk> | 2018-07-31 13:28:44 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-31 15:01:36 +0200 |
commit | 3f59aa11c6776da8d0f9f50c741ef02bfc4a8766 (patch) | |
tree | 525006d8010aedab1c17179c37dc2c379aacb22d /sound/usb/pcm.h | |
parent | 7edf3b5e6a4544b42d3572a7058f8ffe96349ee8 (diff) | |
download | linux-3f59aa11c6776da8d0f9f50c741ef02bfc4a8766.tar.bz2 |
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>
Diffstat (limited to 'sound/usb/pcm.h')
-rw-r--r-- | sound/usb/pcm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/pcm.h b/sound/usb/pcm.h index f77ec58bf1a1..9833627c1eca 100644 --- a/sound/usb/pcm.h +++ b/sound/usb/pcm.h @@ -6,6 +6,8 @@ snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs, unsigned int rate); void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream); +int snd_usb_pcm_suspend(struct snd_usb_stream *as); +int snd_usb_pcm_resume(struct snd_usb_stream *as); int snd_usb_init_pitch(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, |