diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/gadget/f_audio.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/gadget/f_audio.c')
-rw-r--r-- | drivers/usb/gadget/f_audio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c index 1f48ceb55a77..8ee330a2ab58 100644 --- a/drivers/usb/gadget/f_audio.c +++ b/drivers/usb/gadget/f_audio.c | |||
@@ -177,7 +177,7 @@ static struct uac_format_type_i_discrete_descriptor_1 as_type_i_desc = { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | /* Standard ISO OUT Endpoint Descriptor */ | 179 | /* Standard ISO OUT Endpoint Descriptor */ |
180 | static struct usb_endpoint_descriptor as_out_ep_desc __initdata = { | 180 | static struct usb_endpoint_descriptor as_out_ep_desc = { |
181 | .bLength = USB_DT_ENDPOINT_AUDIO_SIZE, | 181 | .bLength = USB_DT_ENDPOINT_AUDIO_SIZE, |
182 | .bDescriptorType = USB_DT_ENDPOINT, | 182 | .bDescriptorType = USB_DT_ENDPOINT, |
183 | .bEndpointAddress = USB_DIR_OUT, | 183 | .bEndpointAddress = USB_DIR_OUT, |
@@ -317,8 +317,6 @@ static void f_audio_playback_work(struct work_struct *data) | |||
317 | 317 | ||
318 | u_audio_playback(&audio->card, play_buf->buf, play_buf->actual); | 318 | u_audio_playback(&audio->card, play_buf->buf, play_buf->actual); |
319 | f_audio_buffer_free(play_buf); | 319 | f_audio_buffer_free(play_buf); |
320 | |||
321 | return; | ||
322 | } | 320 | } |
323 | 321 | ||
324 | static int f_audio_out_ep_complete(struct usb_ep *ep, struct usb_request *req) | 322 | static int f_audio_out_ep_complete(struct usb_ep *ep, struct usb_request *req) |
@@ -708,6 +706,7 @@ f_audio_unbind(struct usb_configuration *c, struct usb_function *f) | |||
708 | struct f_audio *audio = func_to_audio(f); | 706 | struct f_audio *audio = func_to_audio(f); |
709 | 707 | ||
710 | usb_free_descriptors(f->descriptors); | 708 | usb_free_descriptors(f->descriptors); |
709 | usb_free_descriptors(f->hs_descriptors); | ||
711 | kfree(audio); | 710 | kfree(audio); |
712 | } | 711 | } |
713 | 712 | ||
@@ -744,7 +743,7 @@ int __init control_selector_init(struct f_audio *audio) | |||
744 | } | 743 | } |
745 | 744 | ||
746 | /** | 745 | /** |
747 | * audio_bind_config - add USB audio fucntion to a configuration | 746 | * audio_bind_config - add USB audio function to a configuration |
748 | * @c: the configuration to supcard the USB audio function | 747 | * @c: the configuration to supcard the USB audio function |
749 | * Context: single threaded during gadget setup | 748 | * Context: single threaded during gadget setup |
750 | * | 749 | * |