Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes
[deliverable/linux.git] / sound / usb / endpoint.h
CommitLineData
e5779998
DM
1#ifndef __USBAUDIO_ENDPOINT_H
2#define __USBAUDIO_ENDPOINT_H
3
8fdff6a3
DM
4#define SND_USB_ENDPOINT_TYPE_DATA 0
5#define SND_USB_ENDPOINT_TYPE_SYNC 1
6
7struct 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);
10
11int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
35ec7aa2
DR
12 snd_pcm_format_t pcm_format,
13 unsigned int channels,
14 unsigned int period_bytes,
15 unsigned int rate,
8fdff6a3
DM
16 struct audioformat *fmt,
17 struct snd_usb_endpoint *sync_ep);
18
015618b9 19int snd_usb_endpoint_start(struct snd_usb_endpoint *ep, int can_sleep);
8fdff6a3
DM
20void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep,
21 int force, int can_sleep, int wait);
22int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep);
23int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep);
24void snd_usb_endpoint_free(struct list_head *head);
25
26int snd_usb_endpoint_implict_feedback_sink(struct snd_usb_endpoint *ep);
245baf98 27int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep);
8fdff6a3
DM
28
29void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep,
30 struct snd_usb_endpoint *sender,
31 const struct urb *urb);
32
e5779998 33#endif /* __USBAUDIO_ENDPOINT_H */
This page took 0.123824 seconds and 5 git commands to generate.