diff options
| -rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index ec0637e7d488..8c416bb18a57 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
| @@ -4790,7 +4790,7 @@ static void set_hp_led_gpio(struct hda_codec *codec) | |||
| 4790 | * Need more information on whether it is true across the entire series. | 4790 | * Need more information on whether it is true across the entire series. |
| 4791 | * -- kunal | 4791 | * -- kunal |
| 4792 | */ | 4792 | */ |
| 4793 | static int find_mute_led_gpio(struct hda_codec *codec) | 4793 | static int find_mute_led_gpio(struct hda_codec *codec, int default_polarity) |
| 4794 | { | 4794 | { |
| 4795 | struct sigmatel_spec *spec = codec->spec; | 4795 | struct sigmatel_spec *spec = codec->spec; |
| 4796 | const struct dmi_device *dev = NULL; | 4796 | const struct dmi_device *dev = NULL; |
| @@ -4817,7 +4817,7 @@ static int find_mute_led_gpio(struct hda_codec *codec) | |||
| 4817 | */ | 4817 | */ |
| 4818 | if (!hp_blike_system(codec->subsystem_id)) { | 4818 | if (!hp_blike_system(codec->subsystem_id)) { |
| 4819 | set_hp_led_gpio(codec); | 4819 | set_hp_led_gpio(codec); |
| 4820 | spec->gpio_led_polarity = 1; | 4820 | spec->gpio_led_polarity = default_polarity; |
| 4821 | return 1; | 4821 | return 1; |
| 4822 | } | 4822 | } |
| 4823 | } | 4823 | } |
| @@ -5343,7 +5343,7 @@ again: | |||
| 5343 | 5343 | ||
| 5344 | codec->patch_ops = stac92xx_patch_ops; | 5344 | codec->patch_ops = stac92xx_patch_ops; |
| 5345 | 5345 | ||
| 5346 | if (find_mute_led_gpio(codec)) | 5346 | if (find_mute_led_gpio(codec, 0)) |
| 5347 | snd_printd("mute LED gpio %d polarity %d\n", | 5347 | snd_printd("mute LED gpio %d polarity %d\n", |
| 5348 | spec->gpio_led, | 5348 | spec->gpio_led, |
| 5349 | spec->gpio_led_polarity); | 5349 | spec->gpio_led_polarity); |
| @@ -5705,7 +5705,7 @@ again: | |||
| 5705 | } | 5705 | } |
| 5706 | } | 5706 | } |
| 5707 | 5707 | ||
| 5708 | if (find_mute_led_gpio(codec)) | 5708 | if (find_mute_led_gpio(codec, 1)) |
| 5709 | snd_printd("mute LED gpio %d polarity %d\n", | 5709 | snd_printd("mute LED gpio %d polarity %d\n", |
| 5710 | spec->gpio_led, | 5710 | spec->gpio_led, |
| 5711 | spec->gpio_led_polarity); | 5711 | spec->gpio_led_polarity); |
