blob: 9833627c1eca5f0afe01b2aaab2ce003acc89d46 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Daniel Macke5779992010-03-04 19:46:13 +01002#ifndef __USBAUDIO_PCM_H
3#define __USBAUDIO_PCM_H
4
Pierre-Louis Bossart294c4fb2011-09-06 19:15:34 -05005snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs,
6 unsigned int rate);
7
Daniel Macke5779992010-03-04 19:46:13 +01008void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
Jorge Sanjuan3f59aa12018-07-31 13:28:44 +01009int snd_usb_pcm_suspend(struct snd_usb_stream *as);
10int snd_usb_pcm_resume(struct snd_usb_stream *as);
Daniel Macke5779992010-03-04 19:46:13 +010011
Daniel Mack767d75a2010-03-04 19:46:17 +010012int snd_usb_init_pitch(struct snd_usb_audio *chip, int iface,
Daniel Macke5779992010-03-04 19:46:13 +010013 struct usb_host_interface *alts,
14 struct audioformat *fmt);
Takashi Iwaif274baa2018-05-27 13:01:17 +020015void snd_usb_preallocate_buffer(struct snd_usb_substream *subs);
Daniel Macke5779992010-03-04 19:46:13 +010016
Daniel Macke5779992010-03-04 19:46:13 +010017
18#endif /* __USBAUDIO_PCM_H */