Jan Ritzerfeld wrote:
Am Freitag, 27. Januar 2006 00:31 schrieb Joerg Kampmann:
Jan Ritzerfeld wrote: (...). das kommt bei mir heraus: kampmann@ibk-node14:~/Tests/Aufnahmen> strace -e trace=file aplay test02.wav execve("/usr/bin/aplay", ["aplay", "test02.wav"], [/* 80 vars */]) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=110744, ...}) = 0 open("/usr/lib/libasound.so.2", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=746740, ...}) = 0 open("/lib/tls/libm.so.6", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=178573, ...}) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=13814, ...}) = 0 open("/lib/tls/libpthread.so.0", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=93182, ...}) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=1394943, ...}) = 0 open("/lib/libresmgr.so.0.9.8", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=15156, ...}) = 0 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 access("/etc/asound.conf", R_OK) = -1 ENOENT (No such file or directory)
access("/home/kampmann/.asoundrc", R_OK) = 0 open("/home/kampmann/.asoundrc", O_RDONLY) = 3
Hmmm. Hierzu unten mehr.
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0 open("/dev/snd/controlC0", O_RDWR) = 3 open("/dev/snd/pcmC0D2p", O_RDWR) = -1 ENODEV (No such device) aplay: main:533: audio open error: Permission denied kampmann@ibk-node14:~/Tests/Aufnahmen>
und:
kampmann@ibk-node14:~/Tests/Aufnahmen> ll /dev/snd/pcmC0D2* crw------- 1 kampmann audio 116, 26 2005-03-19 20:36 /dev/snd/pcmC0D2c crw------- 1 kampmann audio 116, 18 2005-03-19 20:36 /dev/snd/pcmC0D2p kampmann@ibk-node14:~/Tests/Aufnahmen>
was ich nicht ganz verstehe :)
Ich denke, ich schon. Aus deiner anderen Mail: 20: [0- 4]: digital audio playback 27: [0- 3]: digital audio capture 26: [0- 2]: digital audio capture 25: [0- 1]: digital audio capture 16: [0- 0]: digital audio playback 24: [0- 0]: digital audio capture 0: [0- 0]: ctl 1: : sequencer 33: : timer Soweit ich das verstehe, sind das die Minor-Nummern, die 26 von /dev/snd/pcmC0D2c paßt, die 18 gibt es aber nicht, daher die Fehlermeldung.
denn: die Rechte für mich (kampmann) sind ja vorhanden, allerdings "kampmann:users" - ist das der Grund?
Ich glaub nicht ...
Danke für die Auskunft ... gibt es dafür eine Erklärung
... vielleicht, wenn du mal schreibst, was in /home/kampmann/.asoundrc steht. Oder/und als root auch mal "strace ..." machst und guckst, welches /dev/snd/pcmC0*-device aplay dort nimmt. Denn irgendwie stimmt /dev/snd/pcmC0D2p (aka hw:0,2) wohl nicht.
habe das mal als root (erfolgreich) laufen lassen: ibk-node14:/home/kampmann/Tests/Aufnahmen # strace -e trace=file aplay test01.wav execve("/usr/bin/aplay", ["aplay", "test01.wav"], [/* 81 vars */]) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=110744, ...}) = 0 open("/usr/lib/libasound.so.2", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=746740, ...}) = 0 open("/lib/tls/libm.so.6", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=178573, ...}) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=13814, ...}) = 0 open("/lib/tls/libpthread.so.0", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=93182, ...}) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=1394943, ...}) = 0 open("/lib/libresmgr.so.0.9.8", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0755, st_size=15156, ...}) = 0 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 access("/etc/asound.conf", R_OK) = -1 ENOENT (No such file or directory) access("/root/.asoundrc", R_OK) = -1 ENOENT (No such file or directory) open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1186, ...}) = 0 open("/usr/share/alsa/pcm/default.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=507, ...}) = 0 open("/usr/share/alsa/pcm/dmix.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1057, ...}) = 0 open("/usr/share/alsa/pcm/dsnoop.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1062, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 3 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 3 open("/dev/snd/controlC0", O_RDWR) = 3 access("/usr/share/alsa/cards/ICH4.conf", R_OK) = 0 open("/usr/share/alsa/cards/ICH4.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2863, ...}) = 0 open("/usr/share/alsa/pcm/front.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=596, ...}) = 0 open("/usr/share/alsa/pcm/surround40.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=749, ...}) = 0 open("/usr/share/alsa/pcm/surround41.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=893, ...}) = 0 open("/usr/share/alsa/pcm/surround50.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=896, ...}) = 0 open("/usr/share/alsa/pcm/surround51.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=783, ...}) = 0 open("/usr/share/alsa/pcm/iec958.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1030, ...}) = 0 open("/dev/snd/controlC1", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC2", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC3", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC4", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC5", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC6", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC7", O_RDONLY) = -1 ENODEV (No such device) open("/dev/snd/controlC8", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC9", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC10", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC11", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC12", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC13", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC14", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC15", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC16", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC17", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC18", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC19", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC20", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC21", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC22", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC23", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC24", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC25", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC26", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC27", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC28", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC29", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC30", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC31", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/snd/controlC0", O_RDONLY) = 3 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 3 open("/dev/snd/controlC0", O_RDWR) = 3 open("/dev/snd/controlC0", O_RDONLY) = 3 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 3 open("/dev/snd/controlC0", O_RDWR) = 3 open("/dev/snd/controlC0", O_RDONLY) = 3 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 3 open("/dev/snd/controlC0", O_RDWR) = 3 open("/dev/snd/controlC0", O_RDONLY) = 3 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 3 open("/dev/snd/controlC0", O_RDWR) = 3 open("/dev/snd/controlC0", O_RDONLY) = 3 open("/dev/snd/controlC0", O_RDWR) = 3 open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK) = 4 unlink("/tmp/alsa-dmix-17030-1138749378-611988") = -1 ENOENT (No such file or directory) chmod("/tmp/alsa-dmix-17030-1138749378-611988", 0600) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 5 open("/dev/snd/timer", O_RDONLY|O_NONBLOCK) = 5 open("/proc/cpuinfo", O_RDONLY) = 6 fstat64(6, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 6 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0 open("/dev/snd/controlC0", O_RDONLY) = 6 open("/dev/snd/controlC0", O_RDWR) = 6 open("test01.wav", O_RDONLY|O_LARGEFILE) = 6 Playing WAVE 'test01.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ibk-node14:/home/kampmann/Tests/Aufnahmen # Das ist das Ergebnis Dabei sind mir die einzelnen devices ein "Buch mit sieben Siegeln". Kannst Du mir einen Hinweis geben, wo ich darüber Näheres finden kann? die "~kampmann/.asoundrc" lautet (ziemlich simple, habe sie irgendwo her - ich weiß nicht woher): pcm.!default { type hw card 0 device 2 } Das wärs. Würde mich freuen, wenn ich dieses sehr lästige Problem gelöst bekäme ... Vor allem hätte ich gern gewusst, wie die Zuordnung zu den "hw"-Geräten und den Geräten aus /proc/asound/devices funktioniert. Wo steht das beschrieben? Danke Jörg -- ============ lat=52.35°N - lon=10.25°E ================================ Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385 http://www.ibk-consult.de http://www.openbc.com/go/invuid/Joerg_Kampmann ===== QNX is the better Choice for Real-Time: http://www.qnx.com ====