Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190830
b: refs/heads/master
c: 26ebe0a
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed May 11, 2010
1 parent 726ae4a commit a9f0b3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ebf9e3692d640917fb792a7494d05e1f5b1058f
refs/heads/master: 26ebe0a28986f4845b2c5bea43ac5cc0b9f27f0a
5 changes: 5 additions & 0 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
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 a9f0b3d

Please sign in to comment.