Lines Matching full:dmic

3  * dmic.c  --  SoC audio for Generic Digital MICs
26 struct dmic { struct
29 /* Delay after DMIC mode switch */
37 struct dmic *dmic = snd_soc_component_get_drvdata(component); in dmic_daiops_trigger() argument
41 if (dmic->modeswitch_delay) in dmic_daiops_trigger()
42 mdelay(dmic->modeswitch_delay); in dmic_daiops_trigger()
57 struct dmic *dmic = snd_soc_component_get_drvdata(component); in dmic_aif_event() local
61 if (dmic->gpio_en) in dmic_aif_event()
62 gpiod_set_value_cansleep(dmic->gpio_en, 1); in dmic_aif_event()
64 if (dmic->wakeup_delay) in dmic_aif_event()
65 msleep(dmic->wakeup_delay); in dmic_aif_event()
68 if (dmic->gpio_en) in dmic_aif_event()
69 gpiod_set_value_cansleep(dmic->gpio_en, 0); in dmic_aif_event()
77 .name = "dmic-hifi",
95 struct dmic *dmic; in dmic_component_probe() local
97 dmic = devm_kzalloc(component->dev, sizeof(*dmic), GFP_KERNEL); in dmic_component_probe()
98 if (!dmic) in dmic_component_probe()
101 dmic->gpio_en = devm_gpiod_get_optional(component->dev, in dmic_component_probe()
103 if (IS_ERR(dmic->gpio_en)) in dmic_component_probe()
104 return PTR_ERR(dmic->gpio_en); in dmic_component_probe()
107 &dmic->wakeup_delay); in dmic_component_probe()
109 &dmic->modeswitch_delay); in dmic_component_probe()
111 dmic->wakeup_delay = wakeup_delay; in dmic_component_probe()
113 dmic->modeswitch_delay = modeswitch_delay; in dmic_component_probe()
115 if (dmic->modeswitch_delay > MAX_MODESWITCH_DELAY) in dmic_component_probe()
116 dmic->modeswitch_delay = MAX_MODESWITCH_DELAY; in dmic_component_probe()
118 snd_soc_component_set_drvdata(component, dmic); in dmic_component_probe()
124 SND_SOC_DAPM_AIF_OUT_E("DMIC AIF", "Capture", 0,
127 SND_SOC_DAPM_INPUT("DMic"),
131 {"DMIC AIF", NULL, "DMic"},
173 MODULE_ALIAS("platform:dmic-codec");
176 {.compatible = "dmic-codec"},
183 .name = "dmic-codec",
191 MODULE_DESCRIPTION("Generic DMIC driver");