ALSA: hda - Fixes inverted Conexant GPIO mic mute led
authorJeronimo Borque <jeronimo@borque.com.ar>
Mon, 19 Aug 2019 01:35:38 +0000 (22:35 -0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Aug 2019 17:41:26 +0000 (19:41 +0200)
commitf9ef724d4896763479f3921afd1ee61552fc9836
tree76111c7e076b6a6ac7b06766850a22270392b629
parent19bce474c45be69a284ecee660aa12d8f1e88f18
ALSA: hda - Fixes inverted Conexant GPIO mic mute led

"enabled" parameter historically referred to the device input or
output, not to the led indicator. After the changes added with the led
helper functions the mic mute led logic refers to the led and not to
the mic input which caused led indicator to be negated.
Fixing logic in cxt_update_gpio_led and updated
cxt_fixup_gpio_mute_hook
Also updated debug messages to ease further debugging if necessary.

Fixes: 184e302b46c9 ("ALSA: hda/conexant - Use the mic-mute LED helper")
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jeronimo Borque <jeronimo@borque.com.ar>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c