1SND_MPU401_UART_NEW(9) MIDI API SND_MPU401_UART_NEW(9)
2
3
4
6 snd_mpu401_uart_new - create an MPU401-UART instance
7
9 int snd_mpu401_uart_new(struct snd_card * card, int device,
10 unsigned short hardware, unsigned long port,
11 unsigned int info_flags, int irq,
12 struct snd_rawmidi ** rrawmidi);
13
15 card
16 the card instance
17
18 device
19 the device index, zero-based
20
21 hardware
22 the hardware type, MPU401_HW_XXXX
23
24 port
25 the base address of MPU401 port
26
27 info_flags
28 bitflags MPU401_INFO_XXX
29
30 irq
31 the ISA irq number, -1 if not to be allocated
32
33 rrawmidi
34 the pointer to store the new rawmidi instance
35
37 Creates a new MPU-401 instance.
38
39 Note that the rawmidi instance is returned on the rrawmidi argument,
40 not the mpu401 instance itself. To access to the mpu401 instance, cast
41 from rawmidi->private_data (with struct snd_mpu401 magic-cast).
42
44 Zero if successful, or a negative error code.
45
47Kernel Hackers Manual 3.10 June 2019 SND_MPU401_UART_NEW(9)