Skip to content

Commit

Permalink
ALSA: hda - Remove static gpio_led setup via model
Browse files Browse the repository at this point in the history
We have now a better mute-LED GPIO detection, and no need to assign the
values statically per model option.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 8, 2010
1 parent c21bd02 commit b99a776
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -5343,9 +5343,6 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)

codec->patch_ops = stac92xx_patch_ops;

if (spec->board_config == STAC_92HD83XXX_HP)
spec->gpio_led = 0x01;

if (find_mute_led_gpio(codec))
snd_printd("mute LED gpio %d polarity %d\n",
spec->gpio_led,
Expand Down Expand Up @@ -5673,7 +5670,6 @@ static int patch_stac92hd71bxx(struct hda_codec *codec)
*/
spec->num_smuxes = 1;
spec->num_dmuxes = 1;
spec->gpio_led = 0x01;
/* fallthrough */
case STAC_HP_DV5:
snd_hda_codec_set_pincfg(codec, 0x0d, 0x90170010);
Expand All @@ -5688,8 +5684,6 @@ static int patch_stac92hd71bxx(struct hda_codec *codec)
spec->num_dmics = 1;
spec->num_dmuxes = 1;
spec->num_smuxes = 1;
/* orange/white mute led on GPIO3, orange=0, white=1 */
spec->gpio_led = 0x08;
break;
}

Expand Down

0 comments on commit b99a776

Please sign in to comment.