[alsa-devel] [PATCH v6] MIDI driver for Behringer BCD2000 USB device

Clemens Ladisch clemens at ladisch.de
Mon Feb 24 21:39:11 CET 2014


Mario Kicherer wrote:
> On 23.02.2014 21:24, Clemens Ladisch wrote:
>>> +static void bcd2000_input_complete(struct urb *urb)
>>> +{
>>> +    if (urb->status) {
>>> +        dev_warn(dev, PREFIX "input urb->status: %i\n", urb->status);
>>> +        return;
>>> +    }
>>
>> This will stop the input even on transient errors.
>
> Hm, so, it is important to send the "acknowledge" urb afterwards
> nonetheless?

This has nothing to do with acknowledging.  Once the completion callback
was called, the URB is again owned by your driver, and nothing happens
unless you submit it again.

The only reason not to re-submit the URB is a permanent error (i.e., if
the device has been unplugged).

> Do you actually own a BCD2000?

Yes.


Regards,
Clemens


More information about the Alsa-devel mailing list