Update of /cvsroot/alsa/alsa-kernel/drivers/mpu401
In directory sc8-pr-cvs1:/tmp/cvs-serv31525/drivers/mpu401
Modified Files:
mpu401_uart.c
Log Message:
- set more verbose name for the sequencer client of external midi
devices.
- retrieve the default name of mpu401_uart devices
from card's shortname.
Index: mpu401_uart.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/mpu401/mpu401_uart.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- mpu401_uart.c 19 Feb 2003 13:42:00 -0000 1.20
+++ mpu401_uart.c 25 Feb 2003 15:43:13 -0000 1.21
@@ -474,7 +474,10 @@
}
mpu->irq = irq;
mpu->irq_flags = irq_flags;
- sprintf(rmidi->name, "MPU-401 (UART) %d-%d", card->number, device);
+ if (card->shortname[0])
+ snprintf(rmidi->name, sizeof(rmidi->name), "%s MPU-401",
card->shortname);
+ else
+ sprintf(rmidi->name, "MPU-401 (UART) %d-%d", card->number, device);
snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT,
&snd_mpu401_uart_output);
snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_INPUT, &snd_mpu401_uart_input);
rmidi->info_flags |= SNDRV_RAWMIDI_INFO_OUTPUT |
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog