Hi,

> > Then I've installed Alsa 0.9rc2 (drivers, libs and utils packages).
> > Compilation (--with-debug=full --with-sequencer=yes --with-oss=yes
> > --with-isapnp=no) and installation ran without any problem, but the
> > situation remains the same : sound works very well (I can play samples,
> > movies, etc.) but midi seems to be completely "ignored", both by Alsa
> > (jazz complains that it can't find any midi port) and OSS emulation
> > (see below /proc/asound/oss/sndstat).
> 
> Your chipset has a MPU401 compatible MIDI port, but the VIA 8233 driver
> doesn't support it (don't ask me why).
> 
> It should work with the snd-mpu401 driver (set the snd_port and snd_irq
> parameters appropriately).
> 
> > - The "Midi Port IRQ" is by default set to 10. Other possible choice is
> > 5. But setting it to 5 makes the "Card config:" become "Via 8233 at
> > 0xe000, irq 10" in the /proc/asound/oss/sndstat, but midi remains "NOT
> > ENABLED IN CONFIG".
> 
> The MIDI port and the PCM device each need its own interrupt. With both
> drivers loaded in the above configuration, you should get MIDI at IRQ 5
> and VIA 8233 (the PCM device) at IRQ 10.
> 
        I tried yesterday what you had advised me to do : we draw
near the goal, but not completely reach it ! Indeed Alsa now seems to
partly recognize Midi.

        First I tried this configuration of /etc/modules.conf :

> alias parport_lowlevel parport_pc
> alias char-major-116 snd
> alias snd-card-0 snd-mpu401
options snd-mpu401 snd_port=330 snd_irq=5
> alias char-major-14 soundcore
> alias sound-slot-0 snd-card-0
> alias sound-service-0-0 snd-mixer-oss
> alias sound-service-0-1 snd-seq-oss
> alias sound-service-0-3 snd-pcm-oss
> alias sound-service-0-8 snd-seq-oss
> alias sound-service-0-12 snd-pcm-oss
> alias usb-controller usb-uhci
> 
        With that configuration, here is what I get with lsmod command :

Module                  Size  Used by    Not tainted
snd-pcm-oss            50596   0  (autoclean) (unused)
snd-pcm                78688   0  (autoclean) [snd-pcm-oss]
snd-timer              15840   0  (autoclean) [snd-pcm]
snd-mixer-oss          12896   0  (autoclean) [snd-pcm-oss]
snd-mpu401              2240   0  (autoclean)
snd-mpu401-uart         5020   0  (autoclean) [snd-mpu401]
snd-rawmidi            18976   0  (autoclean) [snd-mpu401-uart]
snd-seq-device          6028   0  (autoclean) [snd-rawmidi]
snd                    47080   0  (autoclean) [snd-pcm-oss snd-pcm snd-timer 
snd-mixer-oss snd-mpu401 snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               6692   3  (autoclean) [snd]
binfmt_misc             7556   1 
autofs                 12132   0  (autoclean) (unused)
ipchains               43528   7 
ide-cd                 30272   0  (autoclean)
cdrom                  32224   0  (autoclean) [ide-cd]
ext3                   67136   5 
jbd                    49400   5  [ext3]

        It feels good except that snd-seq-oss isn't loaded. I think 
it should be, shouldnt't it ?

        Now here is what I get with "cat /proc/asound/oss/sndstat" :

Sound Driver:3.8.1a-980706 (ALSA v0.9.0rc2 emulation code)
Kernel: Linux localhost.localdomain 2.4.18-3 #1 Thu Apr 18 07:32:41 EDT 2002 i686
Config options: 0

Installed drivers: 
Type 10: ALSA emulation

Card config: 
MPU-401 UART at 0x14a, IRQ 5

Audio devices: NOT ENABLED IN CONFIG

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
0: MPU-401 (UART)

Timers:
7: system timer

Mixers:
0: mixer00

        Of course sound isn't working anymore but this time
Midi seems supported, which is my main goal. But if I run jazz,
it complains about "ioctl", and more precisely here are the last
10 lines (after running jazz) that I get with dmesg command :

ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0x4044534e 
(type='S', number=0x4e)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0cc5320 
(type='S', number=0x20)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0x40345330 
(type='S', number=0x30)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0cc5320 
(type='S', number=0x20)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0x40345331 
(type='S', number=0x31)

        If I try to run Rosegarden (which uses OSS /dev/sequencer device),
the whole system freezes when I try to play a Midi file : I must turn off
power to get out of troubles !

        Ina second time I tried this other configuration of /etc/modules.conf :

> alias parport_lowlevel parport_pc
> alias char-major-116 snd
> options snd snd_cards_limit=2
> alias snd-card-0 snd-via8233
> alias snd-card-1 snd-mpu401
> options snd-mpu401 snd_port=330 snd_irq=5
> alias char-major-14 soundcore
> alias sound-slot-0 snd-card-0
> alias sound-service-0-0 snd-mixer-oss
> alias sound-service-0-1 snd-seq-oss
> alias sound-service-0-3 snd-pcm-oss
> alias sound-service-0-8 snd-seq-oss
> alias sound-service-0-12 snd-pcm-oss
> 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-8 snd-seq-oss
> alias sound-service-1-12 snd-pcm-oss
> alias usb-controller usb-uhci
> 
        With that configuration, here is what I get with lsmod command :

Module                  Size  Used by    Not tainted
snd-pcm-oss            50596   1  (autoclean)
snd-mpu401              2240   0  (autoclean)
snd-mpu401-uart         5020   0  (autoclean) [snd-mpu401]
snd-rawmidi            18976   0  (autoclean) [snd-mpu401-uart]
snd-seq-device          6028   0  (autoclean) [snd-rawmidi]
snd-mixer-oss          12896   0  (autoclean) [snd-pcm-oss]
snd-via8233             8100   1  (autoclean)
snd-pcm                78688   0  (autoclean) [snd-pcm-oss snd-via8233]
snd-timer              15840   0  (autoclean) [snd-pcm]
snd-ac97-codec         30564   0  (autoclean) [snd-via8233]
snd                    47080   0  (autoclean) [snd-pcm-oss snd-mpu401 snd-mpu401-uart 
snd-rawmidi snd-seq-device snd-mixer-oss snd-via8233 snd-pcm snd-timer snd-ac97-codec]
soundcore               6692   6  (autoclean) [snd]
binfmt_misc             7556   1 
autofs                 12132   0  (autoclean) (unused)
ipchains               43528   7 
ide-cd                 30272   0  (autoclean)
cdrom                  32224   0  (autoclean) [ide-cd]
usb-uhci               24452   0  (unused)
usbcore                73216   1  [usb-uhci]
ext3                   67136   5 
jbd                    49400   5  [ext3]

        snd-seq-oss module isn't still loaded. But without surprise,
sound is working well this time.
        Now here is what I get with "cat /proc/asound/oss/sndstat" :

Sound Driver:3.8.1a-980706 (ALSA v0.9.0rc2 emulation code)
Kernel: Linux localhost.localdomain 2.4.18-3 #1 Thu Apr 18 07:32:41 EDT 2002 i686
Config options: 0

Installed drivers: 
Type 10: ALSA emulation

Card config: 
VIA 8233 at 0xe000, irq 10
MPU-401 UART at 0x14a, IRQ 5

Audio devices:
0: VIA 8233 (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
1: MPU-401 (UART)

Timers:
7: system timer

Mixers:
0: mixer00
1: mixer10

        Finally the jazz test gives with that configuration the same "ioctl errors".
Here are the last 10 lines that I get with dmesg command :

ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0x4044534e 
(type='S', number=0x4e)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0cc5320 
(type='S', number=0x20)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0x40345330 
(type='S', number=0x30)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0dc5310 
(type='S', number=0x10)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0xc0cc5320 
(type='S', number=0x20)
ALSA ../../alsa-kernel/core/seq/seq_clientmgr.c:2094: seq unknown ioctl() 0x40345331 
(type='S', number=0x31)
ALSA ../alsa-kernel/core/pcm_lib.c:188: Unexpected hw_pointer value (stream = 0, 
delta: -1016, max jitter = 5120): wrong interrupt acknowledge?
ALSA ../alsa-kernel/core/pcm_lib.c:188: Unexpected hw_pointer value (stream = 0, 
delta: -1016, max jitter = 5120): wrong interrupt acknowledge?

        Moreover the Rosegarden test still freezes my system.

        Has anyone got an idea about what's happening now ?

        Thanks, Lionel





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to