Commit 4046906
ALSA: hda - reverse the setting value in the micmute_led_set
Before the micmute_led_set() is introduced, the function of
alc_gpio_micmute_update() will set the gpio value with the
!micmute_led.led_value, and the machines have the correct micmute led
status. After the micmute_led_set() is introduced, it sets the gpio
value with !!micmute_led.led_value, so the led status is not correct
anymore, we need to set micmute_led_polarity = 1 to workaround it.
Now we fix the micmute_led_set() and remove micmute_led_polarity = 1.
Fixes: 87dc364 ("ALSA: hda/realtek - Add LED class support for micmute LED")
Reported-and-suggested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20200811122430.6546-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 85cb905 commit 4046906
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4125 | 4125 | | |
4126 | 4126 | | |
4127 | 4127 | | |
4128 | | - | |
| 4128 | + | |
4129 | 4129 | | |
4130 | 4130 | | |
4131 | 4131 | | |
| |||
4162 | 4162 | | |
4163 | 4163 | | |
4164 | 4164 | | |
4165 | | - | |
4166 | | - | |
4167 | 4165 | | |
4168 | 4166 | | |
4169 | 4167 | | |
| |||
4414 | 4412 | | |
4415 | 4413 | | |
4416 | 4414 | | |
4417 | | - | |
4418 | 4415 | | |
4419 | 4416 | | |
4420 | 4417 | | |
| |||
0 commit comments