Re: [PATCH] ASoC: rt722: reset codec to fix abnormal sound

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-sound
Message-ID <[email protected]>
On Tue, Jul 28, 2026 at 05:01:11PM +0800, [email protected] wrote:

> The audio output may become abnormal after a warm reboot from Windows.
> Reset the codec once during hardware initialization to restore it to a known
> state and prevent the issue.

> @@ -1888,6 +1899,9 @@ int rt722_sdca_io_init(struct device *dev, struct sdw_slave *slave)
>  	rt722->hw_vid = (val & 0x0f00) >> 8;
>  	dev_dbg(&slave->dev, "%s hw_vid=0x%x\n", __func__, rt722->hw_vid);
>  
> +	if (!rt722->first_hw_init)
> +		rt722_sdca_reset(rt722);
> +
>  	rt722_sdca_dmic_preset(rt722);
>  	rt722_sdca_amp_preset(rt722);
>  	rt722_sdca_jack_preset(rt722);

Slirhgly separate issue but you probably need a _jack_init() after the
reset - your other devices do that, I think there's some races there.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpqffIACgkQJNaLcl1U
h9DdaAf/cQfAvyxD/bzEpIfH/NA/7lH2D7Q2mAQYB/PigJozgD1vMdC2Bx2Y+hN+
o65h24xfT8m03kiEd9xuHbmVb9Njy6eGCHb3IfQ3m0UG8W0sxIgMGY/zaR+jzYvw
Y1ecLpSbqsNbwY/aRpElvWJo5aqK2SXCIksCme1ItdFSHpWMoCbXM70zrmV8iRlC
1TBsMvQxAclh0G0P4Q7l0xkINSYybbIVWs4EGusFsQcxUM1Fm8q3lHM3vkGom0ll
uCmn6bgzMJXbVcY1tJyPJpY+19Owf+cw4GEV6i+1+xh++09G4KJM+XAXt0jZaKx+
Kqt3v70xYZhrBB1sGjyq6z70W3WjbA==
=Qjc0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.