From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Mark Brown <broonie@kernel.org>
Cc: Takashi Iwai <tiwai@suse.de>, <lgirdwood@gmail.com>,
<tiwai@suse.com>, <perex@perex.cz>, <lars@metafoo.de>,
<alsa-devel@alsa-project.org>, <vkoul@kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ASoC: dmaengine_pcm: Consider DMA cache caused delay in pointer callback
Date: Mon, 10 Feb 2020 16:59:28 +0200 [thread overview]
Message-ID: <8b48b17d-3751-c027-7b66-fbea3b5a412f@ti.com> (raw)
In-Reply-To: <20200210143717.GO7685@sirena.org.uk>
On 10/02/2020 16.37, Mark Brown wrote:
> On Mon, Feb 10, 2020 at 04:28:44PM +0200, Peter Ujfalusi wrote:
>> On 10/02/2020 16.21, Takashi Iwai wrote:
>
>>>> delay += codec_delay;
>>>>
>>>> - runtime->delay = delay;
>>>> + runtime->delay += delay;
>
>>> Is it correct?
>>> delay already takes runtime->delay as its basis, so it'll result in a
>>> double.
>
>> The delay here is coming from the DAI and the codec.
>> The runtime->delay hold the PCM (DMA) caused delay.
>
> I think Takashi's point here (and a query I have) is that we end up with
>
> delay = runtime->delay;
> delay += stuff;
> runtime->delay += delay;
>
> which is equivalent to
>
> runtime->delay = (runtime->delay * 2) + stuff;
>
> and that's a bit surprising.
I see, I have missed what
9fb4c2bf130b ASoC: soc-pcm: Use delay set in component pointer function
did.
the soc-pcm part of the patch can be dropped then.
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
next prev parent reply other threads:[~2020-02-10 15:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-10 14:04 Peter Ujfalusi
2020-02-10 14:21 ` Takashi Iwai
2020-02-10 14:28 ` Peter Ujfalusi
2020-02-10 14:37 ` Mark Brown
2020-02-10 14:59 ` Peter Ujfalusi [this message]
2020-02-10 14:38 ` Takashi Iwai
2020-02-10 15:01 ` Peter Ujfalusi
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=8b48b17d-3751-c027-7b66-fbea3b5a412f@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=tiwai@suse.de \
--cc=vkoul@kernel.org \
/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
all inboxes | Powered by JetHome®