From: Lars-Peter Clausen <lars@metafoo.de>
To: Mark Brown <broonie@kernel.org>
Cc: Nicolin Chen <nicoleotsuka@gmail.com>,
alsa-devel@alsa-project.org,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Xiubo Li <Xiubo.Lee@gmail.com>
Subject: Re: [PATCH] ASoC: dmaengine_pcm: Make FLAG_NO_RESIDUE internal
Date: Mon, 27 Apr 2015 21:22:43 +0200 [thread overview]
Message-ID: <553E8C83.4030604@metafoo.de> (raw)
In-Reply-To: <20150427182801.GX22845@sirena.org.uk>
On 04/27/2015 08:28 PM, Mark Brown wrote:
> On Mon, Apr 27, 2015 at 12:44:25PM +0200, Lars-Peter Clausen wrote:
[...]
>> This patch makes the FLAG_NO_RESIDUE internal and no longer allows audio
>> controller drivers to manually set the flag. If a DMA driver against
>> expectations does not support reporting its capabilities for now the generic
>> DMAengine PCM driver will now emit a warning and simply assume that residue
>> reporting is not supported. In the future this might be changed to aborting
>> with an error.
>
> I'm not sure it's ever going to buy us anything to error out on stuff,
> it's not like the no residue case doesn't need to be supported anyway
> for controllers that just can't do it.
I'm not too sure about it either. Since it is prone to race-conditions by
design we'd ideally eventually drop support for the fallback period counting
mechanism in the PCM driver altogether and instead the period counting would
be done at the DMAengine layer. At the DMAengine layer the period counting
can usually be implemented without any race conditions and other DMAengine
clients will also benefit from it.
A good start might be to emit a warning when we have to do this in the PCM
driver to at least make sure that new platforms do this properly.
- Lars
next prev parent reply other threads:[~2015-04-27 19:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 10:44 [PATCH] ASoC: dmaengine_pcm: Make FLAG_NO_RESIDUE internal Lars-Peter Clausen
2015-04-27 18:28 ` Mark Brown
2015-04-27 19:22 ` Lars-Peter Clausen [this message]
2015-04-27 19:38 ` 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=553E8C83.4030604@metafoo.de \
--to=lars@metafoo.de \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=nicolas.ferre@atmel.com \
--cc=nicoleotsuka@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 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.