mempool: add @gfp_mask to mempool_create_node()
[linux-2.6.git] / sound / usb / endpoint.h
blobee2723fb174f61ddb9a3c0c0224bc065b36ba173
1 #ifndef __USBAUDIO_ENDPOINT_H
2 #define __USBAUDIO_ENDPOINT_H
4 #define SND_USB_ENDPOINT_TYPE_DATA 0
5 #define SND_USB_ENDPOINT_TYPE_SYNC 1
7 struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip,
8 struct usb_host_interface *alts,
9 int ep_num, int direction, int type);
11 int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
12 struct snd_pcm_hw_params *hw_params,
13 struct audioformat *fmt,
14 struct snd_usb_endpoint *sync_ep);
16 int snd_usb_endpoint_start(struct snd_usb_endpoint *ep);
17 void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep,
18 int force, int can_sleep, int wait);
19 int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep);
20 int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep);
21 void snd_usb_endpoint_free(struct list_head *head);
23 int snd_usb_endpoint_implict_feedback_sink(struct snd_usb_endpoint *ep);
25 void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep,
26 struct snd_usb_endpoint *sender,
27 const struct urb *urb);
29 #endif /* __USBAUDIO_ENDPOINT_H */