From: Lee Revell <rlrevell@joe-job.com>
To: Clemens Ladisch <cladisch@fastmail.net>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Rawmidi device naming
Date: Thu, 09 Nov 2006 15:39:01 -0500 [thread overview]
Message-ID: <1163104741.16030.8.camel@mindpipe> (raw)
In-Reply-To: <1163104597.16030.6.camel@mindpipe>
On Thu, 2006-11-09 at 15:36 -0500, Lee Revell wrote:
> 212
> 213 if ((err = snd_dream_midi_init(dream, midi2, 1, "MIDI Out")) < 0)
> 214 return err;
> 215 midi2->port = MPU1_DATA;
> 216
> 217 if ((err = snd_dream_midi_init(dream, midi1, 0, "GM Synth")) < 0)
> 218 return err;
> 219 midi1->port = MPU1_DATA;
> 220
>
Here is snd_dream_midi_init:
static int __devinit snd_dream_midi_init(struct snd_card_dream *dream, struct snd_card_dream_midi *midi, int device, char *name)
{
snd_rawmidi_t *rmidi;
int err;
if ((err = snd_rawmidi_new(dream->card, name, device, 1, 1, &rmidi)) < 0)
return err;
midi->dream = dream;
strcpy(rmidi->name, name);
snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &snd_dream_midi_output);
snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_INPUT, &snd_dream_midi_input);
rmidi->info_flags |= SNDRV_RAWMIDI_INFO_OUTPUT |
SNDRV_RAWMIDI_INFO_INPUT |
SNDRV_RAWMIDI_INFO_DUPLEX;
rmidi->private_data = midi;
// rmidi->private_free = snd_dream_midi_free;
midi->rmidi = rmidi;
return 0;
}
Why does the client get the port name ?!?!?!?!?
Lee
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-11-09 20:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-22 17:38 Rawmidi device naming Lee Revell
2006-09-22 18:04 ` Clemens Ladisch
2006-09-22 18:13 ` Lee Revell
2006-11-09 20:36 ` Lee Revell
2006-11-09 20:39 ` Lee Revell [this message]
2006-11-10 8:25 ` Clemens Ladisch
2006-11-10 17:54 ` Lee Revell
2006-11-10 19:08 ` 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=1163104741.16030.8.camel@mindpipe \
--to=rlrevell@joe-job.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=cladisch@fastmail.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox