diff options
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 3be877bd8a92..1d9d6427e0bf 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -3528,8 +3528,12 @@ static int stac_parse_auto_config(struct hda_codec *codec) | |||
3528 | { | 3528 | { |
3529 | struct sigmatel_spec *spec = codec->spec; | 3529 | struct sigmatel_spec *spec = codec->spec; |
3530 | int err; | 3530 | int err; |
3531 | int flags = 0; | ||
3531 | 3532 | ||
3532 | err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); | 3533 | if (spec->headset_jack) |
3534 | flags |= HDA_PINCFG_HEADSET_MIC; | ||
3535 | |||
3536 | err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); | ||
3533 | if (err < 0) | 3537 | if (err < 0) |
3534 | return err; | 3538 | return err; |
3535 | 3539 | ||