Debian Codegraph @

sound/usb/pcm.h

raw
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 const struct audioformat *
19 snd_usb_find_format(struct list_head *fmt_list_head, snd_pcm_format_t format,
20 unsigned int rate, unsigned int channels, bool strict_match,
21 struct snd_usb_substream *subs);
22 const struct audioformat *
23 snd_usb_find_substream_format(struct snd_usb_substream *subs,
24 const struct snd_pcm_hw_params *params);
25
26 int snd_usb_hw_params(struct snd_usb_substream *subs,
27 struct snd_pcm_hw_params *hw_params);
28 int snd_usb_hw_free(struct snd_usb_substream *subs);
29 #endif /* __USBAUDIO_PCM_H */