All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Williamson <ben.williamson@greyinnovation.com>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: David Brownell <david-b@pacbell.net>,
	Takashi Iwai <tiwai@suse.de>,
	alsa-devel@lists.sourceforge.net
Subject: Re: [RFC] g_midi: New USB MIDI Gadget class driver.
Date: Fri, 07 Jul 2006 10:37:50 +1000	[thread overview]
Message-ID: <44ADACDE.3040404@greyinnovation.com> (raw)
In-Reply-To: <20060706092715.GA13194@turing.informatik.uni-halle.de>

Clemens Ladisch wrote:
> You need something like this:
> 	depends on SND
> 	select SND_RAWMIDI

Thanks, will do.

>> +	card = snd_card_new(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, THIS_MODULE, 0);
> 
> Other ALSA drivers have module options for index and id.

How's this?

static int index = SNDRV_DEFAULT_IDX1;
static char *id = SNDRV_DEFAULT_STR1;

module_param(index, int, 0444);
MODULE_PARM_DESC(index, "Index value for the USB MIDI Gadget adapter.");
module_param(id, charp, 0444);
MODULE_PARM_DESC(id, "ID string for the USB MIDI Gadget adapter.");

	card = snd_card_new(index, id, THIS_MODULE, 0);

I see lots of drivers with arrays for those, but I think I can use the excuse that
there is at most once instance of gmidi. As far as I can tell, the gadget subsystem
only handles one udc interface, at least for now.

Thanks for the feedback, I'll post another version when I can incorporating all the
suggestions.

Cheers,

- Ben.



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-07-07  0:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06  6:06 [RFC] g_midi: New USB MIDI Gadget class driver Ben Williamson
2006-07-06  9:27 ` Clemens Ladisch
2006-07-07  0:37   ` Ben Williamson [this message]
2006-07-07  2:49     ` David Brownell
2006-07-07  4:14       ` Ben Williamson
2006-07-06 16:31 ` David Brownell

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=44ADACDE.3040404@greyinnovation.com \
    --to=ben.williamson@greyinnovation.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=david-b@pacbell.net \
    --cc=tiwai@suse.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.