|
@@ -141,7 +141,7 @@ int snd_usb_endpoint_implict_feedback_sink(struct snd_usb_endpoint *ep)
|
|
|
*
|
|
|
* For implicit feedback, next_packet_size() is unused.
|
|
|
*/
|
|
|
-static int next_packet_size(struct snd_usb_endpoint *ep)
|
|
|
+int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep)
|
|
|
{
|
|
|
unsigned long flags;
|
|
|
int ret;
|
|
@@ -177,15 +177,6 @@ static void retire_inbound_urb(struct snd_usb_endpoint *ep,
|
|
|
ep->retire_data_urb(ep->data_subs, urb);
|
|
|
}
|
|
|
|
|
|
-static void prepare_outbound_urb_sizes(struct snd_usb_endpoint *ep,
|
|
|
- struct snd_urb_ctx *ctx)
|
|
|
-{
|
|
|
- int i;
|
|
|
-
|
|
|
- for (i = 0; i < ctx->packets; ++i)
|
|
|
- ctx->packet_size[i] = next_packet_size(ep);
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
* Prepare a PLAYBACK urb for submission to the bus.
|
|
|
*/
|
|
@@ -370,7 +361,6 @@ static void snd_complete_urb(struct urb *urb)
|
|
|
goto exit_clear;
|
|
|
}
|
|
|
|
|
|
- prepare_outbound_urb_sizes(ep, ctx);
|
|
|
prepare_outbound_urb(ep, ctx);
|
|
|
} else {
|
|
|
retire_inbound_urb(ep, ctx);
|
|
@@ -857,7 +847,6 @@ int snd_usb_endpoint_start(struct snd_usb_endpoint *ep, int can_sleep)
|
|
|
goto __error;
|
|
|
|
|
|
if (usb_pipeout(ep->pipe)) {
|
|
|
- prepare_outbound_urb_sizes(ep, urb->context);
|
|
|
prepare_outbound_urb(ep, urb->context);
|
|
|
} else {
|
|
|
prepare_inbound_urb(ep, urb->context);
|