pcm.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __USBAUDIO_PCM_H
  3. #define __USBAUDIO_PCM_H
  4. void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
  5. int snd_usb_pcm_suspend(struct snd_usb_stream *as);
  6. int snd_usb_pcm_resume(struct snd_usb_stream *as);
  7. bool snd_usb_pcm_has_fixed_rate(struct snd_usb_substream *as);
  8. int snd_usb_init_pitch(struct snd_usb_audio *chip,
  9. const struct audioformat *fmt);
  10. void snd_usb_preallocate_buffer(struct snd_usb_substream *subs);
  11. int snd_usb_audioformat_set_sync_ep(struct snd_usb_audio *chip,
  12. struct audioformat *fmt);
  13. const struct audioformat *
  14. snd_usb_find_format(struct list_head *fmt_list_head, snd_pcm_format_t format,
  15. unsigned int rate, unsigned int channels, bool strict_match,
  16. struct snd_usb_substream *subs);
  17. const struct audioformat *
  18. snd_usb_find_substream_format(struct snd_usb_substream *subs,
  19. const struct snd_pcm_hw_params *params);
  20. int snd_usb_hw_params(struct snd_usb_substream *subs,
  21. struct snd_pcm_hw_params *hw_params);
  22. int snd_usb_hw_free(struct snd_usb_substream *subs);
  23. #endif /* __USBAUDIO_PCM_H */