From: Pedro Lopez-Cabanillas <plcl@telefonica.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net, Clemens Ladisch <clemens@ladisch.de>
Subject: Re: MIDI port names
Date: Thu, 20 Feb 2003 00:46:18 +0100 [thread overview]
Message-ID: <200302200046.18193.plcl@telefonica.net> (raw)
In-Reply-To: <E18lUe8-0003K3-00@sc8-sf-list2.sourceforge.net>
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
On Wednesday 19 February 2003 14:51, Takashi Iwai wrote:
> there is the name field for each rawmidi substream, and the sequencer
> looks up this string.
>
> this reminds me the former patch by Clemens, and i've forgotten to
> check this issue until now. sorry.
>
> i modified the sequencer part (and mpu401_uart) on the cvs so that the
> sequencer retrieves the rawmidi name string if the substream name is
> not defined.
But Clemens' patch (attached is a slightly modified version) was not for port
names but for client names, from "External MIDI x" to the more meaningful
rawmidi name. I think that this is what some people is requesting, and makes
things easier for large studio setups when some applications, like kaconnect,
show client names but not port names. Please, apply.
Regards,
Pedro
--
ALSA Library Bindings for Pascal
http://alsapas.alturl.com
[-- Attachment #2: seq_midi.c.patch --]
[-- Type: text/x-diff, Size: 554 bytes --]
--- alsa-kernel/core/seq/seq_midi.c.old Wed Feb 19 23:23:50 2003
+++ alsa-kernel/core/seq/seq_midi.c Thu Feb 20 00:20:09 2003
@@ -329,7 +329,10 @@
memset(&inf,0,sizeof(snd_seq_client_info_t));
inf.client = client->seq_client;
inf.type = KERNEL_CLIENT;
- sprintf(inf.name, "External MIDI %i", card->number);
+ if (info.name[0])
+ strncpy(inf.name, info.name, sizeof(inf.name) - 1);
+ else
+ sprintf(inf.name, "External MIDI %i", card->number);
snd_seq_kernel_client_ctl(client->seq_client, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, &inf);
}
next parent reply other threads:[~2003-02-19 23:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E18lUe8-0003K3-00@sc8-sf-list2.sourceforge.net>
2003-02-19 23:46 ` Pedro Lopez-Cabanillas [this message]
2003-02-20 8:55 ` MIDI port names Jaroslav Kysela
2003-02-20 10:57 ` Takashi Iwai
2003-02-20 14:14 ` Jaroslav Kysela
2003-02-20 14:38 ` Takashi Iwai
2003-02-20 20:19 ` Jaroslav Kysela
2003-02-25 16:11 ` Takashi Iwai
2003-02-20 19:55 ` Pedro Lopez-Cabanillas
2003-02-19 12:40 Paul Davis
2003-02-19 13:46 ` Takashi Iwai
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=200302200046.18193.plcl@telefonica.net \
--to=plcl@telefonica.net \
--cc=alsa-devel@lists.sourceforge.net \
--cc=clemens@ladisch.de \
--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.