[ALSA] Change seq_midi.c so client name is card, rather than port, specific
authorAlan Horstmann <gineera@aspect135.co.uk>
Fri, 21 Apr 2006 06:39:20 +0000 (08:39 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 22 Jun 2006 19:32:46 +0000 (21:32 +0200)
Change snd_seq_midisynth_register_port() in seq_midi.c so that if a new client
is created, the client name string is based on card->shortname not
(port-specific) info->name.

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/core/seq/seq_midi.c

index 9caa1372bece852749bce58dfc373af4a3691b57..3b316da25eff4ca083eeaaa6239d8ceb5e9b0394 100644 (file)
@@ -320,8 +320,8 @@ snd_seq_midisynth_register_port(struct snd_seq_device *dev)
                }
                client->seq_client =
                        snd_seq_create_kernel_client(
-                               card, 0, "%s", info->name[0] ?
-                               (const char *)info->name : "External MIDI");
+                               card, 0, "%s", card->shortname[0] ?
+                               (const char *)card->shortname : "External MIDI");
                if (client->seq_client < 0) {
                        kfree(client);
                        mutex_unlock(&register_mutex);