---
name: "snd_mpu401_uart_new"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_mpu401_uart_new"
---

# snd\_mpu401\_uart\_new(9)

create an MPU401-UART instance

## 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*

the card instance

*device*

the device index, zero-based

*hardware*

the hardware type, MPU401\_HW\_XXXX

*port*

the base address of MPU401 port

*info\_flags*

bitflags MPU401\_INFO\_XXX

*irq*

the ISA irq number, -1 if not to be allocated

*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 struct snd\_mpu401 magic-cast).

## RETURN

Zero if successful, or a negative error code.

## COPYRIGHT
