aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/endpoint.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /sound/usb/endpoint.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'sound/usb/endpoint.h')
-rw-r--r--sound/usb/endpoint.h32
1 files changed, 5 insertions, 27 deletions
diff --git a/sound/usb/endpoint.h b/sound/usb/endpoint.h
index 447902dd8a4..64dd0db023b 100644
--- a/sound/usb/endpoint.h
+++ b/sound/usb/endpoint.h
@@ -1,33 +1,11 @@
1#ifndef __USBAUDIO_ENDPOINT_H 1#ifndef __USBAUDIO_ENDPOINT_H
2#define __USBAUDIO_ENDPOINT_H 2#define __USBAUDIO_ENDPOINT_H
3 3
4#define SND_USB_ENDPOINT_TYPE_DATA 0 4int snd_usb_parse_audio_endpoints(struct snd_usb_audio *chip,
5#define SND_USB_ENDPOINT_TYPE_SYNC 1 5 int iface_no);
6 6
7struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip, 7int snd_usb_add_audio_endpoint(struct snd_usb_audio *chip,
8 struct usb_host_interface *alts, 8 int stream,
9 int ep_num, int direction, int type); 9 struct audioformat *fp);
10
11int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
12 snd_pcm_format_t pcm_format,
13 unsigned int channels,
14 unsigned int period_bytes,
15 unsigned int rate,
16 struct audioformat *fmt,
17 struct snd_usb_endpoint *sync_ep);
18
19int snd_usb_endpoint_start(struct snd_usb_endpoint *ep, bool can_sleep);
20void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep);
21void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep);
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);
27int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep);
28
29void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep,
30 struct snd_usb_endpoint *sender,
31 const struct urb *urb);
32 10
33#endif /* __USBAUDIO_ENDPOINT_H */ 11#endif /* __USBAUDIO_ENDPOINT_H */