linux user group brescia

immagine del castello

Archivio della mailing list

MIDI con ALSA (lungo)

Enrico Colombini erix a erix.it
Mer 1 Gen 2003 16:55:22 UTC
Non riesco a far andare le applicazioni MIDI con KDE 3 e ALSA... ma forse
e' meglio che cominci dall'inizio.

La scheda (Yamaha OPL3-SAx) non e' riconosciuta in automatico da Mandrake 9
(ne' da Knoppix, con altri non ho provato) benche' i dati indicati come
'Priority preferred' in /proc/isapnp siano uguali a quelli che vedo con
Windows. Pare tuttavia che usi invece quelli "Alternate resources 0:1"; in
ogni caso si direbbe che funzioni.

OSS:
----
Caricando i moduli opl3sa2 e opl3 con le opzioni corrette l'audio funziona,
aRts parte e KDE vede due device MIDI: la porta fisica e la scheda.
L'unica stranezza e' il mixer 'sdoppiato'.
Kmid funziona.

Io pero' vorrei usare ALSA (0.9.x), anche per poter provare diversi programmi.

ALSA:
-----
Impostando in /etc/modules.conf quanto sotto riportato (con o senza le
opzioni indicate) anche ALSA funziona, aRts lo vede e suona, il mixer non
ha problemi.
KDE pero' non vede alcun device MIDI, ne' la porta ne' la scheda.
Kmid va direttamente in crash senza passare dal via.
(Timidity ovviamente va, ma non fa testo dato che non usa il MIDI).


Embe'?
------
Riporto sotto l'elenco dei moduli e il contenuto di /proc/asound/seq/oss,
da cui parrebbe che (tra l'altro) pure l'emulazione OSS-MIDI sia installata
e funzionante.

Cos'e' che non ho capito?

  .Erix.


===========================
 dmesg (prima della cura):
===========================
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
ad1848: OPL3-SA2 WSS mode detected
ad1848: ISAPnP reports 'OPL3-SA2 WSS mode' at i/o 0xe80, irq 5, dma 1, 3
opl3sa2: chipset version = 0x4
opl3sa2: Found OPL3-SA3 (YMF715E or YMF719E)
opl3sa2: 1 PnP card(s) found.
opl3sa2: Deactivated ISA PnP card 0 (active=0)
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
ad1848: OPL3-SA2 WSS mode detected
ad1848: ISAPnP reports 'OPL3-SA2 WSS mode' at i/o 0xe80, irq 5, dma 1, 3
opl3sa2: chipset version = 0x4
opl3sa2: Found OPL3-SA3 (YMF715E or YMF719E)
opl3sa2: 1 PnP card(s) found.
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
opl3sa2: Deactivated ISA PnP card 0 (active=0)
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
ad1848: OPL3-SA2 WSS mode detected
ad1848: ISAPnP reports 'OPL3-SA2 WSS mode' at i/o 0xe80, irq 5, dma 1, 3
opl3sa2: chipset version = 0x4
opl3sa2: Found OPL3-SA3 (YMF715E or YMF719E)
opl3sa2: Search for a card at 0x880.
opl3sa2: Control I/O port 0x370 is not a YMF7xx chipset!
opl3sa2: There was a problem probing one  of the ISA PNP cards, continuing
opl3sa2: Control I/O port 0x370 is not a YMF7xx chipset!
opl3sa2: There was a problem probing one  of the ISA PNP cards, continuing
opl3sa2: Control I/O port 0x370 is not a YMF7xx chipset!
opl3sa2: There was a problem probing one  of the ISA PNP cards, continuing
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
opl3sa2: Deactivated ISA PnP card 0 (active=0)

----------------------------------------------------------
/etc/modules.conf (con ALSA funzionante, tranne il MIDI):
----------------------------------------------------------
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-opl3sa2

# module options should go here 
### con o senza non cambia nulla, non so se li vede ma se metto anche ###
### snd_isapnp=0 si pianta con tutte le combinazioni che ho provato   ###
#options snd-opl3sa2 snd_index=0 snd_id=CARD_0 snd_port=0x370 \
#        snd_sb_port=0x220 snd_wss_port=0x530 snd_midi_port=0x330 \
#        snd_fm_port=0x388 snd_irq=5 snd_dma1=0 snd_dma2=1

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
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

-----------------------------------------------------------------
/proc/isapnp (senza opzioni di indirizzi in /etc/modules.conf):
-----------------------------------------------------------------
Card 1 'YMH0020:OPL3-SAX Sound Board' PnP version 1.0
  Logical device 0 'YMH0021:Unknown'
    Device is active
    Active port 0x240,0xe80,0x388,0x300,0x100
    Active IRQ 5 [0x2]
    Active DMA 1,3
    Resources 0
      Priority preferred
      Port 0x220-0x220, align 0xf, size 0x10, 16-bit address decoding
      Port 0x530-0x530, align 0x7, size 0x8, 16-bit address decoding
      Port 0x388-0x388, align 0x3, size 0x4, 16-bit address decoding
      Port 0x330-0x330, align 0x1, size 0x2, 16-bit address decoding
      Port 0x370-0x370, align 0x1, size 0x2, 16-bit address decoding
      IRQ 5 High-Edge
      DMA 0 8-bit byte-count type-A
      DMA 1 8-bit byte-count type-A
      Alternate resources 0:1
        Priority acceptable
        Port 0x240-0x240, align 0xf, size 0x10, 16-bit address decoding
        Port 0xe80-0xe80, align 0x7, size 0x8, 16-bit address decoding
        Port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
        Port 0x300-0x300, align 0x1, size 0x2, 16-bit address decoding
        Port 0x100-0xffe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 5,7,2/9,10,11 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
        DMA 0,1,3 8-bit byte-count type-A
      Alternate resources 0:2
        Priority functional
        Port 0x220-0x280, align 0xf, size 0x10, 16-bit address decoding
        Port 0x530-0xf48, align 0x7, size 0x8, 16-bit address decoding
        Port 0x388-0x3f8, align 0x7, size 0x4, 16-bit address decoding
        Port 0x300-0x334, align 0x1, size 0x2, 16-bit address decoding
        Port 0x100-0xffe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 3,5,7,2/9,10,11 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
        DMA 0,1,3 8-bit byte-count type-A
  Logical device 1 'YMH0022:Unknown'
    Compatible device PNPb02f
    Device is not active
    Active DMA 0,0
    Resources 0
      Priority preferred
      Port 0x201-0x201, align 0x0, size 0x1, 16-bit address decoding
      Alternate resources 0:1
        Priority acceptable
        Port 0x202-0x202, align 0x0, size 0x1, 16-bit address decoding
      Alternate resources 0:2
        Priority acceptable
        Port 0x203-0x203, align 0x0, size 0x1, 16-bit address decoding
      Alternate resources 0:3
        Priority functional
        Port 0x204-0x20f, align 0x0, size 0x1, 16-bit address decoding

----------------------------------------------------------
lsmod (con ALSA funzionante, tranne il MIDI):
----------------------------------------------------------
Module                  Size  Used by    Not tainted
mga                    92160  16 
agpgart                31840   3  (autoclean)
lp                      6720   0 
parport_pc             21672   1 
parport                23936   1  [lp parport_pc]
sr_mod                 15096   0  (autoclean) (unused)
floppy                 49340   0  (autoclean)
snd-seq-midi            3680   0  (autoclean) (unused)
snd-opl3-synth          9860   0  (autoclean) (unused)
snd-seq-instr           4816   0  (autoclean) [snd-opl3-synth]
snd-seq-midi-emul       4880   0  (autoclean) [snd-opl3-synth]
snd-ainstr-fm           1780   0  (autoclean) [snd-opl3-synth]
snd-seq-oss            26176   0  (unused)
snd-seq-midi-event      3208   0  [snd-seq-midi snd-seq-oss]
snd-seq                33264   2  [snd-seq-midi snd-opl3-synth
snd-seq-instr snd-seq-midi-emul snd-seq-oss snd-seq-midi-event]
snd-pcm-oss            36932   0  (unused)
snd-mixer-oss           9016   1  [snd-pcm-oss]
snd-opl3sa2             7048   1 
snd-cs4231-lib         14088   0  [snd-opl3sa2]
snd-mpu401-uart         2752   0  [snd-opl3sa2]
snd-rawmidi            12864   0  [snd-seq-midi snd-mpu401-uart]
snd-opl3-lib            5764   0  [snd-opl3-synth snd-opl3sa2]
snd-seq-device          3836   0  [snd-seq-midi snd-opl3-synth snd-seq-oss
snd-seq snd-rawmidi snd-opl3-lib]
snd-hwdep               3840   0  [snd-opl3-lib]
snd-pcm                55808   0  [snd-pcm-oss snd-opl3sa2 snd-cs4231-lib]
snd-timer               9964   0  [snd-seq snd-cs4231-lib snd-opl3-lib
snd-pcm]
snd                    24804   0  [snd-seq-midi snd-opl3-synth
snd-seq-instr snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss
snd-mixer-oss snd-opl3sa2 snd-cs4231-lib snd-mpu401-uart snd-rawmidi
snd-opl3-lib snd-seq-device snd-hwdep snd-pcm snd-timer]
ppp_async               7456   0  (unused)
ppp_generic            20064   0  [ppp_async]
slhc                    5072   0  [ppp_generic]
af_packet              13000   0  (autoclean)
8139too                14472   1  (autoclean)
mii                     1152   0  (autoclean) [8139too]
nls_iso8859-1           2844   1  (autoclean)
nls_cp850               3580   1  (autoclean)
vfat                    9588   1  (autoclean)
fat                    31864   0  (autoclean) [vfat]
supermount             14340   2  (autoclean)
ide-cd                 28712   0 
cdrom                  26848   0  [sr_mod ide-cd]
tuner                   9536   0  (autoclean) (unused)
bttv                   66880   0 
i2c-algo-bit            7432   0  [bttv]
i2c-core               15332   0  [tuner bttv i2c-algo-bit]
soundcore               3780   0  [snd bttv]
videodev                5792   2  [bttv]
ide-scsi                8212   0 
scsi_mod               90372   2  [sr_mod ide-scsi]
usb-uhci               21676   0  (unused)
usbcore                58304   1  [usb-uhci]
rtc                     6560   0  (autoclean)

-------------------------------------------------------------
/proc/asound/seq/oss (con ALSA funzionante, tranne il MIDI):
-------------------------------------------------------------
OSS sequencer emulation version 0.1.8
ALSA client number 63
ALSA receiver port 0

Number of applications: 0

Number of synth devices: 1

synth 0: [OPL3 FM synth]
  type 0x0 : subtype 0x1 : voices 18
  capabilities : ioctl enabled / load_patch enabled

Number of MIDI devices: 2

midi 0: [MIDI 0-0] ALSA port 64:0
  capability read/write / opened none

midi 1: [OPL3 Port] ALSA port 65:0
  capability write / opened none




Maggiori informazioni sulla lista Lug