[Pkg-alsa-devel] Bug#438118: [alsa-devel] Bug#438118: alsa-utils: aplay non-blocking mode isn't working
Anders Boström
anders at netinsight.net
Tue Sep 18 07:41:48 UTC 2007
>>>>> "TI" == Takashi Iwai <tiwai at suse.de> writes:
Hi!
>> Hi all,
>>
>> can one please have a lokk at this? aplay -N isn't working for the
>> OP.
TI> Cannot reproduce here. Could you _post_ more details?
OK, I've tested more, and discovered that the problem seems to be that
the end of the sound is cut in non-blocking mode. And if I play a very
short sound-file, I can't hear anything. Blocking mode works fine.
When using non-blocking mode, an strace contains "ioctl(4, 0x4144,
0x2b9f785d8000) = -1 EAGAIN (Resource temporarily
unavailable)". Blocking mode never contains the EAGAIN response.
I attach two files. When playing halt.au, I can only hear the start,
about as much as "ha". When playing metal.au, I can't hear anything.
System info:
ASUS A8V Deluxe motherboard with Athlon 64 3500+ CPU
VIA 8237 with ALC850 sound
Linux 2.6.22.2 kernel for amd64
Debian testing amd64 with:
alsa-utils 1.0.14-1
libasound2 1.0.14a-2
libc6 2.6.1-1
I hope this helps. Please ask if you need more info.
/ Anders
>> On Thu, 16 Aug 2007 the mental interface of
>> Anders Boström told:
>>
>> > >>>>> "ER" == Elimar Riesebieter <riesebie at lxtec.de> writes:
>> >
>> > >> strace aplay -N :
>> > >>
>> > >> ...
>> > >> open("/usr/lib/alsa-lib/libasound_module_rate_speexrate.so", O_RDONLY) = -1 ENOENT (No such file or directory)
>> >
>> > ER> This file is provided by
>> > ER> libasound2-plugins: /usr/lib/alsa-lib/libasound_module_rate_speexrate.so
>> >
>> > ER> Please install libasound2-plugins and try again.
>> >
>> > Thanks for the suggestion.
>> >
>> > Unfortunately, it didn't solve my problem, no sound when non-blocking
>> > mode is used. New strace:
>> >
>> > strace aplay -N :
>> > ...
>> > open("/usr/lib/alsa-lib/libasound_module_rate_speexrate.so", O_RDONLY) = 5
>> > read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\22\0"..., 832) = 832
>> > fstat(5, {st_mode=S_IFREG|0644, st_size=20848, ...}) = 0
>> > mmap(NULL, 2116136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x2b9f792fe000
>> > mprotect(0x2b9f79302000, 2097152, PROT_NONE) = 0
>> > mmap(0x2b9f79502000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x4000) = 0x2b9f79502000
>> > close(5) = 0
>> > ioctl(4, 0xc2604110, 0x7fff3269dec0) = 0
>> > ioctl(4, 0xc2604110, 0x7fff3269dec0) = 0
>> > ioctl(4, 0xc2604110, 0x7fff3269de00) = 0
>> > ioctl(4, 0xc2604110, 0x7fff3269de00) = 0
>> > ioctl(4, 0xc2604110, 0x7fff3269ddd0) = 0
>> > ioctl(4, 0xc2604110, 0x7fff3269ddc0) = 0
>> > ioctl(4, 0xc2604111, 0x7fff3269ddc0) = 0
>> > ioctl(4, 0xc0884113, 0x7fff3269dd10) = 0
>> > ioctl(4, 0x80184132, 0x7fff3269dc70) = 0
>> > mmap(NULL, 49152, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0x2b9f79503000
>> > ioctl(4, 0xc0884113, 0x624e88) = 0
>> > ioctl(4, 0x4140, 0) = 0
>> > ioctl(4, 0xc0884113, 0x624e88) = 0
>> > read(3, "\377eO\333\337\370\344}\335_\377\330^l\356\361`j\336_l"..., 1001) = 1001
>> > read(3, "n{u^\342zl~e~_[\365_y\362_\363\350\337n[\347nmi`\367y\344"..., 604) = 604
>> > ioctl(4, 0x4144, 0x2b9f785d8000) = -1 EAGAIN (Resource temporarily unavailable)
>> > close(3) = 0
>> > ioctl(4, 0x4143, 0x3) = 0
>> > munmap(0x2b9f79503000, 49152) = 0
>> > ioctl(4, 0x4112, 0) = 0
>> > close(4) = 0
>> > munmap(0x2b9f785d7000, 4096) = 0
>> > munmap(0x2b9f785d8000, 4096) = 0
>> > munmap(0x2b9f792fe000, 2116136) = 0
>> > exit_group(0) = ?
>>
>> I have no idea, so forwarded to alsa-dev then.
>>
>> THX in advance
>>
>> Elimar
>>
>>
>> --
>> Experience is something you don't get until
>> just after you need it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: halt.au
Type: audio/basic
Size: 4698 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20070918/6aebff1b/attachment-0002.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metal.au
Type: audio/basic
Size: 1638 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20070918/6aebff1b/attachment-0003.au
More information about the Pkg-alsa-devel
mailing list