diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /sound/usb/endpoint.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'sound/usb/endpoint.h')
-rw-r--r-- | sound/usb/endpoint.h | 32 |
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 | 4 | int snd_usb_parse_audio_endpoints(struct snd_usb_audio *chip, |
5 | #define SND_USB_ENDPOINT_TYPE_SYNC 1 | 5 | int iface_no); |
6 | 6 | ||
7 | struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip, | 7 | int 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 | |||
11 | int 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 | |||
19 | int snd_usb_endpoint_start(struct snd_usb_endpoint *ep, bool can_sleep); | ||
20 | void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep); | ||
21 | void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep); | ||
22 | int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep); | ||
23 | int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep); | ||
24 | void snd_usb_endpoint_free(struct list_head *head); | ||
25 | |||
26 | int snd_usb_endpoint_implict_feedback_sink(struct snd_usb_endpoint *ep); | ||
27 | int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep); | ||
28 | |||
29 | void 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 */ |