From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx.nabladev.com (mx.nabladev.com [178.251.229.89]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.35362.1796217732514279569 for ; Wed, 02 Dec 2026 05:22:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nabladev.com header.s=dkim header.b=dHHbfzeV; spf=pass (domain: nabladev.com, ip: 178.251.229.89, mailfrom: pavel@nabladev.com) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 23653106EFE; Wed, 02 Dec 2026 14:22:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nabladev.com; s=dkim; t=1796217726; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=hyXqonDABpuqHqEPblzoWCuQdrL9onV0SJF8/p/61tI=; b=dHHbfzeVFm21s0SNzSteHQ5gXAWY3LpX77yS762K+FXqrjv6vPRyixDYhGoAK7XAoRN+di lETMQlCeZN2vKXwmGemmHuGqRa8V/LniroOKJWUTlyDzZvtwD72+5Z4GFHQXk2Jry+satc gwV1omYIF8FCdzl1/NVPnTkDSdneFcGmW3fsYKSZnnP4vhpbn6yUPV42arLGz/yUn+R34e pfWR4aUMPohrzMjuVEBC+Crz4tPkl1xfp/tOUqSA2sLNjVxLZk2vAh9f/rizRtKZwZhinL tEA9RmrpAuCk7nCnj39co3Rfo2h+Jwhdu8UhRhUiGq3K3p9e5CLktLr4eyaT8w== Date: Wed, 2 Dec 2026 14:22:04 +0100 From: Pavel Machek To: Claudiu Beznea Cc: nobuhiro.iwamatsu.x90@mail.toshiba, pavel@nabladev.com, cip-dev@lists.cip-project.org Subject: Re: [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Message-ID: References: <20261126152553.1298561-1-claudiu.beznea@tuxon.dev> <20261126152553.1298561-10-claudiu.beznea@tuxon.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="e0thUhlCxAfqeArY" Content-Disposition: inline In-Reply-To: <20261126152553.1298561-10-claudiu.beznea@tuxon.dev> X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 13:22:23 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/25281 --e0thUhlCxAfqeArY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > On Renesas RZ/G2L and RZ/G3S SoCs (where this was tested), captured audio > files occasionally contained random spikes when viewed with a tool such > as Audacity. These spikes were also audible as popping noises. >=20 > Using cyclic DMA resolves this issue. The driver was reworked to use the > existing support provided by the generic PCM dmaengine APIs. In addition > to eliminating the random spikes, the following issues were addressed: =2E.. > - the number of generated interrupts is reduced by approximately 250% I don't think you can reduce anything by 250%. > +++ b/sound/soc/sh/rz-ssi.c > @@ -642,19 +621,41 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *= data) > rz_ssi_stop(ssi, strm_playback); > } > =20 > + if (!rz_ssi_is_stream_running(&ssi->playback) && > + !rz_ssi_is_stream_running(&ssi->capture) && > + rz_ssi_is_dma_enabled(ssi) && is_stopped) { > + if (ssi->playback.substream && > + ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]) > + dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]); > + if (ssi->capture.substream && > + ssi->dmas[SNDRV_PCM_STREAM_CAPTURE] && > + /* Avoid calling pause twice in case of half duplex. */ > + ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK] !=3D > + ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]) > + dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]); > + } You are hitting line length limits here; it would be better to push it into helper function to reduce indentation level, and to place "!=3D" at beggining of next line so it is clear what is going on. Best regards, Pavel --e0thUhlCxAfqeArY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCaxAbfAAKCRAw5/Bqldv6 8pA5AKCWdzTrZuQev+ezTPSMJdgKqFKPYACcCnHkJhz22MpS9B6v9uCQdZfO8UY= =YQC4 -----END PGP SIGNATURE----- --e0thUhlCxAfqeArY--