Skip to content

Commit c507de8

Browse files
committed
ALSA: hda - Fix wrong gpio_dir & gpio_mask hint setups for IDT/STAC codecs
stac_store_hints() does utterly wrong for masking the values for gpio_dir and gpio_data, likely due to copy&paste errors. Fortunately, this feature is used very rarely, so the impact must be really small. Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 49cdd5b commit c507de8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sound/pci/hda/patch_sigmatel.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ static void stac_store_hints(struct hda_codec *codec)
568568
spec->gpio_mask;
569569
}
570570
if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir))
571-
spec->gpio_mask &= spec->gpio_mask;
572-
if (get_int_hint(codec, "gpio_data", &spec->gpio_data))
573571
spec->gpio_dir &= spec->gpio_mask;
572+
if (get_int_hint(codec, "gpio_data", &spec->gpio_data))
573+
spec->gpio_data &= spec->gpio_mask;
574574
if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask))
575575
spec->eapd_mask &= spec->gpio_mask;
576576
if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute))

0 commit comments

Comments
 (0)