Problems playing with intel8x0 [long]
The intel8x0 driver has a bad habit of going into an infinite loop and consuming 100% cpu when I try to play certain sound files. I think it has trouble with non-standard sample rates. It will handle 44100, 22050, and 11025, but KDE ships some samples with weird rates like 7418, 11127 and 22254, and if I try to play these with, for example, aplay, I get the loop.
I'm attaching an strace to show you what I mean. Any ideas on dealing with this?
Thanks,
-n8
[n8gray@golux music]$ strace /usr/bin/aplay /usr/share/sounds/KDE_Beep_Pop.wavexecve("/usr/bin/aplay", ["/usr/bin/aplay", "/usr/share/sounds/KDE_Beep_Pop.wav"], [/* 81 vars */]) = 0uname({sys="Linux", node="golux", ...}) = 0
brk(0) = 0x8052f8cold_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)open("/etc/ld.so.cache", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0644, st_size=66082, ...}) = 0old_mmap(NULL, 66082, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3) = 0open("/usr/lib/libasound.so.2", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\230"..., 1024) = 1024fstat64(3, {st_mode=S_IFREG|0755, st_size=575372, ...}) = 0old_mmap(NULL, 573200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40025000mprotect(0x400ae000, 12048, PROT_NONE) = 0old_mmap(0x400ae000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x89000) = 0x400ae000
close(3) = 0open("/lib/i686/libm.so.6", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2404\0"..., 1024) = 1024fstat64(3, {st_mode=S_IFREG|0755, st_size=136052, ...}) = 0old_mmap(NULL, 138624, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400b1000mprotect(0x400d2000, 3456, PROT_NONE) = 0old_mmap(0x400d2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x400d2000
close(3) = 0open("/lib/libdl.so.2", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\25"..., 1024) = 1024fstat64(3, {st_mode=S_IFREG|0755, st_size=9212, ...}) = 0old_mmap(NULL, 12144, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400d3000mprotect(0x400d5000, 3952, PROT_NONE) = 0old_mmap(0x400d5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x400d5000
close(3) = 0open("/lib/i686/libpthread.so.0", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20A\0\000"..., 1024) = 1024fstat64(3, {st_mode=S_IFREG|0755, st_size=87864, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400d6000old_mmap(NULL, 327200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400d7000mprotect(0x400e4000, 273952, PROT_NONE) = 0old_mmap(0x400e4000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x400e4000old_mmap(0x400e7000, 261664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400e7000
close(3) = 0open("/lib/i686/libc.so.6", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260X\1"..., 1024) = 1024fstat64(3, {st_mode=S_IFREG|0755, st_size=1246468, ...}) = 0old_mmap(NULL, 1256516, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40127000mprotect(0x40254000, 23620, PROT_NONE) = 0old_mmap(0x40254000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12c000) = 0x40254000old_mmap(0x40258000, 7236, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40258000
close(3) = 0munmap(0x40014000, 66082) = 0
modify_ldt(1, {entry_number:0, base_addr:0x400e40a0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, 16) = 0getpid() = 13903rt_sigaction(SIGRTMIN, {0x400def80, [], SA_RESTORER, 0x4014f3b8}, NULL, 8) = 0rt_sigaction(SIGRT_1, {0x400defd0, [], SA_RESTORER, 0x4014f3b8}, NULL, 8) = 0rt_sigaction(SIGRT_2, {0x400df700, [], SA_RESTORER, 0x4014f3b8}, NULL, 8) = 0rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfffeddc, 31, (nil), 0}) = 0
brk(0) = 0x8052f8c brk(0x8053f8c) = 0x8053f8c brk(0) = 0x8053f8c brk(0x8054000) = 0x8054000
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7034, ...}) = 0 open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0644, st_size=7034, ...}) = 0mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "#\n# ALSA library configuration "..., 4096) = 4096
brk(0) = 0x8054000
brk(0x8055000) = 0x8055000
brk(0) = 0x8055000
brk(0x8056000) = 0x8056000
brk(0) = 0x8056000
brk(0x8057000) = 0x8057000
read(3, "efaults.ctl.card\n\t\t\t}\n\t\t}\n\t}\n\tty"..., 4096) = 2938
brk(0) = 0x8057000
brk(0x8058000) = 0x8058000
brk(0) = 0x8058000
brk(0x8059000) = 0x8059000
brk(0) = 0x8059000
brk(0x805a000) = 0x805a000
read(3, "", 4096) = 0
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40014000, 4096) = 0
brk(0) = 0x805a000
brk(0x805b000) = 0x805b000
access("/etc/asound.conf", R_OK) = -1 ENOENT (No such file or directory)
access("/home/n8gray/.asoundrc", R_OK) = 0
open("/home/n8gray/.asoundrc", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=161, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "pcm.intel8x0 {\n type hw\n car"..., 4096) = 161
read(3, "", 4096) = 0
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40014000, 4096) = 0
open("/dev/snd/controlC0", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC0", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0xbfffea6c) = 0
ioctl(3, 0x40045532, 0xbfffea94) = 0
open("/dev/snd/pcmC0D0p", O_RDWR) = 4
ioctl(4, AGPIOC_INFO, 0xbfffeae8) = 0
close(3) = 0mmap2(NULL, 4096, PROT_READ, MAP_SHARED, 4, 0x80000) = 0x40014000mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0x81000) = 0x40015000ioctl(4, APM_IOC_STANDBY, 0xbffff004) = 0rt_sigaction(SIGINT, {0x400e2550, [INT], SA_RESTORER|SA_RESTART, 0x4014f3b8}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGTERM, {0x400e2550, [TERM], SA_RESTORER|SA_RESTART, 0x4014f3b8}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGABRT, {0x400e2550, [ABRT], SA_RESTORER|SA_RESTART, 0x4014f3b8}, {SIG_DFL}, 8) = 0 open("/usr/share/sounds/KDE_Beep_Pop.wav", O_RDONLY) = 3read(3, "RIFF\226\1\0\0WAVEfmt \20\0\0\0\1\0\1\0", 24) = 24
read(3, "w+", 2) = 2 read(3, "\0\0w+\0\0\1\0\10\0", 10) = 10 read(3, "datar\1\0\0", 8) = 8
write(2, "Playing WAVE \'/usr/share/sounds/"..., 52Playing WAVE '/usr/share/sounds/KDE_Beep_Pop.wav' : ) = 52write(2, "Unsigned 8 bit, ", 16Unsigned 8 bit, ) = 16write(2, "Rate 11127 Hz, ", 15Rate 11127 Hz, ) = 15write(2, "Mono", 4Mono) = 4
write(2, "\n", 1) = 1 ioctl(4, 0xc25c4110, 0xbfffe590) = 0 ioctl(4, 0xc25c4110, 0xbfffe080) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe590) = 0 ioctl(4, 0xc25c4110, 0xbfffe590) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe590) = 0 ioctl(4, 0xc25c4110, 0xbfffe590) = 0 ioctl(4, 0xc25c4110, 0xbfffe990) = 0 ioctl(4, 0xc25c4110, 0xbfffe0c0) = 0 ioctl(4, 0xc25c4110, 0xbfffe990) = 0 ioctl(4, 0xc25c4110, 0xbfffe590) = 0 ioctl(4, 0xc25c4110, 0xbfffe590) = 0 ioctl(4, 0xc25c4110, 0xbfffe990) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffdde0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffdde0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffdde0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe2f0) = 0 ioctl(4, 0xc25c4110, 0xbfffe6f0) = 0 ioctl(4, 0xc25c4110, 0xbfffddd0) = 0 ioctl(4, 0xc25c4110, 0xbfffd8c0) = 0 ioctl(4, 0xc25c4110, 0xbfffddd0) = 0 ioctl(4, 0xc25c4110, 0xbfffddd0) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffddd0) = 0 ioctl(4, 0xc25c4110, 0xbfffddd0) = 0 ioctl(4, 0xc25c4110, 0xbfffe1d0) = 0 ioctl(4, 0xc25c4110, 0xbfffe1d0) = 0 ioctl(4, 0xc25c4110, 0xbfffddd0) = 0 ioctl(4, 0xc25c4110, 0xbfffd8c0) = 0 ioctl(4, 0xc25c4110, 0xbfffddd0) = 0 ioctl(4, 0xc25c4110, 0xbfffe1d0) = 0 ioctl(4, 0xc25c4110, 0xbfffe450) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe450) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe450) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe450) = -1 EINVAL (Invalid argument) ioctl(4, 0xc25c4110, 0xbfffe450) = -1 EINVAL (Invalid argument)
Now we get EINVAL forevermore...
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-- Nathaniel Gray -- Caltech Computer Science ------> -- Mojave Project -- http://mojave.cs.caltech.edu -->
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
At Mon, 28 Apr 2003 15:42:54 -0700,
Quoted 9 lines · Nathaniel Gray
The intel8x0 driver has a bad habit of going into an infinite loop and consuming 100% cpu when I try to play certain sound files. I think it has trouble with non-standard sample rates. It will handle 44100, 22050, and 11025, but KDE ships some samples with weird rates like 7418, 11127 and 22254, and if I try to play these with, for example, aplay, I get the loop.
I'm attaching an strace to show you what I mean. Any ideas on dealing with this?
which version are you using?
there WAS a bug in this regard but i believe it was fixed in the recent version.
ciao,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Quoted 10 lines · Takashi Iwai
At Mon, 28 Apr 2003 15:42:54 -0700,
Quoted 6 lines · Nathaniel Gray
The intel8x0 driver has a bad habit of going into an infinite loop and consuming 100% cpu when I try to play certain sound files. I think it has trouble with non-standard sample rates. It will handle 44100, 22050, and 11025, but KDE ships some samples with weird rates like 7418, 11127 and 22254, and if I try to play these with, for example, aplay, I get the loop.
Quoted 3 lines
which version are you using?
there WAS a bug in this regard but i believe it was fixed in the recent version.
Was it a driver bug or an application bug? I found that I could play the samples with "play" but not with xmms or aplay.
I'm using 0.9.0rc7. (Stock Mandrake 9.1)
Cheers,
-n8
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-- Nathaniel Gray -- Caltech Computer Science ------> -- Mojave Project -- http://mojave.cs.caltech.edu -->
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
At Tue, 29 Apr 2003 10:56:21 -0700,
Quoted 12 lines · Nathaniel Gray
Quoted 10 lines · Takashi Iwai
At Mon, 28 Apr 2003 15:42:54 -0700,
Quoted 6 lines · Nathaniel Gray
The intel8x0 driver has a bad habit of going into an infinite loop and consuming 100% cpu when I try to play certain sound files. I think it has trouble with non-standard sample rates. It will handle 44100, 22050, and 11025, but KDE ships some samples with weird rates like 7418, 11127 and 22254, and if I try to play these with, for example, aplay, I get the loop.
Quoted 5 lines
Quoted 3 lines
which version are you using?
there WAS a bug in this regard but i believe it was fixed in the recent version.Was it a driver bug or an application bug?
it may happen on both. but in your case, most likely the bug of alsa-lib which was fixed in the recent release.
Quoted 4 lines
I found that I could play
the samples with "play" but not with xmms or aplay.I'm using 0.9.0rc7. (Stock Mandrake 9.1)
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Quoted 5 lines · Takashi Iwai
At Tue, 29 Apr 2003 10:56:21 -0700,
Quoted 2 lines · Nathaniel Gray
Quoted 1 line · Takashi Iwai
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
which version are you using?
there WAS a bug in this regard but i believe it was fixed in the recent version.Was it a driver bug or an application bug?
it may happen on both. but in your case, most likely the bug of alsa-lib which was fixed in the recent release.
Is it possible to mix a newer alsa-lib with an older alsa-driver? Mandrake has entangled alsa-drivers with their kernel, making it bloody difficult to upgrade.
Thanks for your help,
-n8
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-- Nathaniel Gray -- Caltech Computer Science ------> -- Mojave Project -- http://mojave.cs.caltech.edu -->
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf