MPU-401 MIDI setup (Howto)

From the ALSA wiki

(Difference between revisions)
Jump to: navigation, search
(Needs to be reformatted and generalized (from Via to MPU-401))
(cleanup + more links)
 
Line 1: Line 1:
=== How to get the MIDI-Port of the VIA8233 working ===
=== How to get the MIDI-Port of the VIA8233 working ===
-
You'll need the 'snd-mpu401' driver module. If you don't have it already, recompile alsa with it. Now edit your modules.conf file and add these lines (get the irq and io port from your bios or windows):
+
You'll need the 'snd-[[mpu401]]' driver module. If you don't have it already, recompile alsa with it. Now edit your modules.conf file and add these lines (get the irq and io port from your bios or windows):
 +
 
<code>
<code>
-
    alias snd-card-1 snd-mpu401
+
alias snd-card-1 snd-mpu401
-
    options snd-mpu401 port=0x330 irq=7
+
options snd-mpu401 port=0x330 irq=7
-
    alias sound-slot-1 snd-card-1
+
alias sound-slot-1 snd-card-1
-
    alias sound-service-1-0 snd-mixer-oss
+
alias sound-service-1-0 snd-mixer-oss
-
    alias sound-service-1-1 snd-seq-oss
+
alias sound-service-1-1 snd-seq-oss
-
    alias sound-service-1-3 snd-pcm-oss
+
alias sound-service-1-3 snd-pcm-oss
-
    alias sound-service-1-12 snd-pcm-oss
+
alias sound-service-1-12 snd-pcm-oss
</code>
</code>
-
Note that you might have to replace "port" and "irq" by "snd_port" and "snd_irq", respectively, depending on your kernel version. Type "modinfo snd-mpu401" to get the list of parameters supported by snd-mpu401. Now do a modprobe snd-mpu401. It should load without errors. Now check the /proc/asound/oss/sndstat file and you should see something like this under Midi-Devices:
+
 
 +
Note that you might have to replace <code>port</code> and <code>irq</code> by <code>snd_port</code> and <code>snd_irq</code>, respectively, depending on your kernel version. Type <code>modinfo snd-mpu401</code> to get the list of parameters supported by <code>snd-mpu401</code>. Now do a <code>modprobe snd-mpu401</code>. It should load without errors. Now check the <code>/proc/asound/oss/sndstat</code> file and you should see something like this under Midi-Devices:
 +
 
<code>
<code>
-
    1: MPU-401 (UART)
+
1: MPU-401 (UART)
</code>
</code>
-
That's it! Have fun :) (for example, read Takashi's HowTo? about Ti Midity as an ALSA-Sequencer-Client and then connect a MIDI-Keyboard to your MIDI-Port and you'll be able to play on it!)
+
 
 +
That's it! Have fun :) (for example, read Takashi's HowTo? about [[TiMidity]] as an ALSA-Sequencer-Client and then connect a MIDI-Keyboard to your MIDI-Port and you'll be able to play on it!)
[[Category:Howto]]
[[Category:Howto]]

Latest revision as of 19:27, 28 January 2007

How to get the MIDI-Port of the VIA8233 working

You'll need the 'snd-mpu401' driver module. If you don't have it already, recompile alsa with it. Now edit your modules.conf file and add these lines (get the irq and io port from your bios or windows):

alias snd-card-1 snd-mpu401
options snd-mpu401 port=0x330 irq=7
alias sound-slot-1 snd-card-1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

Note that you might have to replace port and irq by snd_port and snd_irq, respectively, depending on your kernel version. Type modinfo snd-mpu401 to get the list of parameters supported by snd-mpu401. Now do a modprobe snd-mpu401. It should load without errors. Now check the /proc/asound/oss/sndstat file and you should see something like this under Midi-Devices:

1: MPU-401 (UART)

That's it! Have fun :) (for example, read Takashi's HowTo? about TiMidity as an ALSA-Sequencer-Client and then connect a MIDI-Keyboard to your MIDI-Port and you'll be able to play on it!)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox