LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   MIDI with ALSA on ESS1869 (http://www.linuxquestions.org/questions/linux-hardware-18/midi-with-alsa-on-ess1869-152504/)

xianath 03-02-2004 03:50 AM

MIDI with ALSA on ESS1869
 
Hi everyone.

This is my first post here so I might mess something up despite my careful Reading The Fine Manual. Please let me know and I'll try do things better.

I have installed Debian/Sid on a Siemens Scenic Mobine 750. While a laptop, the question is purely sound-related so I'm not posting to the Mobile forum (getting it to install at all might have been suitable there but I'm past that now).

I'm not a Linux newbie having started five years ago, it's just that I've only tried using it as a desktop system in 1999 and it was a mostly futile attempt back then. Now I'm pretty much in business if it were not for MIDI playback.

I am running kernel 2.4.24 and ALSA is version 1.0.2c-3 compiled and installed the Debian way. Kernel-tree sound is configured as a module and no drivers, OSS or legacy, are configured.

I've had some problems with the snd-es18xx module so I added this to /etc/modutils/alsa

options snd-es18xx isapnp=0 port=0x220 mpu_port=0x330 fm_port=0x388 \
irq=5 dma1=1 dma2=3
probeall snd-es18xx snd-pcm snd-mpu401-uart snd-opl3-lib snd-pnp
probeall snd-mpu401-uart snd-rawmidi
probeall snd-rawmidi snd-seq-device
probeall snd-opl3-lib snd-timed snd-hwdep
probeall snd-pcm snd-page-alloc
probeall snd-pnp isa-pnp

To see which modules ALSA installs, I use the following (all on one line and it won't work if esd or artsd are working with a device different from /dev/null):

Code:

% for a in `lsmod | egrep 's(ou)?nd' | cut -f 1 -d ' '`; do rmmod -r $a > /dev/null; done; /etc/init.d/alsa restart && lsmod | egrep 's(ou)?nd'

snd-es18xx            19464  2  (autoclean)
snd-pnp                3136  0  (autoclean) [snd-es18xx]
snd-pcm                61476  1  (autoclean) [snd-es18xx]
snd-opl3-lib            6372  0  (autoclean) [snd-es18xx]
snd-timer              14532  0  (autoclean) [snd-pcm snd-opl3-lib]
snd-mpu401-uart        3360  0  (autoclean) [snd-es18xx]
snd-rawmidi            13472  0  (autoclean) [snd-mpu401-uart]
snd-hwdep              5280  0  [snd-opl3-lib]
snd-seq-device          4192  0  [snd-opl3-lib snd-rawmidi]
snd-page-alloc          6388  0  [snd-pcm]
snd                    32292  1  [snd-es18xx snd-pcm snd-opl3-lib snd-timer snd-mpu401-uart snd-rawmidi snd-hwdep snd-seq-device]
soundcore              3844  3  [snd]
isa-pnp                32880  0  [snd-es18xx snd-pnp]

% pmidi -l

 Port    Client name                      Port name
 64:0    Rawmidi 0 - MPU-401 (UART) 0-0    MPU-401 (UART) 0-0
 65:0    OPL3 FM synth                    OPL3 FM Port

% aconnect -li

client 0: 'System' [type=kernel]
    0 'Timer          '
    1 'Announce        '
        Connecting To: 63:0
client 64: 'Rawmidi 0 - MPU-401 (UART) 0-0' [type=kernel]
    0 'MPU-401 (UART) 0-0'

% aconnect -lo

client 0: 'System' [type=kernel]
    0 'Timer          '
    1 'Announce        '
        Connecting To: 63:0
client 64: 'Rawmidi 0 - MPU-401 (UART) 0-0' [type=kernel]
    0 'MPU-401 (UART) 0-0'
marius:/# aconnect -lo
client 64: 'Rawmidi 0 - MPU-401 (UART) 0-0' [type=kernel]
    0 'MPU-401 (UART) 0-0'
client 65: 'OPL3 FM synth' [type=kernel]
    0 'OPL3 FM Port

% ps ax | grep artsd

  671 ?        R      3:38 artsd -F 14 -S 4096 -a alsa -n -b 16 -s 4 -m artsmessage -l 3 -f

Not sure if the last one helps since I don't see MIDI mentioned anywhere on that line but who knows :)

Anyway, this is the setup and it's not working. And I *know* I've had it working a few kernel compiles and dist-upgrades ago.

Can anyone shed some light on it please? I want to get this lapotp running as well as possible so I can send the info to tuxmobile.org (they are missing an entry for this particular machine).

Kind regards,
Peter Popov


All times are GMT -5. The time now is 02:16 PM.