Lines Matching full:rt9123p
3 // rt9123p.c -- RT9123 (HW Mode) ALSA SoC Codec driver
32 struct rt9123p_priv *rt9123p = snd_soc_component_get_drvdata(comp); in rt9123p_daiops_trigger() local
34 if (!rt9123p->enable) in rt9123p_daiops_trigger()
41 mdelay(rt9123p->enable_delay); in rt9123p_daiops_trigger()
42 if (rt9123p->enable_switch) { in rt9123p_daiops_trigger()
43 gpiod_set_value(rt9123p->enable, 1); in rt9123p_daiops_trigger()
50 gpiod_set_value(rt9123p->enable, 0); in rt9123p_daiops_trigger()
64 struct rt9123p_priv *rt9123p = snd_soc_component_get_drvdata(comp); in rt9123p_enable_event() local
67 rt9123p->enable_switch = 1; in rt9123p_enable_event()
69 rt9123p->enable_switch = 0; in rt9123p_enable_event()
121 struct rt9123p_priv *rt9123p; in rt9123p_platform_probe() local
124 rt9123p = devm_kzalloc(dev, sizeof(*rt9123p), GFP_KERNEL); in rt9123p_platform_probe()
125 if (!rt9123p) in rt9123p_platform_probe()
128 rt9123p->enable = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_LOW); in rt9123p_platform_probe()
129 if (IS_ERR(rt9123p->enable)) in rt9123p_platform_probe()
130 return PTR_ERR(rt9123p->enable); in rt9123p_platform_probe()
132 ret = device_property_read_u32(dev, "enable-delay-ms", &rt9123p->enable_delay); in rt9123p_platform_probe()
134 rt9123p->enable_delay = 0; in rt9123p_platform_probe()
138 platform_set_drvdata(pdev, rt9123p); in rt9123p_platform_probe()
145 { .compatible = "richtek,rt9123p" },
153 { "RT9123P", 0 },
161 .name = "rt9123p",
170 MODULE_DESCRIPTION("ASoC rt9123p Driver");