endpoint.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #ifndef __USBAUDIO_ENDPOINT_H
  2. #define __USBAUDIO_ENDPOINT_H
  3. #define SND_USB_ENDPOINT_TYPE_DATA 0
  4. #define SND_USB_ENDPOINT_TYPE_SYNC 1
  5. struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip,
  6. struct usb_host_interface *alts,
  7. int ep_num, int direction, int type);
  8. int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
  9. struct snd_pcm_hw_params *hw_params,
  10. struct audioformat *fmt,
  11. struct snd_usb_endpoint *sync_ep);
  12. int snd_usb_endpoint_start(struct snd_usb_endpoint *ep);
  13. void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep,
  14. int force, int can_sleep, int wait);
  15. int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep);
  16. int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep);
  17. void snd_usb_endpoint_free(struct list_head *head);
  18. int snd_usb_endpoint_implict_feedback_sink(struct snd_usb_endpoint *ep);
  19. void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep,
  20. struct snd_usb_endpoint *sender,
  21. const struct urb *urb);
  22. #endif /* __USBAUDIO_ENDPOINT_H */