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

Daniel Mack daniel at zonque.org
Wed Apr 2 18:34:33 CEST 2014


Hi,

the only things I spotted are style nits ...


On 04/02/2014 05:56 PM, Mario Kicherer wrote:
> This patch adds initial support for the Behringer BCD2000 USB DJ controller.
> At the moment, only the MIDI part of the device is working, i.e. knobs,
> buttons and LEDs.
> 
> I also plan to add support for the audio part, but I assume that this will
> require more effort than the rather simple MIDI interface. Progress can be
> tracked at https://github.com/anyc/snd-usb-bcd2000.

Text such as the lines starting here ...

> 
> Daniel or Clemens: could I get another ACK on this? Thank you both!
> 
> Best regards,
> Mario
> 
> Changes since v7:
> 	- replaced snd_card_create with snd_card_new
> 
> Changes since v6:
>         - applied more style improvements
> 
> Changes since v5:
> 	- use kernel bitmap functions for devices_used
> 
> Changes since v4:
> 	- devices_used as array to support arbitrary number of SNDRV_CARDS
> 	- removed unused array "enable"
> 
> Changes since v3:
>         - applied style and snd_printk changes as suggested by Daniel Mack
> 
> Changes since v2:
>         - applied more changes from Daniel Mack and Clemens Ladisch
> 
> Changes since v1:
>         - fixed the various code style issues, thanks to Daniel Mack and
>           checkpatch.pl.

... to here should go ...


> Signed-off-by: Mario Kicherer <dev at kicherer.org>
> ---

... here. IOW, Everything that is not supposed to become part of the
actual commit log message eventually has to be put underneath "---".

> +static struct usb_driver bcd2000_driver = {
> +	.name =	"snd-bcd2000",
> +	.probe =	bcd2000_probe,
> +	.disconnect =	bcd2000_disconnect,
> +	.id_table =	id_table,
> +};

Something's wrong with the indent here.

> +static int __init bcd2000_init(void)
> +{
> +	int retval = 0;
> +
> +	retval = usb_register(&bcd2000_driver);
> +	if (retval)
> +		pr_info(PREFIX "usb_register failed. Error: %d", retval);
> +	return retval;
> +}
> +
> +static void __exit bcd2000_exit(void)
> +{
> +	usb_deregister(&bcd2000_driver);
> +}
> +
> +module_init(bcd2000_init);
> +module_exit(bcd2000_exit);

You can replace all that with the module_usb_driver() helper function.
See include/linux/usb.h.

Other than that, it looks fine to me.


Thanks,
Daniel



More information about the Alsa-devel mailing list