[ALSA] hda: STAC927x analog mic
authorMatthew Ranostay <mranostay@embeddedalley.com>
Thu, 21 Feb 2008 06:51:46 +0000 (07:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:14 +0000 (12:00 +0200)
Some laptops have a internal analog microphone that is not setup by the BIOS.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index a0c290cef763f8641ada1c70cf62c39d2620e0eb..314ea51538b77ebb5684d57bd3e7b1f83acd3a66 100644 (file)
@@ -3721,6 +3721,8 @@ static int patch_stac927x(struct hda_codec *codec)
                spec->mixer = stac927x_mixer;
                break;
        case STAC_DELL_BIOS:
+               /* configure the analog microphone on some laptops */
+               stac92xx_set_config_reg(codec, 0x0c, 0x90a79130);
                /* correct the front output jack as a hp out */
                stac92xx_set_config_reg(codec, 0x0f, 0x0227011f);
                /* correct the front input jack as a mic */