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>
This commit is contained in:
Kailang Yang 2023-02-13 14:54:22 +08:00 committed by Greg Kroah-Hartman
parent 6e0ef3fc65
commit 6c38aa4020

View File

@ -770,7 +770,7 @@ do_sku:
alc_setup_gpio(codec, 0x02); alc_setup_gpio(codec, 0x02);
break; break;
case 7: case 7:
alc_setup_gpio(codec, 0x03); alc_setup_gpio(codec, 0x04);
break; break;
case 5: case 5:
default: default: