From: Clemens Ladisch <clemens@ladisch.de>
To: Zhen Fu <fuzh@marvell.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: how to update hw_ptr and appl_ptr
Date: Tue, 26 Jun 2012 14:27:04 +0200 [thread overview]
Message-ID: <4FE9AA98.7000307@ladisch.de> (raw)
In-Reply-To: <DBBC59900F0EF340B9938F193FB1A3453605DD79@SC-VEXCH4.marvell.com>
Zhen Fu wrote:
> when DMA handler called snd_pcm_period_elapsed, so I want to know how
> about update hw_ptr in ALSA.
snd_pcm_period_elapsed() calls snd_pcm_update_hw_ptr0(), which calls
your driver's .pointer callback. The value returned by that callback
essentially is the hw_ptr (although it doesn't wrap around at the end
of the buffer).
Why do you care about hw_ptr?
Regards,
Clemens
next prev parent reply other threads:[~2012-06-26 12:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 5:40 how to update hw_ptr and appl_ptr Zhen Fu
2012-06-26 9:34 ` Clemens Ladisch
2012-06-26 9:37 ` Zhen Fu
2012-06-26 9:43 ` Zhen Fu
2012-06-26 12:27 ` Clemens Ladisch [this message]
2012-06-27 3:13 ` Zhen Fu
2012-06-27 19:24 ` Clemens Ladisch
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=4FE9AA98.7000307@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=fuzh@marvell.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