All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Kicherer <dev@kicherer.org>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH v6] MIDI driver for Behringer BCD2000 USB device
Date: Mon, 24 Feb 2014 21:05:34 +0100	[thread overview]
Message-ID: <530BA60E.9000408@kicherer.org> (raw)
In-Reply-To: <530A58F6.7030700@ladisch.de>

On 23.02.2014 21:24, Clemens Ladisch wrote:
> I wonder how much of this is the actual init sequence, and how much is
> random garbage.  :-)

Me too, but I want to make sure the module works before I start 
experimenting and risk modifying/damaging my device. Some bytes in
between stay the same, some seem to change randomly everytime I plug in
the device.

> The device often sends data as single-byte packets, so the structure
> actually is "length data...".

Yeah, it's a bit misleading here. I'll change this part.

>> +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?

> $ cat /proc/asound/cards
> ...
> 18 [bcd2000        ]: Behringer BCD200bcd2000 - bcd2000
>                        Behringer BCD2000, at usb-0000:00:13.1-3
>
> The driver name just identifies the driver, it does not need the vendor
> name.  (And it should not overflow its buffer.)
>
> The short name is shown to the user in many places, so it should be
> properly capitalized.
>
> The long name does not need the comma.

I removed the macros and just placed the names in there directly as
that's the only place they're used anyway.

Do you actually own a BCD2000?

>> +	dev_info(&bcd2k->dev->dev, PREFIX "%s", bcd2k->card->longname);
>
> What use does this message have in the log?

I saw this in another driver and thought this is common practice. I'll
remove it then.

Thank you for your comments!
Mario

  reply	other threads:[~2014-02-24 20:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 15:11 [PATCH v6] MIDI driver for Behringer BCD2000 USB device Mario Kicherer
2014-02-23 20:24 ` Clemens Ladisch
2014-02-24 20:05   ` Mario Kicherer [this message]
2014-02-24 20:39     ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530BA60E.9000408@kicherer.org \
    --to=dev@kicherer.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.