Lines Matching full:rt1015p
3 // rt1015p.c -- RT1015P ALSA SoC audio amplifier driver
31 struct rt1015p_priv *rt1015p = in rt1015p_sdb_event() local
34 if (!rt1015p->sdb) in rt1015p_sdb_event()
39 gpiod_set_value_cansleep(rt1015p->sdb, 1); in rt1015p_sdb_event()
42 if (!rt1015p->calib_done) { in rt1015p_sdb_event()
44 rt1015p->calib_done = true; in rt1015p_sdb_event()
48 gpiod_set_value_cansleep(rt1015p->sdb, 0); in rt1015p_sdb_event()
73 struct rt1015p_priv *rt1015p = snd_soc_component_get_drvdata(component); in rt1015p_suspend() local
75 rt1015p->calib_done = false; in rt1015p_suspend()
107 struct rt1015p_priv *rt1015p; in rt1015p_platform_probe() local
109 rt1015p = devm_kzalloc(&pdev->dev, sizeof(*rt1015p), GFP_KERNEL); in rt1015p_platform_probe()
110 if (!rt1015p) in rt1015p_platform_probe()
113 rt1015p->sdb = devm_gpiod_get_optional(&pdev->dev, in rt1015p_platform_probe()
115 if (IS_ERR(rt1015p->sdb)) in rt1015p_platform_probe()
116 return PTR_ERR(rt1015p->sdb); in rt1015p_platform_probe()
118 dev_set_drvdata(&pdev->dev, rt1015p); in rt1015p_platform_probe()
127 { .compatible = "realtek,rt1015p" },
145 .name = "rt1015p",
153 MODULE_DESCRIPTION("ASoC RT1015P driver");