]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:22:09 +0000 (10:22 +0200)
commit842317de9797072ad7528fd2c140e9365517311f
tree0b0c049e6f882acb4f6751080e6cf1348a8e49b1
parent5ef43bdc7321d07a3a8246a483f6a75bca10fe8f
ALSA: hda - Fixes inverted Conexant GPIO mic mute led

commit f9ef724d4896763479f3921afd1ee61552fc9836 upstream.

"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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_conexant.c