diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:26:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:26:12 -0400 |
commit | 7a9b149212f3716c598afe973b6261fd58453b7a (patch) | |
tree | 477716d84c71da124448b72278e98da28aadbd3d /sound/usb/midi.c | |
parent | 3d62e3fdce8ef265a3706c52ae1ca6ab84e30f0e (diff) | |
parent | e26bcf37234c67624f62d9fc95f922b8dbda1363 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (229 commits)
USB: remove unused usb_buffer_alloc and usb_buffer_free macros
usb: musb: update gfp/slab.h includes
USB: ftdi_sio: fix legacy SIO-device header
USB: kl5usb105: reimplement using generic framework
USB: kl5usb105: minor clean ups
USB: kl5usb105: fix memory leak
USB: io_ti: use kfifo to implement write buffering
USB: io_ti: remove unsused private counter
USB: ti_usb: use kfifo to implement write buffering
USB: ir-usb: fix incorrect write-buffer length
USB: aircable: fix incorrect write-buffer length
USB: safe_serial: straighten out read processing
USB: safe_serial: reimplement read using generic framework
USB: safe_serial: reimplement write using generic framework
usb-storage: always print quirks
USB: usb-storage: trivial debug improvements
USB: oti6858: use port write fifo
USB: oti6858: use kfifo to implement write buffering
USB: cypress_m8: use kfifo to implement write buffering
USB: cypress_m8: remove unused drain define
...
Fix up conflicts (due to usb_buffer_alloc/free renaming) in
drivers/input/tablet/acecad.c
drivers/input/tablet/kbtab.c
drivers/input/tablet/wacom_sys.c
drivers/media/video/gspca/gspca.c
sound/usb/usbaudio.c
Diffstat (limited to 'sound/usb/midi.c')
-rw-r--r-- | sound/usb/midi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/usb/midi.c b/sound/usb/midi.c index 2c1558c327bb..8b1e4b124a9f 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c | |||
@@ -1048,8 +1048,8 @@ static struct snd_rawmidi_ops snd_usbmidi_input_ops = { | |||
1048 | static void free_urb_and_buffer(struct snd_usb_midi *umidi, struct urb *urb, | 1048 | static void free_urb_and_buffer(struct snd_usb_midi *umidi, struct urb *urb, |
1049 | unsigned int buffer_length) | 1049 | unsigned int buffer_length) |
1050 | { | 1050 | { |
1051 | usb_buffer_free(umidi->dev, buffer_length, | 1051 | usb_free_coherent(umidi->dev, buffer_length, |
1052 | urb->transfer_buffer, urb->transfer_dma); | 1052 | urb->transfer_buffer, urb->transfer_dma); |
1053 | usb_free_urb(urb); | 1053 | usb_free_urb(urb); |
1054 | } | 1054 | } |
1055 | 1055 | ||
@@ -1100,8 +1100,8 @@ static int snd_usbmidi_in_endpoint_create(struct snd_usb_midi* umidi, | |||
1100 | pipe = usb_rcvbulkpipe(umidi->dev, ep_info->in_ep); | 1100 | pipe = usb_rcvbulkpipe(umidi->dev, ep_info->in_ep); |
1101 | length = usb_maxpacket(umidi->dev, pipe, 0); | 1101 | length = usb_maxpacket(umidi->dev, pipe, 0); |
1102 | for (i = 0; i < INPUT_URBS; ++i) { | 1102 | for (i = 0; i < INPUT_URBS; ++i) { |
1103 | buffer = usb_buffer_alloc(umidi->dev, length, GFP_KERNEL, | 1103 | buffer = usb_alloc_coherent(umidi->dev, length, GFP_KERNEL, |
1104 | &ep->urbs[i]->transfer_dma); | 1104 | &ep->urbs[i]->transfer_dma); |
1105 | if (!buffer) { | 1105 | if (!buffer) { |
1106 | snd_usbmidi_in_endpoint_delete(ep); | 1106 | snd_usbmidi_in_endpoint_delete(ep); |
1107 | return -ENOMEM; | 1107 | return -ENOMEM; |
@@ -1191,9 +1191,9 @@ static int snd_usbmidi_out_endpoint_create(struct snd_usb_midi* umidi, | |||
1191 | break; | 1191 | break; |
1192 | } | 1192 | } |
1193 | for (i = 0; i < OUTPUT_URBS; ++i) { | 1193 | for (i = 0; i < OUTPUT_URBS; ++i) { |
1194 | buffer = usb_buffer_alloc(umidi->dev, | 1194 | buffer = usb_alloc_coherent(umidi->dev, |
1195 | ep->max_transfer, GFP_KERNEL, | 1195 | ep->max_transfer, GFP_KERNEL, |
1196 | &ep->urbs[i].urb->transfer_dma); | 1196 | &ep->urbs[i].urb->transfer_dma); |
1197 | if (!buffer) { | 1197 | if (!buffer) { |
1198 | snd_usbmidi_out_endpoint_delete(ep); | 1198 | snd_usbmidi_out_endpoint_delete(ep); |
1199 | return -ENOMEM; | 1199 | return -ENOMEM; |