Lines Matching refs:tse850

65 	struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);  in tse850_get_mux1()  local
67 ucontrol->value.enumerated.item[0] = tse850->loop1_cache; in tse850_get_mux1()
77 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_put_mux1() local
84 gpiod_set_value_cansleep(tse850->loop1, val); in tse850_put_mux1()
85 tse850->loop1_cache = val; in tse850_put_mux1()
95 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_get_mux2() local
97 ucontrol->value.enumerated.item[0] = tse850->loop2_cache; in tse850_get_mux2()
107 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_put_mux2() local
114 gpiod_set_value_cansleep(tse850->loop2, val); in tse850_put_mux2()
115 tse850->loop2_cache = val; in tse850_put_mux2()
125 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_get_mix() local
127 ucontrol->value.enumerated.item[0] = tse850->add_cache; in tse850_get_mix()
137 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_put_mix() local
140 if (tse850->add_cache == connect) in tse850_put_mix()
147 gpiod_set_value_cansleep(tse850->add, connect); in tse850_put_mix()
148 tse850->add_cache = connect; in tse850_put_mix()
159 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_get_ana() local
162 ret = regulator_get_voltage(tse850->ana); in tse850_get_ana()
192 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_put_ana() local
214 ret = regulator_set_voltage(tse850->ana, uV, uV); in tse850_put_ana()
358 struct tse850_priv *tse850; in tse850_probe() local
361 tse850 = devm_kzalloc(dev, sizeof(*tse850), GFP_KERNEL); in tse850_probe()
362 if (!tse850) in tse850_probe()
365 snd_soc_card_set_drvdata(card, tse850); in tse850_probe()
373 tse850->add = devm_gpiod_get(dev, "axentia,add", GPIOD_OUT_HIGH); in tse850_probe()
374 if (IS_ERR(tse850->add)) in tse850_probe()
375 return dev_err_probe(dev, PTR_ERR(tse850->add), in tse850_probe()
377 tse850->add_cache = 1; in tse850_probe()
379 tse850->loop1 = devm_gpiod_get(dev, "axentia,loop1", GPIOD_OUT_HIGH); in tse850_probe()
380 if (IS_ERR(tse850->loop1)) in tse850_probe()
381 return dev_err_probe(dev, PTR_ERR(tse850->loop1), in tse850_probe()
383 tse850->loop1_cache = 1; in tse850_probe()
385 tse850->loop2 = devm_gpiod_get(dev, "axentia,loop2", GPIOD_OUT_HIGH); in tse850_probe()
386 if (IS_ERR(tse850->loop2)) in tse850_probe()
387 return dev_err_probe(dev, PTR_ERR(tse850->loop2), in tse850_probe()
389 tse850->loop2_cache = 1; in tse850_probe()
391 tse850->ana = devm_regulator_get(dev, "axentia,ana"); in tse850_probe()
392 if (IS_ERR(tse850->ana)) in tse850_probe()
393 return dev_err_probe(dev, PTR_ERR(tse850->ana), in tse850_probe()
396 ret = regulator_enable(tse850->ana); in tse850_probe()
411 regulator_disable(tse850->ana); in tse850_probe()
418 struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); in tse850_remove() local
421 regulator_disable(tse850->ana); in tse850_remove()