ALSA: usx2y: Use prepare_inurb() in usb_stream_start()
PATCH 1/1 ALSA: usx2y: Use prepare_inurb() in usb_stream_start()
Replace the open-coded packet count and transfer buffer length assignments with prepare_inurb().
Signed-off-by Thorsten Blum <[email protected]>
--- sound/usb/usx2y/usb_stream.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
sound/usb/usx2y/usb_stream.c +1 -4
@@ -688,10 +688,7 @@ int usb_stream_start(struct usb_stream_kernel *sk)struct urb *outurb = sk->outurb[u];playback_prep_freqn (sk, outurb); - inurb->number_of_packets = outurb->number_of_packets; - inurb->transfer_buffer_length = - inurb->number_of_packets * - inurb->iso_frame_desc[0 ].length; +prepare_inurb (outurb->number_of_packets, inurb);if (u ==0 ) {int now;
Quoted 5 lines · Thorsten Blum
Replace the open-coded packet count and transfer buffer length assignments with
prepare_inurb().Signed-off-by Thorsten Blum <[email protected]>
Applied now. Thanks.
Takashi