diff options
author | Kailang Yang <kailang@realtek.com> | 2023-02-13 14:54:22 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-22 12:47:20 +0100 |
commit | 541eb0388fc2e707dea2697c36f042c9ef34fe0e (patch) | |
tree | f2dfbee995999b0155d1a15be13044aefe1992b2 | |
parent | 62860fd1f506aa06507c5c10d513adfc7d278297 (diff) | |
download | linux-stable-541eb0388fc2e707dea2697c36f042c9ef34fe0e.tar.gz linux-stable-541eb0388fc2e707dea2697c36f042c9ef34fe0e.tar.bz2 linux-stable-541eb0388fc2e707dea2697c36f042c9ef34fe0e.zip |
ALSA: hda/realtek - fixed wrong gpio assigned
commit 2bdccfd290d421b50df4ec6a68d832dad1310748 upstream.
GPIO2 PIN use for output. Mask Dir and Data need to assign for 0x4. Not 0x3.
This fixed was for Lenovo Desktop(0x17aa1056). GPIO2 use for AMP enable.
Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/8d02bb9ac8134f878cd08607fdf088fd@realtek.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 9670db6ad1e1..9cedb78bffe7 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -771,7 +771,7 @@ do_sku: alc_setup_gpio(codec, 0x02); break; case 7: - alc_setup_gpio(codec, 0x03); + alc_setup_gpio(codec, 0x04); break; case 5: default: |