From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: "broonie@opensource.wolfsonmicro.com"
<broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH 2/2] ASoC: TWL4030: Use usleep_range when appropriate
Date: Fri, 22 Oct 2010 15:23:56 +0300 [thread overview]
Message-ID: <201010221523.57077.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <1287749481-12203-3-git-send-email-peter.ujfalusi@nokia.com>
On Friday 22 October 2010 15:11:21 ext Peter Ujfalusi wrote:
> Change the busy loop delays with usleep_range or msleep calls.
> - /* wait for offset cancellation to complete */
> + /*
> + * Wait for offset cancellation to complete.
> + * Since this takes a while, do not slam the i2c.
> + * The least amount of time is not known, but measurement showed, that
> + * the cancelation usually finishes 20 - 28 ms, when
> + * TWL4030_OFFSET_CNCL_SEL == 1.
> + * Start polling the status after 10ms.
> + */
> + usleep_range(10000, 11000);
> do {
> /* this takes a little while, so don't slam i2c */
I'll resend, and remove this comment, since it is not needed anymore...
> - udelay(2000);
> + usleep_range(1000, 2000);
> twl_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &byte,
> TWL4030_REG_ANAMICL);
> } while ((i++ < 100) &&
--
Péter
prev parent reply other threads:[~2010-10-22 12:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-22 12:11 [PATCH 0/2] ASoC: twl4030/tlv320dac33: convert to use usleep_range Peter Ujfalusi
2010-10-22 12:11 ` [PATCH 1/2] ASoC: tlv320dac33: Use usleep_range for delays Peter Ujfalusi
2010-10-22 15:32 ` Mark Brown
2010-10-23 13:43 ` Liam Girdwood
2010-10-22 12:11 ` [PATCH 2/2] ASoC: TWL4030: Use usleep_range when appropriate Peter Ujfalusi
2010-10-22 12:23 ` Peter Ujfalusi [this message]
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=201010221523.57077.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.