From: "Anders Boström" <anders@netinsight.net>
To: tiwai@suse.de
Cc: riesebie@lxtec.de, alsa-devel@alsa-project.org, 438118@bugs.debian.org
Subject: Bug#438118: [alsa-devel] [Pkg-alsa-devel] Bug#438118: alsa-utils: aplay non-blocking mode isn't working
Date: Tue, 18 Sep 2007 09:41:48 +0200 (CEST) [thread overview]
Message-ID: <20070918.094148.-529052212.anders@netinsight.se> (raw)
In-Reply-To: <s5hsl5dco8l.wl%tiwai@suse.de>
[-- Attachment #1: Type: Text/Plain, Size: 3988 bytes --]
>>>>> "TI" == Takashi Iwai <tiwai@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@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!
[-- Attachment #2: halt.au --]
[-- Type: Audio/Basic, Size: 4698 bytes --]
[-- Attachment #3: metal.au --]
[-- Type: Audio/Basic, Size: 1638 bytes --]
next prev parent reply other threads:[~2007-09-18 7:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070815.153103.-1470506910.anders@netinsight.se>
[not found] ` <20070815172821.GB7381@frodo.home.lxtec.de>
[not found] ` <20070816.094636.-753684517.anders@netinsight.se>
2007-09-11 16:08 ` [Pkg-alsa-devel] Bug#438118: alsa-utils: aplay non-blocking mode isn't working Elimar Riesebieter
2007-09-17 15:20 ` Takashi Iwai
2007-09-18 7:41 ` Anders Boström [this message]
2007-09-18 15:45 ` Takashi Iwai
2007-09-27 12:16 ` Bug#438118: [alsa-devel] " Anders Boström
2007-10-09 10:38 ` Takashi Iwai
2007-12-14 10:37 ` Anders Boström
2007-12-14 10:53 ` Jaroslav Kysela
2007-12-14 12:41 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070918.094148.-529052212.anders@netinsight.se \
--to=anders@netinsight.net \
--cc=438118@bugs.debian.org \
--cc=alsa-devel@alsa-project.org \
--cc=riesebie@lxtec.de \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox