ASoC: rt722: reinitialize rt722_sdca_jack_init() after reset

Check whether the .set_jack callback has already been invoked before the reset.
If so, call rt722_sdca_jack_init() again to restore the jack settings.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20260731084114.4142106-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Shuming Fan 2026-07-31 16:41:14 +08:00 committed by Mark Brown
parent 62dc2554d3
commit 74a66323e1
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1892,6 +1892,9 @@ int rt722_sdca_io_init(struct device *dev, struct sdw_slave *slave)
rt722_sdca_amp_preset(rt722);
rt722_sdca_jack_preset(rt722);
if (rt722->hs_jack && (!rt722->first_hw_init))
rt722_sdca_jack_init(rt722);
if (rt722->first_hw_init) {
regcache_cache_bypass(rt722->regmap, false);
regcache_mark_dirty(rt722->regmap);