mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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:
parent
62dc2554d3
commit
74a66323e1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user