From: Stefan Schoenleitner <dev.c0debabe@gmail.com>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: "Resource temporarily unavailable" while reading although poll returns POLLIN event
Date: Mon, 26 Apr 2010 09:52:03 +0200 [thread overview]
Message-ID: <4BD54623.3080808@gmail.com> (raw)
In-Reply-To: <h2q4f3252891004241643j9ccd9315i9f8d6427752d471d@mail.gmail.com>
Raymond Yau wrote:
> How about the qualtity of the playback ?
> did you speak to the mic and hear the result ?
Yes, when speaking into the mike I can hear the output on the speakers.
The sound quality is reasonable for 8kHz S16_LE and there are no sound
errors (e.g. no clicks or similar).
> Refer to your pulseaudio log , PA use "front" device for playback/capture
> I: module-alsa-sink.c: Successfully opened device hw:0.
> I: alsa-util.c: Successfully attached to mixer 'hw:0'
> I: alsa-util.c: Using mixer control "PCM".
Here you can see that PA uses the "hw" device.
(It just tries to use the "front" device in the beginning which fails.
The "hw" device is opened successfully after that (see log above).)
> but your test use "hw"
In my tests I first used the "default" device which uses the PA plugin.
The test clearly showed that poll() returns with POLLIN even though far
less than avail_min frames are available for reading.
Hence I suspect that there is a *bug* somewhere in the pulseaudio code
(either the plugin or the daemon).
In order to show that my code is working fine and the erroneous poll
behavior does not occur when PA is not used, I also tested with the "hw"
device.
The result, as mentioned, it that the POLLIN event is correctly returned
after at least avail_min frames are available.
In short:
* test with "default" uses PA: erroneus poll() behavior, BUG
* test with "hw" does *not* use PA: everything works fine
> Do you mean that you suspect the problem is related to alsa-pulse plugin or
> PA server ?
Yes.
cheers,
Stefan
next prev parent reply other threads:[~2010-04-26 7:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 11:28 "Resource temporarily unavailable" while reading although poll returns POLLIN event Stefan Schoenleitner
2010-04-21 16:15 ` Stefan Schoenleitner
2010-04-21 17:18 ` Jaroslav Kysela
2010-04-22 10:09 ` Stefan Schoenleitner
2010-04-23 4:10 ` Raymond Yau
2010-04-24 1:32 ` Raymond Yau
2010-04-24 14:38 ` Stefan Schoenleitner
2010-04-24 23:43 ` Raymond Yau
2010-04-26 7:52 ` Stefan Schoenleitner [this message]
2010-04-27 0:35 ` Raymond Yau
2010-04-26 1:46 ` Raymond Yau
2010-04-26 8:19 ` Stefan Schoenleitner
2010-04-26 11:10 ` Raymond Yau
2010-04-22 4:28 ` Raymond Yau
2010-04-22 10:49 ` Stefan Schoenleitner
2010-04-23 7:45 ` Raymond Yau
2010-04-23 11:16 ` Stefan Schoenleitner
2010-04-22 2:41 ` Raymond Yau
2010-04-22 10:15 ` Stefan Schoenleitner
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=4BD54623.3080808@gmail.com \
--to=dev.c0debabe@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=superquad.vortex2@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).