From: ANISH KUMAR <anish.singh@samsung.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: MAHAMMADRAFI MANIYAR <maniyar@samsung.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: underrun problem when short audio play
Date: Tue, 16 Mar 2010 13:13:06 +0000 (GMT) [thread overview]
Message-ID: <19320030.825861268745186292.JavaMail.weblogic@epml03> (raw)
Thanks Mark,
>If your driver is not responding promptly to requests to terminate playback then an
underrun doesn't seem surprising.
Sometimes in my driver write calls doesn't return causing application to block forever and CPU pegged problem.
Situation:Recording going on->go to sleep->come back from sleep->start recording again->try recording
and playing back simultaneously(something like recording going on in background and you try to play short audio).
This causes write call to get blocked in playback case causing application to hangup.
This doesn't happen if we don't go to sleep.
So i think somewhere there is some problem with suspend->resume case which is difficult to figure out.
I checked driver logs after coming back from sleep.I found for some time interrupts are coming then stopped coming suddenly
So now after waking up i am reopening the playback device before opening the record device.Which has fixed the problem
but not the root cause.
next reply other threads:[~2010-03-16 13:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-16 13:13 ANISH KUMAR [this message]
2010-03-16 13:35 ` underrun problem when short audio play Mark Brown
[not found] <0KZD00506NL88J@ms13.samsung.com>
2010-03-16 14:01 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2010-03-16 13:47 ANISH KUMAR
2010-03-11 5:27 ANISH KUMAR
2010-03-09 12:44 ANISH KUMAR
2010-03-16 12:06 ` 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=19320030.825861268745186292.JavaMail.weblogic@epml03 \
--to=anish.singh@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--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).