mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
ALSA: hda - Fix reverted LED setup for HP
The commit 86d190e77c
reverted the bit
flip of LED GPIO for HP DX and DV4-1222nr. Fixed now.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b4f8b5e2f5
commit
ba84bfcd2b
1 changed files with 2 additions and 2 deletions
|
@ -4666,9 +4666,9 @@ static int stac92xx_hp_check_power_status(struct hda_codec *codec,
|
|||
if (nid == 0x10) {
|
||||
if (snd_hda_codec_amp_read(codec, nid, 0, HDA_OUTPUT, 0) &
|
||||
HDA_AMP_MUTE)
|
||||
spec->gpio_data |= spec->gpio_led; /* white */
|
||||
else
|
||||
spec->gpio_data &= ~spec->gpio_led; /* orange */
|
||||
else
|
||||
spec->gpio_data |= spec->gpio_led; /* white */
|
||||
|
||||
stac_gpio_set(codec, spec->gpio_mask,
|
||||
spec->gpio_dir,
|
||||
|
|
Loading…
Reference in a new issue