SND_MPU401_UART_NEW

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

snd_mpu401_uart_new - create an MPU401-UART instance  

SYNOPSIS

"SYNOPSIS"

int snd_mpu401_uart_new (snd_card_t * card, int device, unsigned short hardware, unsigned long port, int integrated, int irq, int irq_flags, snd_rawmidi_t ** rrawmidi);  

ARGUMENTS

card
the card instance
device
the device index, zero-based
hardware
the hardware type, MPU401_HW_XXXX
port
the base address of MPU401 port
integrated
non-zero if the port was already reserved by the chip
irq
the irq number, -1 if no interrupt for mpu
irq_flags
the irq request flags (SA_XXX), 0 if irq was already reserved.
rrawmidi
the pointer to store the new rawmidi instance
 

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 mpu401_t magic-cast).

Returns zero if successful, or a negative error code.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 06:21:11 GMT, October 06, 2005