diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-05 13:27:33 +0100 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2015-04-14 17:33:49 +0800 |
commit | 3d8b6705ac104513c2c72173c1ac83e5331778a7 (patch) | |
tree | 6f72ab5d98b0115f055f0925c838f7d0a3fdff6c /sound | |
parent | acc0b23411b26d9476c7ccff44fc89b21ba2d6f3 (diff) | |
download | lwn-3d8b6705ac104513c2c72173c1ac83e5331778a7.tar.gz lwn-3d8b6705ac104513c2c72173c1ac83e5331778a7.zip |
ALSA: hda - Fix wrong gpio_dir & gpio_mask hint setups for IDT/STAC codecs
commit c507de88f6a336bd7296c9ec0073b2d4af8b4f5e upstream.
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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 137b67f8e69a..606f87aa24d9 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -4246,9 +4246,9 @@ static void stac_store_hints(struct hda_codec *codec) spec->gpio_mask; } if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) - spec->gpio_mask &= spec->gpio_mask; - if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) spec->gpio_dir &= spec->gpio_mask; + if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) + spec->gpio_data &= spec->gpio_mask; if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask)) spec->eapd_mask &= spec->gpio_mask; if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute)) |