1SND_MPU401_UART_NEW(9)             MIDI API             SND_MPU401_UART_NEW(9)
2
3
4

NAME

6       snd_mpu401_uart_new - create an MPU401-UART instance
7

SYNOPSIS

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                               int irq_flags, struct snd_rawmidi ** rrawmidi);
13

ARGUMENTS

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 irq number, -1 if no interrupt for mpu
32
33       irq_flags
34           the irq request flags (SA_XXX), 0 if irq was already reserved.
35
36       rrawmidi
37           the pointer to store the new rawmidi instance
38

DESCRIPTION

40       Creates a new MPU-401 instance.
41
42       Note that the rawmidi instance is returned on the rrawmidi argument,
43       not the mpu401 instance itself. To access to the mpu401 instance, cast
44       from rawmidi->private_data (with struct snd_mpu401 magic-cast).
45
46       Returns zero if successful, or a negative error code.
47
49Kernel Hackers Manual 2.6.       November 2011          SND_MPU401_UART_NEW(9)
Impressum