From: Pavel Machek <pavel@denx.de>
To: Claudiu <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 11:21:51 +0100 [thread overview]
Message-ID: <aSQxv6iREysaFLVQ@duo.ucw.cz> (raw)
In-Reply-To: <20251122105116.2782841-3-claudiu.beznea.uj@bp.renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]
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? Don't do that, then. Suspending in
the middle of audio playback will sound horrible, anyway.
I guess this may result in some alert beep being lost (instead of
delayed), and I'm not against applying this, but...
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 --]
next prev parent reply other threads:[~2025-11-24 10:22 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 [this message]
2025-11-24 13:23 ` Claudiu Beznea
2025-11-24 13:28 ` Pavel Machek
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=aSQxv6iREysaFLVQ@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