xref: /OK3568_Linux_fs/kernel/sound/usb/pcm.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __USBAUDIO_PCM_H
3*4882a593Smuzhiyun #define __USBAUDIO_PCM_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs,
6*4882a593Smuzhiyun 				    unsigned int rate);
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
9*4882a593Smuzhiyun int snd_usb_pcm_suspend(struct snd_usb_stream *as);
10*4882a593Smuzhiyun int snd_usb_pcm_resume(struct snd_usb_stream *as);
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun int snd_usb_init_pitch(struct snd_usb_audio *chip, int iface,
13*4882a593Smuzhiyun 		       struct usb_host_interface *alts,
14*4882a593Smuzhiyun 		       struct audioformat *fmt);
15*4882a593Smuzhiyun void snd_usb_preallocate_buffer(struct snd_usb_substream *subs);
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun int snd_usb_enable_audio_stream(struct snd_usb_substream *subs,
18*4882a593Smuzhiyun 				int datainterval, bool enable);
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #endif /* __USBAUDIO_PCM_H */
21