Dear all,

First of all, I would like to thank all those responsible for ALSA. It's a great project.

I have kernel 2.4.20, on-board via8235 and pci als4000, clean compile of alsa-0.9.0rc8a from cvs. I can't get SPDIF to work when I try 'aplay -Dspdif foo.wav'. It spews out this error:

ALSA lib conf.c:2666:(snd_config_hooks_call) functions snd_config_hook_load_for_all_cards returned error: Invalid argument
ALSA lib pcm.c:1733:(snd_pcm_open_conf) Invalid type for PCM spdif definition (id: spdif, value: cards.pcm.iec958)
aplay: main:479: audio open error: Invalid argument


I've read that SPDIF is supported (via DSX3 channel?), or is it? With via8235, I've tested multichannel playback but I can only hear 3 simultaneous MP3s (I used 4 instances of alsaplayer!), the 4th is silent.
What could be wrong? I'm not a programmer, so I don't have any clues, just hunches. I very much appreciate any suggestions!!!


I've included my conf files,logs, procs, etc. I don't know if everything is in order.

[sh]$ cat /etc/modules.conf (added als4000 so I can play midis, dont want to use midi2wav (timidity); is this an overkill?)
alias char-major-116 snd
alias snd-card-0 snd-via82xx
alias sound-slot-0 snd-card-0
alias snd-card-1 snd-als4000
alias sound-slot-1 snd-card-1
alias snd-card-2 snd-mpu401
alias sound-slot-2 snd-card-2
options snd device_mode=0666 device_gid=0 device_uid=0 cards_limit=3
options snd-card-0 enable=1
options snd-card-1 enable=1
options snd-card-2 port=0x0300 irq=10 enable=1
# OSS portion
alias char-major-14 soundcore
# 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
# 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
# card #2
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-1 snd-seq-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-8 snd-seq-oss
alias sound-service-2-12 snd-pcm-oss
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :


[sh]$ /sbin/lsmod (whewww...)
snd-seq-midi 4416 0 (autoclean) (unused)
snd-seq-oss 27584 0
snd-seq-midi-event 5440 0 [snd-seq-midi snd-seq-oss]
snd-pcm-oss 43108 0 (autoclean)
snd-mixer-oss 13472 0 (autoclean) [snd-pcm-oss]
snd-mpu401 2080 0 (autoclean)
snd-opl3-synth 11100 0 (unused)
snd-seq-instr 7052 0 [snd-opl3-synth]
snd-seq-midi-emul 6592 0 [snd-opl3-synth]
snd-seq 43852 2 [snd-seq-midi snd-seq-oss snd-seq-midi-event snd-opl3-synth snd-seq-instr snd-seq-midi-emul]
snd-ainstr-fm 2256 0 [snd-opl3-synth]
snd-als4000 6212 0
snd-sb-common 11724 0 [snd-als4000]
snd-opl3-lib 7616 0 [snd-opl3-synth snd-als4000]
snd-hwdep 5600 0 [snd-opl3-lib]
snd-via82xx 13892 4
snd-ac97-codec 38800 0 [snd-via82xx]
snd-pcm 76960 3 [snd-pcm-oss snd-als4000 snd-via82xx]
snd-timer 17856 0 [snd-seq snd-opl3-lib snd-pcm]
snd-page-alloc 7700 0 [snd-via82xx snd-pcm]
snd-mpu401-uart 4380 0 [snd-mpu401 snd-als4000 snd-via82xx]
snd-rawmidi 16768 0 [snd-seq-midi snd-mpu401-uart]
snd-seq-device 5624 0 [snd-seq-midi snd-seq-oss snd-opl3-synth snd-seq snd-opl3-lib snd-rawmidi]
snd 40160 5 [snd-seq-midi snd-seq-oss snd-seq-midi-event snd-pcm-oss snd-mixer-oss snd-mpu401 snd-opl3-synth snd-seq-instr snd-seq snd-als4000 snd-sb-common snd-opl3-lib snd-hwdep snd-via82xx snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 6244 15 [snd]


[sh]$ dmesg
...
PCI: Setting latency timer of device 00:11.5 to 64
devfs_register(unknown): could not append to parent, err: -17
devfs_register(unknown): could not append to parent, err: -17
ALSA ../../alsa-kernel/drivers/mpu401/mpu401.c:76: specify port
MPU-401 device not found or device busy
devfs_register(unknown): could not append to parent, err: -17
devfs_register(unknown): could not append to parent, err: -17
devfs_register(unknown): could not append to parent, err: -17
devfs_register(unknown): could not append to parent, err: -17
devfs_register(unknown): could not append to parent, err: -17
devfs_register(unknown): could not append to parent, err: -17
...

(what are these error msgs?)

[sh]$ ls -l /proc/asound (nice interface :))
total 0
lrwxrwxrwx    1 root     root            0 Mar  6 22:50 8235 -> card0
lrwxrwxrwx    1 root     root            0 Mar  6 22:50 ALS4000 -> card1
dr-xr-xr-x    6 root     root            0 Mar  6 22:50 card0
dr-xr-xr-x    4 root     root            0 Mar  6 22:50 card1
dr-xr-xr-x    2 root     root            0 Mar  6 22:50 card2
-r--r--r--    1 root     root            0 Mar  6 22:50 cards
dr-xr-xr-x    2 root     root            0 Mar  6 22:12 dev
-r--r--r--    1 root     root            0 Mar  6 22:50 devices
-r--r--r--    1 root     root            0 Mar  6 22:50 hwdep
-r--r--r--    1 root     root            0 Mar  6 22:50 modules
dr-xr-xr-x    2 root     root            0 Mar  6 22:50 oss
-r--r--r--    1 root     root            0 Mar  6 22:50 pcm
dr-xr-xr-x    2 root     root            0 Mar  6 22:50 seq
-r--r--r--    1 root     root            0 Mar  6 22:50 timers
lrwxrwxrwx    1 root     root            0 Mar  6 22:50 UART -> card2
-r--r--r--    1 root     root            0 Mar  6 22:50 version

[sh]$ cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v0.9.0rc8a emulation code)
Kernel: Linux nexus.org 2.4.20 #1 Tue Jan 7 13:03:12 PHT 2003 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
VIA 8235 at 0xd800, irq 11
Avance Logic ALS4000 at 0xec00, irq 11
MPU-401 UART at 0x300, IRQ 10

Audio devices:
0: VIA 8235 (DUPLEX)
1:  (DUPLEX)

Synth devices:
0: OPL3 FM synth

Midi devices:
1: MPU-401 (UART) 1-0
2: MPU-401 (UART) 2-0

Timers:
7: system timer

Mixers:
0: VIA Technologies VIA1612A
1: ALS4000
2: mixer20

[sh]$ aplay -l
card 0:8235 [VIA8235], device 0: VIA 8235 [VIA 8235]
        Subdevices: 4/4
        Subdevice #0: subdevice #0
        Subdevice #1: subdevice #1
        Subdevice #2: subdevice #2
        Subdevice #3: subdevice #3
card 0:8235 [VIA8235], device 1: VIA 8235 [VIA 8235]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
card 1:ALS4000 [Avance Logic ALS4000], device 0: ALS4000 DSP []
        Subdevices: 1/1
        Subdevice #0: subdevice #0

[sh]$ ls -l /proc/asound/dev (I seem to be missing something, another pcmCXDX perhaps?)
total 0
crw-rw-rw- 1 root root 116, 0 Mar 6 22:13 controlC0
crw-rw-rw- 1 root root 116, 32 Mar 6 22:57 controlC1
crw-rw-rw- 1 root root 116, 64 Mar 6 22:57 controlC2
crw-rw-rw- 1 root root 116, 36 Mar 6 22:57 hwC1D0
crw-rw-rw- 1 root root 116, 40 Mar 6 22:57 midiC1D0
crw-rw-rw- 1 root root 116, 72 Mar 6 22:57 midiC2D0
crw-rw-rw- 1 root root 116, 24 Mar 6 22:57 pcmC0D0c
crw-rw-rw- 1 root root 116, 16 Mar 6 22:40 pcmC0D0p
crw-rw-rw- 1 root root 116, 25 Mar 6 22:57 pcmC0D1c
crw-rw-rw- 1 root root 116, 17 Mar 6 22:57 pcmC0D1p
crw-rw-rw- 1 root root 116, 56 Mar 6 22:57 pcmC1D0c
crw-rw-rw- 1 root root 116, 48 Mar 6 22:57 pcmC1D0p
crw-rw-rw- 1 root root 116, 1 Mar 6 22:57 seq
crw-rw-rw- 1 root root 116, 33 Mar 6 22:57 timer


[sh]$ cat /proc/asound/devices
 0: [0- 0]: ctl
17: [0- 1]: digital audio playback
25: [0- 1]: digital audio capture
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
 1:       : sequencer
33:       : timer
32: [1- 0]: ctl
36: [1- 0]: hardware dependent
48: [1- 0]: digital audio playback
56: [1- 0]: digital audio capture
40: [1- 0]: raw midi
64: [2- 0]: ctl
72: [2- 0]: raw midi

[sh]$ cat .asoundrc (should I use this?)
pcm.multi {
        type multi;
        slaves.a.pcm "hw:0,0";
        slaves.a.channels 2;
        slaves.b.pcm "hw:1,0";
        slaves.b.channels 2;
        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave b;
        bindings.2.channel 0;
        bindings.3.slave b;
        bindings.3.channel 1;
}
ctl.multi {
        type hw;
        card 0;
}
pcm.ttable {
        type route;
        slave.pcm "multi";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;
}
ctl.ttable {
        type hw;
        card 0;
}






_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to