Commit 017da17a authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Jaroslav Kysela <perex@suse.cz>

ALSA sequencer
Clemens Ladisch <clemens@ladisch.de>
This patch reverses the order of the 'Rawmidi x' and rawmidi name
parts of client names to enable selecting clients by a unique prefix
(as snd_seq_parse_address does).
parent a7c27679
......@@ -285,7 +285,7 @@ static int set_client_name(seq_midisynth_client_t *client, snd_card_t *card,
cinfo.client = client->seq_client;
cinfo.type = KERNEL_CLIENT;
name = rmidi->name[0] ? (const char *)rmidi->name : "External MIDI";
snprintf(cinfo.name, sizeof(cinfo.name), "Rawmidi %d - %s", card->number, name);
snprintf(cinfo.name, sizeof(cinfo.name), "%s - Rawmidi %d", name, card->number);
return snd_seq_kernel_client_ctl(client->seq_client, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, &cinfo);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment