Commit f1f208d0 authored by Matthew Ranostay's avatar Matthew Ranostay Committed by Jaroslav Kysela
Browse files

[ALSA] hda: STAC9228 DMIC



Added support for the dmics and enabled EAPD for several laptops with
STAC9228 cards.

Signed-off-by: default avatarMatthew Ranostay <mranostay@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent d9f9b8ba
Loading
Loading
Loading
Loading
+10 −3
Original line number Original line Diff line number Diff line
@@ -2723,14 +2723,21 @@ static int patch_stac927x(struct hda_codec *codec)
		spec->dmic_nids = stac927x_dmic_nids;
		spec->dmic_nids = stac927x_dmic_nids;
		spec->num_dmics = STAC927X_NUM_DMICS;
		spec->num_dmics = STAC927X_NUM_DMICS;
		spec->dmux_nid = 0x1b;
		spec->dmux_nid = 0x1b;

		/* Enable DMIC0 */
		stac92xx_set_config_reg(codec, 0x13, 0x90a60040);

		/* GPIO2 High = Enable EAPD */
		spec->gpio_mask = spec->gpio_data = 0x00000004;
		break;
		break;
	default:
	default:
		spec->num_dmics = 0;
		spec->num_dmics = 0;
	}


	spec->multiout.dac_nids = spec->dac_nids;
		/* GPIO0 High = Enable EAPD */
		/* GPIO0 High = Enable EAPD */
		spec->gpio_mask = spec->gpio_data = 0x00000001;
		spec->gpio_mask = spec->gpio_data = 0x00000001;
	}

	spec->multiout.dac_nids = spec->dac_nids;
	stac92xx_enable_gpio_mask(codec); 
	stac92xx_enable_gpio_mask(codec); 
	
	
	err = stac92xx_parse_auto_config(codec, 0x1e, 0x20);
	err = stac92xx_parse_auto_config(codec, 0x1e, 0x20);