Lines Matching full:rt1015p
3 // rt1015p.c -- RT1015P ALSA SoC audio amplifier driver
29 struct rt1015p_priv *rt1015p = in rt1015p_daiops_trigger() local
32 if (!rt1015p->sdb) in rt1015p_daiops_trigger()
39 if (rt1015p->sdb_switch) { in rt1015p_daiops_trigger()
40 gpiod_set_value(rt1015p->sdb, 1); in rt1015p_daiops_trigger()
47 gpiod_set_value(rt1015p->sdb, 0); in rt1015p_daiops_trigger()
60 struct rt1015p_priv *rt1015p = in rt1015p_sdb_event() local
64 rt1015p->sdb_switch = 1; in rt1015p_sdb_event()
66 rt1015p->sdb_switch = 0; in rt1015p_sdb_event()
112 struct rt1015p_priv *rt1015p; in rt1015p_platform_probe() local
114 rt1015p = devm_kzalloc(&pdev->dev, sizeof(*rt1015p), GFP_KERNEL); in rt1015p_platform_probe()
115 if (!rt1015p) in rt1015p_platform_probe()
118 rt1015p->sdb = devm_gpiod_get_optional(&pdev->dev, in rt1015p_platform_probe()
120 if (IS_ERR(rt1015p->sdb)) in rt1015p_platform_probe()
121 return PTR_ERR(rt1015p->sdb); in rt1015p_platform_probe()
123 dev_set_drvdata(&pdev->dev, rt1015p); in rt1015p_platform_probe()
132 { .compatible = "realtek,rt1015p" },
140 .name = "rt1015p",
147 MODULE_DESCRIPTION("ASoC RT1015P driver");