Skip to content

Commit

Permalink
ALSA: hda - Fix mute-LED GPIO pin for HP dv series
Browse files Browse the repository at this point in the history
Old HP dv series seem to use the GPIO pin 0 for controlling the mute LED
although the pin is a large package, where the newer models use GPIO 3
in such a case.  For fixing the regression from the previous kernels,
set spec->gpio_led statically for these model quirks.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
tiwai committed May 11, 2010
1 parent 0ebf9e3 commit 26ebe0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/pci/hda/patch_sigmatel.c
Expand Up @@ -4766,6 +4766,9 @@ static void set_hp_led_gpio(struct hda_codec *codec)
struct sigmatel_spec *spec = codec->spec;
unsigned int gpio;

if (spec->gpio_led)
return;

gpio = snd_hda_param_read(codec, codec->afg, AC_PAR_GPIO_CAP);
gpio &= AC_GPIO_IO_COUNT;
if (gpio > 3)
Expand Down Expand Up @@ -5683,11 +5686,13 @@ static int patch_stac92hd71bxx(struct hda_codec *codec)
* detection.
*/
spec->hp_detect = 1;
spec->gpio_led = 0x01;
break;
case STAC_HP_HDX:
spec->num_dmics = 1;
spec->num_dmuxes = 1;
spec->num_smuxes = 1;
spec->gpio_led = 0x08;
break;
}

Expand Down

0 comments on commit 26ebe0a

Please sign in to comment.