ASoC: rt712: avoid duplicate reset in io_init
Subsystems (3)
PATCH 1/1 ASoC: rt712: avoid duplicate reset in io_init
From: Shuming Fan <[email protected]>
The codec should be reset only once during io_init, regardless of whether the system performs a warm or cold reboot.
--- sound/soc/codecs/rt712-sdca.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt712-sdca.c +3 -2
@@ -2088,7 +2088,8 @@ int rt712_sdca_io_init(struct device *dev, struct sdw_slave *slave)pm_runtime_get_noresume (&slave->dev); -rt712_sdca_reset (rt712); +if (!rt712->first_hw_init) +rt712_sdca_reset (rt712);rt712_sdca_index_read (rt712,RT712_VENDOR_REG ,RT712_JD_PRODUCT_NUM , &val); rt712->hw_id = (val &0xf000 ) >>12 ;
@@ -2117,7 +2118,7 @@ int rt712_sdca_io_init(struct device *dev, struct sdw_slave *slave)* if set_jack callback occurred early than io_init, * we set up the jack detection function now */ -if (rt712->hs_jack) +if (rt712->hs_jack && (!rt712->first_hw_init))rt712_sdca_jack_init (rt712);rt712_sdca_index_write (rt712,RT712_VENDOR_REG ,RT712_SW_CONFIG1 ,0x0001 );
Signature · 1 line
2.55.0
Mark Brown
maintainerQuoted 1 line · On Thu, 01 Oct 2026 17:02:19 +0800, [email protected] wrote:
ASoC: rt712: avoid duplicate reset in
io_init
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/1] ASoC: rt712: avoid duplicate reset in io_init
https://git.kernel.org/broonie/sound/c/923ff8155ef6
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark