summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-03-21 12:16:30 +0100
committerTakashi Iwai <tiwai@suse.de>2013-03-21 17:17:30 +0100
commitf390dad4d8892114cdbc8f078563cef7687720fb (patch)
tree1fd9f9cfdab09d4baf8977bafb6095ed83dbac57 /sound/pci/hda/patch_sigmatel.c
parentALSA: hda - Introduce "Headset Mic" name (diff)
downloadlinux-f390dad4d8892114cdbc8f078563cef7687720fb.tar.xz
linux-f390dad4d8892114cdbc8f078563cef7687720fb.zip
ALSA: hda - Enable "Headset Mic" name for some Dell Latitude devices
Now that we have a "Headset Mic" name, let's use it for some devices we know for sure has a headset mic jack. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r--sound/pci/hda/patch_sigmatel.c6
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)
{
struct sigmatel_spec *spec = codec->spec;
int err;
+ int flags = 0;
- err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0);
+ if (spec->headset_jack)
+ flags |= HDA_PINCFG_HEADSET_MIC;
+
+ err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags);
if (err < 0)
return err;