Commit e66ebce5 authored by Vasiliy Kovalev's avatar Vasiliy Kovalev Committed by Wen Zhiwei
Browse files

ALSA: hda/conexant - Use cached pin control for Node 0x1d on HP EliteOne 1000 G2

stable inclusion
from stable-v6.6.58
commit fd6e2af79a947e909c72b09f1ce3175f381067ef
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB3BSC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fd6e2af79a947e909c72b09f1ce3175f381067ef



--------------------------------

commit 164cd0e077a18d6208523c82b102c98c77fdd51f upstream.

The cached version avoids redundant commands to the codec, improving
stability and reducing unnecessary operations. This change ensures
better power management and reliable restoration of pin configurations,
especially after hibernation (S4) and other power transitions.

Fixes: 9988844c457f ("ALSA: hda/conexant - Fix audio routing for HP EliteOne 1000 G2")
Suggested-by: default avatarKai-Heng Feng <kaihengf@nvidia.com>
Suggested-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarVasiliy Kovalev <kovalev@altlinux.org>
Link: https://patch.msgid.link/20241016080713.46801-1-kovalev@altlinux.org


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent 8245a7f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ static void cxt_fixup_update_pinctl(struct hda_codec *codec,
		 * This is the value stored in the codec register after
		 * the correct initialization of the previous windows boot.
		 */
		snd_hda_set_pin_ctl(codec, 0x1d, AC_PINCTL_HP_EN);
		snd_hda_set_pin_ctl_cache(codec, 0x1d, AC_PINCTL_HP_EN);
	}
}