diff options
author | Alan Horstmann <gineera@aspect135.co.uk> | 2006-04-21 02:39:20 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 15:32:46 -0400 |
commit | 78fc030bdbbeebdea436f2b02a616d67e5f9bd9b (patch) | |
tree | 1c2264a565bc9f71a2cfdfffafe8cce38082c47c /sound/core | |
parent | 887709be9063d233eb5abef25aafcd94615b03f9 (diff) |
[ALSA] Change seq_midi.c so client name is card, rather than port, specific
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>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/seq/seq_midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 9caa1372bece..3b316da25eff 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c | |||
@@ -320,8 +320,8 @@ snd_seq_midisynth_register_port(struct snd_seq_device *dev) | |||
320 | } | 320 | } |
321 | client->seq_client = | 321 | client->seq_client = |
322 | snd_seq_create_kernel_client( | 322 | snd_seq_create_kernel_client( |
323 | card, 0, "%s", info->name[0] ? | 323 | card, 0, "%s", card->shortname[0] ? |
324 | (const char *)info->name : "External MIDI"); | 324 | (const char *)card->shortname : "External MIDI"); |
325 | if (client->seq_client < 0) { | 325 | if (client->seq_client < 0) { |
326 | kfree(client); | 326 | kfree(client); |
327 | mutex_unlock(®ister_mutex); | 327 | mutex_unlock(®ister_mutex); |