@related : Audio AmiloA ALSA MIDI Sound Laptop Multimedia audio controller OSS SFX MAO ALi
ALSA lib seq_hw.c:455:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
# http://www.gentooforum.de/thread.php?threadid=4585&page=2&sid=b37de51de66796271d5913b232d9f51e
#[[RzR]]@[[AmiloA]]:[[Debian]]$ lspci 00:08.0 [[Multimedia audio controller]]: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
#[[RzR]]@[[AmiloA]]:[[Debian]]$ lspci -n 0000:00:08.0 Class 0401: 10b9:5451 (rev 02)
#[[RzR]]@[[AmiloA]]:[[Debian]]$ lspci -v -s 0:08 0000:00:08.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02) Subsystem: Unknown device 1734:100a Flags: bus master, medium devsel, latency 64, IRQ 11 I/O ports at 8800 [[size=256]] Memory at f0402000 (32-bit, non-prefetchable) [[size=4K]] Capabilities: [[dc]] Power Management version 2
cat /proc/asound/cards | head 0 [[A5451 ]]: ALI5451 - ALI 5451 ALI 5451 at 0x8800, irq 11
/etc/init.d/alsa unload sudo modprobe -rv snd-ali5451 ; sudo modprobe -v snd-ali5451 ; dmesg | tail # Unloading ALSA sound driver modules: snd-ac97-codec snd-ac97-bus snd-pcm snd-timer snd-page-alloc. # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/core/snd-page-alloc.ko # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/core/snd.ko # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/core/snd-timer.ko # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/core/snd-pcm.ko # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/pci/ac97/snd-ac97-bus.ko # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/pci/ac97/snd-ac97-codec.ko # insmod /lib/modules/2.6.16.19-k7-amiloa/kernel/sound/pci/ali5451/snd-ali5451.ko # ACPI: PCI Interrupt 0000:00:08.0[[A]] -> Link [[LNKH]] -> GSI 11 (level, low) -> IRQ 11 # AC'97 1 does not respond - RESET # AC'97 1 access is not valid [[0xffffffff]], removing mixer. # ali mixer 1 creating error.
Test microphone plug :
arecord > tmp.wav ; mplayer tmp.wav
http://www.alsa-project.org/alsa-doc/doc-php/template.php?module=ali5451
cat /proc/asound/A5451/codec97#0/ac97#0-0 0-0/0: Realtek ALC202 rev 0
Capabilities : -headphone out- DAC resolution : 20-bit ADC resolution : 18-bit 3D enhancement : Realtek 3D Stereo Enhancement
Current setup Mic gain : +0dB [[+0dB]] POP path : pre 3D Sim. stereo : off 3D enhancement : off Loudness : off Mono output : Mic Mic select : Mic1 ADC/DAC loopback : off Double rate slots: 10/11 Extended ID : codec=0 rev=1 AMAP DSA=0 SPDIF DRA VRA Extended status : SPCV SPDIF=3/4 VRA PCM front DAC : 48000Hz PCM ADC : 48000Hz SPDIF Control : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
# http://www.realtek.com.tw/products/products1-2.aspx?modelid=29
cat /proc/asound/oss/sndstat Sound Driver:3.8.1a-980706 (ALSA v1.0.8 emulation code) Kernel: Linux nrv 2.6.11-k7-amiloa #2 Wed Mar 2 20:26:21 CET 2005 i686 Config options: 0
Installed drivers: Type 10: ALSA emulation
Card config: ALI 5451 at 0x8800, irq 11
Audio devices: 0: ALI 5451 (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers: 7: system timer
Mixers: 0: Realtek ALC202 rev 0
On other Laptop Mixer is :
cat /proc/asound/A5451/codec97#0/ac97#0-0
Analog Device 1886 # [[Compaq]] Laptop 0-0/0: Conexant Cx20468 rev 1 # <mRyOuNg> [[HP-Laptop]]
cat /proc/asound/devices 16: [[0- 0]]: digital audio playback 24: [[0- 0]]: digital audio capture 0: [[0- 0]]: ctl 33: : timer
On AmiloA Laptop (0-0/0: Realtek ALC202 rev 0) :
My conclusion is that there is not usable “Master control”, but “PCM” can be used as.
On Compaq Laptop (Analog Device ):
(but MIDI works fine under Windows) …
# uname -a # Linux nrv 2.6.11-k7-amiloa #2 Wed Mar 2 20:26:21 CET 2005 i686 GNU/Linux
$ cat /proc/asound/A5451/codec97#0/ac97#0-0
0-0/0: Analog Devices AD1981B Capabilities : -headphone out- DAC resolution : 20-bit ADC resolution : 16-bit ...
AD1981B http://www.analog.com/en/prod/0,2934,AD1981B,00.html
sudo modprobe -rv trident ; sudo modprobe -v trident ; dmesg | tail insmod /lib/modules/2.6.13-k7-amiloa/kernel/sound/oss/ac97_codec.ko insmod /lib/modules/2.6.13-k7-amiloa/kernel/sound/oss/trident.ko dmesg # Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.10j-2.6, 13:31:15 Sep 3 2005
Alsa driver : snd-ali5451 @ http://www.alsa-project.org/
/etc/init.d/alsa unload sudo modprobe -rv snd-ali5451 ; sudo modprobe -v snd-ali5451 ; dmesg | tail root@ttyp6[[rzr]]# hexdump /dev/midi hexdump: /dev/midi: No such device hexdump: /dev/midi: Bad file descriptor there should show lotz of ramdom numbers while using it.
modprobe snd-emux-synth #must compile alsa again
The old /dev/sequencer stuff died with ISA bus midi synths. None of the PCI sound drivers support it.
#rzr@[[AmiloA]]$ uname -a Linux nrv 2.6.7-amiloa #3 Sat Jun 19 15:53:35 CEST 2004 i686 GNU/Linux
#rzr@nrv:[[Debian]]/$ lsmod | grep snd snd_seq_oss 30976 0 snd_seq_midi_event 6144 1 snd_seq_oss snd_seq 47504 4 snd_seq_oss,snd_seq_midi_event snd_seq_device 6792 2 snd_seq_oss,snd_seq snd_ali5451 20680 1 snd_ac97_codec 65924 1 snd_ali5451 snd_pcm_oss 48808 0 snd_mixer_oss 17408 2 snd_pcm_oss snd_pcm 82212 2 snd_ali5451,snd_pcm_oss snd_page_alloc 9224 1 snd_pcm snd_timer 20228 2 snd_seq,snd_pcm snd 46308 10 snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_ali5451,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer soundcore 7264 3 trident,snd
#rzr@nrv:[[Debian]]/$ playmidi /usr/share/games/pinball/tux/intro.mid Playmidi 2.4 Copyright (C) 1994-1997 Nathan I. Laredo, AWE32 by Takashi Iwai This is free software with ABSOLUTELY NO WARRANTY. For details please see the file COPYING. open /dev/sequencer: No such device
#rzr@nrv:[[Debian]]/$ dmesg | tail no device found
http://seclists.org/lists/linux-kernel/2002/Jul/2899.html
http://www.alsa-project.org/alsa-doc/doc-php/template.php?module=ali5451
# cat /etc/modules.conf
# ALSA portion alias snd-card-0 snd-interwave alias snd-card-1 snd-cmipci options snd-cmipci id="first" enable_midi="1"
# uname -a Linux nrv 2.4.22-amiloa #9 mar nov 4 18:51:57 CET 2003 i686 GNU/Linux # apt-get alsa-source # compile, install etc # modprobe -r trident # modprobe -v snd-ali5451 # lsmod snd 28516 0 [[snd-ali5451 snd-ac97-codec snd-pcm-oss snd-pcm snd-timer snd-mixer-oss]] # alsamixer # unmute
# playmidi -v ~/mnt/public/white.zombie.online.fr/d/zombie/sfx/Electric_Head_Pt_2.mid open /dev/sequencer: No such devic
http://seclists.org/lists/linux-kernel/2002/Jul/2899.html
“The old /dev/sequencer stuff died with ISA bus midi synths. None of the PCI sound drivers support it.”
# dmesg : Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.10h, 15:49:42 Mar 26 2003 PCI: Found IRQ 11 for device 00:08.0 trident: ALi Audio Accelerator found at IO 0x8800, IRQ 11 ac97_codec: AC97 Audio codec, id: ALG64(Unknown) ac97_codec: AC97 Audio codec, id: ALG64(Unknown)
# lspci -v -s 0:08 00:08.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02) Subsystem: Unknown device 1734:100a Flags: bus master, medium devsel, latency 64, IRQ 11 I/O ports at 8800 [[size=256]] Memory at f0402000 (32-bit, non-prefetchable) [[size=4K]] Capabilities: [[dc]] Power Management version 2
# scanpci -v pci bus 0x0000 cardnum 0x08 function 0x00: vendor 0x10b9 device 0x5451 ALi Corporation M5451 PCI AC-Link Controller Audio Device CardVendor 0x1734 card 0x100a (Card unknown) STATUS 0xc290 COMMAND 0x0007 CLASS 0x04 0x01 0x00 REVISION 0x02 BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x00 BASE0 0x00008801 addr 0x00008800 I/O BASE1 0xf0402000 addr 0xf0402000 MEM MAX_LAT 0x18 MIN_GNT 0x02 INT_PIN 0x01 INT_LINE 0x0b
# On Alsa it is Identified as : # alsamixer Card: ALI 5451 Chip: Avance Logic ALC202 rev 0
# lsmod # if using OSS trident 29076 2 ac97_codec 9992 0 [[trident]] soundcore 3364 5 [[sound trident]] pcigame 1384 0 [[trident]] gameport 1276 0 [[pcigame]] sound 54540 0
#rzr@nrv:rzr/$ lsmod | grep snd #if using ALSA snd-seq-oss 25792 0 (unused) snd-seq-midi-event 3328 0 [[snd-seq-oss]] snd-seq 34448 2 [[snd-seq-oss snd-seq-midi-event]] snd-seq-device 4016 0 [[snd-seq-oss snd-seq]] snd-pcm-oss 37956 1 snd-mixer-oss 12856 1 [[snd-pcm-oss]] snd-ali5451 12740 2 snd-pcm 57860 0 [[snd-pcm-oss snd-ali5451]] snd-timer 13084 0 [[snd-seq snd-pcm]] snd-page-alloc 5748 0 [[snd-pcm]] snd-ac97-codec 39928 0 [[snd-ali5451]] snd 28516 0 [[snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-ali5451 snd-pcm snd-timer snd-ac97-codec]] soundcore 3652 5 [[snd]]
demolinux: was not properly detected knoppix : ok Module trident.o was detected on boot with the redhat scripts (kudzu).
Sound works with trident.o from kernel or the ali5451-driver from alsa. The alsa driver should be better. Maybe midi works with alsa
Alsa driver on kernel 2.6 : 'snd-ali5451.o'
# modprobe -v snd-trident insmod /lib/modules/2.6.0-test4/kernel/sound/pci/trident/snd-trident.ko
But you can hear the Interruptions through the headphone. It seem that the mixer is shuffled : master is assigned as 'pcm1' and 'pcm1' mapped to 'pcm2'.
MIDI is supported on windows, but I don't know how to on linux.
#root@nrv# modprobe v_midi
#root@nrv# playmidi -v ~/mnt/public/white.zombie.online.fr/d/zombie/sfx/Electric_Head_Pt_2.mid
Playmidi 2.4 Copyright (C) 1994-1997 Nathan I. Laredo, AWE32 by Takashi Iwai This is free software with ABSOLUTELY NO WARRANTY. For details please see the file COPYING. playmidi: No playback device found.
# date > /dev/midi0 bash: /dev/midi0: No such device
# cat /dev/sndstat No such file
# apt-get install timidity timidity-patches # 32Mb
# ls /lib/modules/2.4.20-xfs/kernel/drivers/sound/
Recording with krecord from embeded mic was ok.
$ pmidi -l # ~/rzr.online.fr/docs/zombie/sfx/blacksunshine.mid Could not open sequencer No such file or directory
$ lsmod | grep midi snd_seq_midi 7072 0 snd_seq_midi_event 6016 2 snd_seq_oss,snd_seq_midi snd_seq 48144 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event snd_rawmidi 20256 1 snd_seq_midi snd_seq_device 7180 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi snd 44644 12 snd_seq_oss,snd_seq,snd_rawmidi,snd_seq_device,snd_ali5451,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
$ pmidi -l # ~/rzr.online.fr/docs/zombie/sfx/blacksunshine.mid Port Client name Port name 62:0 Midi Through Midi Through Port-0
http://www.cs.helsinki.fi/linux/linux-kernel/2002-28/0704.html
The weird stuff is that this card is MIDI capable using sdlmixer (ie; Pinball)
An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x140 Function=[[Unknown.]] Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions.
Current Java thread: at com.sun.media.sound.MixerThread.runNative(Native Method) at com.sun.media.sound.MixerThread.run(MixerThread.java:314)