Skip to content

Commit f1f208d

Browse files
mranostayperexg
authored andcommitted
[ALSA] hda: STAC9228 DMIC
Added support for the dmics and enabled EAPD for several laptops with STAC9228 cards. Signed-off-by: Matthew Ranostay <mranostay@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent d9f9b8b commit f1f208d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎sound/pci/hda/patch_sigmatel.c‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,14 +2723,21 @@ static int patch_stac927x(struct hda_codec *codec)
27232723
spec->dmic_nids = stac927x_dmic_nids;
27242724
spec->num_dmics = STAC927X_NUM_DMICS;
27252725
spec->dmux_nid = 0x1b;
2726+
2727+
/* Enable DMIC0 */
2728+
stac92xx_set_config_reg(codec, 0x13, 0x90a60040);
2729+
2730+
/* GPIO2 High = Enable EAPD */
2731+
spec->gpio_mask = spec->gpio_data = 0x00000004;
27262732
break;
27272733
default:
2728-
spec->num_dmics = 0;
2734+
spec->num_dmics = 0;
2735+
2736+
/* GPIO0 High = Enable EAPD */
2737+
spec->gpio_mask = spec->gpio_data = 0x00000001;
27292738
}
27302739

27312740
spec->multiout.dac_nids = spec->dac_nids;
2732-
/* GPIO0 High = Enable EAPD */
2733-
spec->gpio_mask = spec->gpio_data = 0x00000001;
27342741
stac92xx_enable_gpio_mask(codec);
27352742

27362743
err = stac92xx_parse_auto_config(codec, 0x1e, 0x20);

0 commit comments

Comments
 (0)