From: Pavel Machek <pavel@denx.de>
To: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Cc: nobuhiro1.iwamatsu@toshiba.co.jp, cip-dev@lists.cip-project.org
Subject: Re: [PATCH 5.10.y-cip 2/2] ASoC: renesas: rz-ssi: Use proper dma_buffer_pos after resume
Date: Mon, 24 Nov 2025 14:28:18 +0100 [thread overview]
Message-ID: <aSRdOwDFhrIArMdK@duo.ucw.cz> (raw)
In-Reply-To: <27a51129-2e2e-4358-b1e7-c6475644c9b1@tuxon.dev>
[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]
On Mon 2025-11-24 15:23:41, Claudiu Beznea wrote:
> Hi, Pavel,
>
> On 11/24/25 12:21, Pavel Machek wrote:
> > Hi!
> >
> >> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> >>
> >> commit 22897e568646de5907d4981eae6cc895be2978d1 upstream.
> >>
> >> When the driver supports DMA, it enqueues four DMA descriptors per
> >> substream before the substream is started. New descriptors are enqueued in
> >> the DMA completion callback, and each time a new descriptor is queued, the
> >> dma_buffer_pos is incremented.
> >>
> >> During suspend, the DMA transactions are terminated. There might be cases
> >> where the four extra enqueued DMA descriptors are not completed and are
> >> instead canceled on suspend. However, the cancel operation does not take
> >> into account that the dma_buffer_pos was already incremented.
> >
> > Ok. So if you suspend the board in the middle of music playback, few
> > notes may be dropped or something?
>
> Yes, few samples from the audio buffer will be dropped.
>
> > Don't do that, then. Suspending in
> > the middle of audio playback will sound horrible, anyway.
>
> OK.
>
> I think audio subsystem is trying its best to avoid glitches and other
> unwanted sounds.
Yep, no problem, we can easily apply this. Its just... suspending
while audio is playing will not be ok either way.
Best regards,
Pavel
--
In cooperation with DENX Software Engineering GmbH, HRB 165235 Munich,
Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
prev parent reply other threads:[~2025-11-24 13:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-22 10:51 [PATCH 5.10.y-cip 0/2] ASoC: Renesas: Backport audio fixes Claudiu
2025-11-22 10:51 ` [PATCH 5.10.y-cip 1/2] ASoC: da7213: Use component driver suspend/resume Claudiu
2025-11-24 0:16 ` [cip-dev] " Nobuhiro Iwamatsu (Toshiba)
2025-11-24 8:10 ` Claudiu Beznea
2025-11-24 10:15 ` Pavel Machek
2025-11-25 12:43 ` Pavel Machek
2025-11-22 10:51 ` [PATCH 5.10.y-cip 2/2] ASoC: renesas: rz-ssi: Use proper dma_buffer_pos after resume Claudiu
2025-11-24 10:21 ` Pavel Machek
2025-11-24 13:23 ` Claudiu Beznea
2025-11-24 13:28 ` Pavel Machek [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=aSRdOwDFhrIArMdK@duo.ucw.cz \
--to=pavel@denx.de \
--cc=cip-dev@lists.cip-project.org \
--cc=claudiu.beznea@tuxon.dev \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
/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