mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
3f59aa11c6
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>
19 lines
586 B
C
19 lines
586 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __USBAUDIO_PCM_H
|
|
#define __USBAUDIO_PCM_H
|
|
|
|
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,
|
|
struct audioformat *fmt);
|
|
void snd_usb_preallocate_buffer(struct snd_usb_substream *subs);
|
|
|
|
|
|
#endif /* __USBAUDIO_PCM_H */
|