SND_MPU401_UART_NEW(9) | MIDI API | SND_MPU401_UART_NEW(9) |
NAME¶
snd_mpu401_uart_new - create an MPU401-UART instance
SYNOPSIS¶
int snd_mpu401_uart_new(struct snd_card * card, int device, unsigned short hardware, unsigned long port, unsigned int info_flags, int irq, struct snd_rawmidi ** rrawmidi);
ARGUMENTS¶
card
device
hardware
port
info_flags
irq
rrawmidi
DESCRIPTION¶
Creates a new MPU-401 instance.
Note that the rawmidi instance is returned on the rrawmidi argument, not the mpu401 instance itself. To access to the mpu401 instance, cast from rawmidi->private_data (with struct snd_mpu401 magic-cast).
RETURN¶
Zero if successful, or a negative error code.
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.9. |