xref: /openbmc/linux/sound/usb/pcm.h (revision b54a2377)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __USBAUDIO_PCM_H
3 #define __USBAUDIO_PCM_H
4 
5 void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
6 int snd_usb_pcm_suspend(struct snd_usb_stream *as);
7 int snd_usb_pcm_resume(struct snd_usb_stream *as);
8 
9 bool snd_usb_pcm_has_fixed_rate(struct snd_usb_substream *as);
10 
11 int snd_usb_init_pitch(struct snd_usb_audio *chip,
12 		       const struct audioformat *fmt);
13 void snd_usb_preallocate_buffer(struct snd_usb_substream *subs);
14 
15 int snd_usb_audioformat_set_sync_ep(struct snd_usb_audio *chip,
16 				    struct audioformat *fmt);
17 
18 #endif /* __USBAUDIO_PCM_H */
19