summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasiliy Kovalev <kovalev@altlinux.org>2024-10-16 11:07:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-22 15:56:51 +0200
commit27bbab47ad74d7a4da25fe7fe57da66811087c73 (patch)
treebf51839a9f3dd3605838fffc39db840b737e82b9
parent9470ac9786973a0b2cba1c6df68401a71c2f964f (diff)
downloadlinux-stable-27bbab47ad74d7a4da25fe7fe57da66811087c73.tar.gz
linux-stable-27bbab47ad74d7a4da25fe7fe57da66811087c73.tar.bz2
linux-stable-27bbab47ad74d7a4da25fe7fe57da66811087c73.zip
ALSA: hda/conexant - Use cached pin control for Node 0x1d on HP EliteOne 1000 G2
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: Kai-Heng Feng <kaihengf@nvidia.com> Suggested-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org> Link: https://patch.msgid.link/20241016080713.46801-1-kovalev@altlinux.org Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--sound/pci/hda/patch_conexant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 01a2c22fef94..5833623f6ffa 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -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);
}
}