Re: [PATCH v1] ASoC: tas2781: Optimize calibration to avoid full device reboot after calibration

Mark Brown <[email protected]> Thu, 30 Jul 2026 17:40:55 +0100
Newsgroups org.kernel.vger.linux-sound
Message-ID <[email protected]>
On Fri, Jul 24, 2026 at 06:25:43PM +0800, Shenghao Ding wrote:
> Some clients have specified a new requirement: complete device restarts
> should be avoided after calibration. Only a hot boot of the Smart Audio
> Amplifier is required.

> +	/*
> +	 * Set reloading-firmware flag after calibration, the flag will work
> +	 * during next playback, then set to the program id after reloading
> +	 * firmware.
> +	 */
> +	for (i = 0; i < priv->ndev; i++)
> +		priv->tasdevice[i].cur_prog = -1;
> +

I'll apply this since this is preexisting, but it might be worth
checking the interaction with DAPM delayed powerdown (or indeed active
streams).  There's an element of user error here of course.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmprfpcACgkQJNaLcl1U
h9D3bgf9HSYm3y361ohuNpAiC59YX35DbcqEuUiw5n0DppkTQqeMv4s5hZ12svna
WyrJAnws+Ymzgpg37iYouA1Rp5N8j4XdcK7fVQf08HcEwk4ExyecHOeNZqXFt0eJ
rpBo7NhJ1Xao8gpGMcxjZdK54UsmmxHSGc1QHcDRKBy94DeveWjmi8pijCdLg7Tx
IzhrOKSo+wbd7jgwNEsRs6Jj8SI6kPKAo4YfkgTtF5cxGPBG1Q67cxryz5Rdhn60
1Rtt3eYd9L4aPQMLP5rG5FFclmVnRIX8RNeveXgmdTjw046oFua9FxKZz6ZCI5dM
mIv31kT8SLC+VQndIetm0vC6wdfJHg==
=tQgq
-----END PGP SIGNATURE-----