From: ANISH KUMAR <anish.singh@samsung.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Cc: maniyar@samsung.com
Subject: underrun problem when short audio play
Date: Tue, 09 Mar 2010 12:44:36 +0000 (GMT) [thread overview]
Message-ID: <17526962.152181268138676329.JavaMail.weblogic@epml01> (raw)
Hi all,
I am facing a problem when i try to play short duration audio(problem is not observerd when i am
playing tones which is also short duration audio).
Somehow i am getting buffer overrun everytime i am playing short duration audio.
It is happening because of avail >= stop_threshold.
When i tried to increase the stop_threshold but then i got "same audio played again kind of echo" problem.
I can't try the solution suggested by jaroslav i.e. checking for DRAINING state in lower level driver and stop
queuing because of some design issue as in my code i don't call drain function as soon as all buffers are written.
I wait for some time(in miliseconds) and then call drain function.
Please suggest any pointers.Should i increase the buffer size or stop_threshold both of which i tried but to no use.
I am always getting underrun problem that too always in the function update_hw_ptr_post function.
How can i disable the stop_threshold check??
Thanks,
anish
next reply other threads:[~2010-03-09 12:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 12:44 ANISH KUMAR [this message]
2010-03-16 12:06 ` underrun problem when short audio play Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2010-03-11 5:27 ANISH KUMAR
2010-03-16 13:13 ANISH KUMAR
2010-03-16 13:35 ` Mark Brown
2010-03-16 13:47 ANISH KUMAR
[not found] <0KZD00506NL88J@ms13.samsung.com>
2010-03-16 14:01 ` Mark Brown
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=17526962.152181268138676329.JavaMail.weblogic@epml01 \
--to=anish.singh@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=maniyar@samsung.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).